Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 178.5 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 223.5 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007928/0.0007928, allocations: 89.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3183/0.3183, allocations: 43.56 MB / 363.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 15.98 kB / 432.6 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1096, allocations: 58.85 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001615/0.1112, allocations: 1.155 MB / 492.6 MB, free: 9.738 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006173/0.1118, allocations: 440.1 kB / 493.1 MB, free: 9.301 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.417e-05/0.1119, allocations: 4 kB / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.1119, allocations: 0 / 493.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.126e-05/0.112, allocations: 7.938 kB / 493.1 MB, free: 9.289 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.1122, allocations: 11.98 kB / 493.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 6.234e-05/0.1122, allocations: 27.86 kB / 493.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.645e-05/0.1123, allocations: 4 kB / 493.1 MB, free: 9.246 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.948e-05/0.1124, allocations: 23.91 kB / 493.1 MB, free: 9.223 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.681e-05/0.1125, allocations: 7.984 kB / 493.1 MB, free: 9.215 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.1125, allocations: 7.938 kB / 493.2 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.508e-06/0.1125, allocations: 0 / 493.2 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.1125, allocations: 11.94 kB / 493.2 MB, free: 9.195 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.669e-05/0.1126, allocations: 37.62 kB / 493.2 MB, free: 9.152 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.348e-05/0.1127, allocations: 27.95 kB / 493.2 MB, free: 9.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1127, allocations: 0 / 493.2 MB, free: 9.125 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1127, allocations: 0 / 493.2 MB, free: 9.125 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1127, allocations: 0 / 493.2 MB, free: 9.125 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004393/0.1131, allocations: 343.7 kB / 493.6 MB, free: 8.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1132, allocations: 16.03 kB / 493.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.977e-05/0.1132, allocations: 4.844 kB / 493.6 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.1134, allocations: 176.3 kB / 493.8 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1134, allocations: 384 / 493.8 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.001e-05/0.1134, allocations: 384 / 493.8 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.1136, allocations: 63.66 kB / 493.8 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.1136, allocations: 4 kB / 493.8 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.1137, allocations: 3.984 kB / 493.8 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1137, allocations: 4 kB / 493.8 MB, free: 8.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.36e-05/0.1138, allocations: 23.98 kB / 493.9 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004411/0.1142, allocations: 264.8 kB / 494.1 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.622e-05/0.1143, allocations: 38.56 kB / 494.1 MB, free: 8.047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.217e-05/0.1144, allocations: 20.86 kB / 494.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.1144, allocations: 3.984 kB / 494.2 MB, free: 8.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1144, allocations: 30.56 kB / 494.2 MB, free: 7.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.1144, allocations: 0 / 494.2 MB, free: 7.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.000264/0.1147, allocations: 73.67 kB / 494.3 MB, free: 7.902 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.1148, allocations: 81.05 kB / 494.4 MB, free: 7.805 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.152e-05/0.1149, allocations: 105.8 kB / 494.5 MB, free: 7.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1149, allocations: 25.7 kB / 494.5 MB, free: 7.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.1149, allocations: 88.14 kB / 494.6 MB, free: 7.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.115, allocations: 3.906 kB / 494.6 MB, free: 7.566 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-06/0.115, allocations: 0 / 494.6 MB, free: 7.566 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1151, allocations: 323 kB / 494.9 MB, free: 7.242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.307e-05/0.1151, allocations: 19.92 kB / 494.9 MB, free: 7.223 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-05/0.1152, allocations: 25.7 kB / 494.9 MB, free: 7.191 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.132e-05/0.1153, allocations: 28.84 kB / 495 MB, free: 7.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1153, allocations: 7.875 kB / 495 MB, free: 7.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001243/0.1155, allocations: 61.72 kB / 495 MB, free: 7.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.1155, allocations: 7.984 kB / 495 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1155, allocations: 0 / 495 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.1155, allocations: 0 / 495 MB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.1156, allocations: 4 kB / 495 MB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1156, allocations: 7.938 kB / 495 MB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.231e-05/0.1157, allocations: 19.89 kB / 495.1 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.1157, allocations: 0 / 495.1 MB, free: 7.047 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.077e-05/0.1158, allocations: 117.8 kB / 495.2 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.1158, allocations: 0 / 495.2 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.1158, allocations: 7.531 kB / 495.2 MB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1158, allocations: 4 kB / 495.2 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1158, allocations: 0 / 495.2 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.247e-05/0.1159, allocations: 81.23 kB / 495.3 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.1159, allocations: 0 / 495.3 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.961e-05/0.116, allocations: 12 kB / 495.3 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.1161, allocations: 15.91 kB / 495.3 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000176/0.1162, allocations: 140.9 kB / 495.4 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001891/0.1164, allocations: 234.7 kB / 495.7 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.784e-05/0.1165, allocations: 15.98 kB / 495.7 MB, free: 6.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.831e-05/0.1166, allocations: 87.27 kB / 495.8 MB, free: 6.297 MB / 378.7 MB Notification: Performance of Backend: time 3.01e-07/0.1166, allocations: 0 / 495.8 MB, free: 6.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003491/0.1169, allocations: 94.23 kB / 495.9 MB, free: 6.203 MB / 378.7 MB Notification: Performance of SimCode: time 0.0004391/0.1174, allocations: 0.6166 MB / 496.5 MB, free: 5.531 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.amplitude found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.amplitude (no alias) initial: 1.0 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.freqHz found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: Signal.freqHz (no alias) initial: 1.0 no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.offset found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: Signal.offset (no alias) initial: 0.0 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.phase found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: Signal.phase (no alias) initial: 0.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.startTime found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: Signal.startTime (no alias) initial: 0.0 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uHigh found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: hysteresis.uHigh (no alias) initial: 0.5 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uLow found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: hysteresis.uLow (no alias) initial: -0.5 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: Signal.y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: hysteresis.y (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.pre_y_start found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: hysteresis.pre_y_start (no alias) initial: false no arrCref index:(11) [] [CodegenCppOld.tpl:12248:11-12248:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 1 . Error: Internal error GetVarIndexListByMapping: No Element for Signal.y found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.y found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.amplitude found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.freqHz found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.offset found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.phase found! Error: Internal error GetVarIndexListByMapping: No Element for Signal.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uHigh found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.uLow found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.pre_y_start found! Error: Internal error GetVarIndexListByMapping: No Element for hysteresis.u found!