Changes between Version 1 and Version 2 of Ticket #2501
- Timestamp:
- 2013-12-06T09:54:39Z (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2501
- Property Owner changed from to
- Property Status new → assigned
- Property Summary OM creates incorrect C code? (r18411) → Cannot solve linear system
-
Ticket #2501 – Description
v1 v2 1 The model I enclose creates a C code that OMEdit shows to be incorrect in some points (red messages).1 The model I enclose creates a C code that OMEdit (r18411) shows to be incorrect in some points (red messages). 2 2 Then the generated code does not produce a valid result. 3 3 … … 38 38 gcc -I. -o invTrifNotWorking.exe invTrifNotWorking.o invTrifNotWorking_functions.o invTrifNotWorking_records.o invTrifNotWorking_01exo.o invTrifNotWorking_02nls.o invTrifNotWorking_03lsy.o invTrifNotWorking_04set.o invTrifNotWorking_05evt.o invTrifNotWorking_06inz.o invTrifNotWorking_07dly.o invTrifNotWorking_08bnd.o invTrifNotWorking_09alg.o invTrifNotWorking_10asr.o invTrifNotWorking_11mix.o invTrifNotWorking_12jac.o invTrifNotWorking_13opt.o invTrifNotWorking_14lnz.o -I"C:/OpenModelica1.9.1Nightly//include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -falign-functions -msse2 -mfpmath=sse -L"C:/OpenModelica1.9.1Nightly//lib/omc" -L"C:/OpenModelica1.9.1Nightly//lib" -Wl,--stack,0x2000000,-rpath,"C:/OpenModelica1.9.1Nightly//lib/omc" -Wl,-rpath,"C:/OpenModelica1.9.1Nightly//lib" -lregex -lexpat -lgc -lpthread -fopenmp -loleaut32 -lSimulationRuntimeC -lgc -lexpat -lregex -static-libgcc -luuid -loleaut32 -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lcoinmetis -lpthread -lm -lgfortranbegin -lgfortran -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -llapack-mingw -ltmglib-mingw -lblas-mingw -lf2c -linteractive -lwsock32 -llis -lstdc++ 39 39 }}} 40 41 {{{ 42 /tmp/OpenModelica/OMEdit/invTrifNotWorking -port=52829 -w -lv=LOG_STATS 43 stdout | warning | Failed to solve linear system of equations (no. 146) at time 0.000000, system is singular for U[20, 20]. 44 LOG_LS | warning | linear system fails: Linear function (index 146, size 24) at t=0 45 | | | | | [1] upSW.idealOpeningSwitch[1].v 46 | | | | | [2] upSW.idealOpeningSwitch[1].s 47 | | | | | [3] upSW.i[1] 48 | | | | | [4] upSW.idealOpeningSwitch[2].v 49 | | | | | [5] upSW.idealOpeningSwitch[2].s 50 | | | | | [6] upSW.i[2] 51 | | | | | [7] Rf.plug_p.pin[2].v 52 | | | | | [8] Rf.plug_p.pin[1].v 53 | | | | | [9] star.pin_n.v 54 | | | | | [10] downSW.idealOpeningSwitch[3].v 55 | | | | | [11] downSW.idealOpeningSwitch[3].s 56 | | | | | [12] downSW.i[3] 57 | | | | | [13] V1.i 58 | | | | | [14] upSW.i[3] 59 | | | | | [15] upSW.idealOpeningSwitch[3].s 60 | | | | | [16] upSW.idealOpeningSwitch[3].v 61 | | | | | [17] Rf.plug_p.pin[3].v 62 | | | | | [18] downSW.idealOpeningSwitch[1].v 63 | | | | | [19] star1.pin_n.v 64 | | | | | [20] downSW.idealOpeningSwitch[2].v 65 | | | | | [21] downSW.idealOpeningSwitch[2].s 66 | | | | | [22] downSW.i[2] 67 | | | | | [23] downSW.i[1] 68 | | | | | [24] downSW.idealOpeningSwitch[1].s 69 stdout | warning | Failed to solve linear system of equations (no. 230) at time 0.000000, system is singular for U[21, 21]. 70 stdout | warning | Error in initialization. Storing results and exiting. 71 | | | | Use -lv=LOG_INIT -w for more information. 72 Simulation process exited with code 255 73 }}}