Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 194.7 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 244 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007161/0.0007162, allocations: 98.81 kB / 296.1 MB, free: 6.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2829/0.2829, allocations: 44.82 MB / 392.9 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002495, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2557, allocations: 62.97 MB / 0.5165 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001135/0.2568, allocations: 1.173 MB / 0.5177 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004961/0.2573, allocations: 427.9 kB / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.63e-05/0.2574, allocations: 3.406 kB / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.2574, allocations: 0 / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.168e-05/0.2575, allocations: 3.938 kB / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.2576, allocations: 15.3 kB / 0.5181 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.715e-05/0.2577, allocations: 31.48 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.926e-05/0.2578, allocations: 6.109 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.2579, allocations: 20.31 kB / 0.5181 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.604e-05/0.2579, allocations: 22.2 kB / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.138e-05/0.258, allocations: 2.844 kB / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.104e-05/0.258, allocations: 2.969 kB / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.258, allocations: 6.109 kB / 0.5182 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/0.258, allocations: 36.45 kB / 0.5182 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.224e-05/0.2581, allocations: 23.78 kB / 0.5182 GB, free: 35.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2581, allocations: 2.875 kB / 0.5182 GB, free: 35.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2581, allocations: 0 / 0.5182 GB, free: 35.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.2581, allocations: 0 / 0.5182 GB, free: 35.73 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.0003084/0.2585, allocations: 349.3 kB / 0.5186 GB, free: 35.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2585, allocations: 10.19 kB / 0.5186 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2586, allocations: 16.89 kB / 0.5186 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.63e-05/0.2587, allocations: 174.3 kB / 0.5188 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.2587, allocations: 7.188 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.2587, allocations: 384 / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.2589, allocations: 66.03 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2589, allocations: 7.922 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.2589, allocations: 3.125 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2589, allocations: 0 / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.203e-05/0.259, allocations: 22.03 kB / 0.5189 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002909/0.2593, allocations: 270.4 kB / 0.5191 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.938e-05/0.2594, allocations: 36 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.309e-05/0.2594, allocations: 17.42 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.2595, allocations: 0 / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.2595, allocations: 34.56 kB / 0.5192 GB, free: 34.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.2595, allocations: 0 / 0.5192 GB, free: 34.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002082/0.2597, allocations: 69.27 kB / 0.5193 GB, free: 34.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.835e-05/0.2597, allocations: 80.08 kB / 0.5193 GB, free: 34.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.911e-05/0.2598, allocations: 109.6 kB / 0.5194 GB, free: 34.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.2598, allocations: 25.7 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.408e-05/0.2598, allocations: 95.02 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.2598, allocations: 7.219 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.2598, allocations: 2.938 kB / 0.5196 GB, free: 34.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.671e-05/0.2599, allocations: 314.8 kB / 0.5199 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.503e-05/0.2599, allocations: 12.22 kB / 0.5199 GB, free: 34.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.533e-05/0.26, allocations: 29.19 kB / 0.5199 GB, free: 34.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.209e-05/0.2601, allocations: 30.16 kB / 0.5199 GB, free: 34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2601, allocations: 3.938 kB / 0.5199 GB, free: 33.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001131/0.2602, allocations: 70.2 kB / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.2602, allocations: 5.344 kB / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.2602, allocations: 0 / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2602, allocations: 0 / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.833e-05/0.2603, allocations: 9.688 kB / 0.52 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2603, allocations: 3.828 kB / 0.52 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.579e-05/0.2604, allocations: 8.062 kB / 0.52 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.2604, allocations: 2.688 kB / 0.52 GB, free: 33.94 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 5.125e-05/0.2605, allocations: 119.8 kB / 0.5201 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.2605, allocations: 0 / 0.5201 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.681e-05/0.2605, allocations: 9.781 kB / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2605, allocations: 4 kB / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2605, allocations: 0 / 0.5202 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.546e-05/0.2605, allocations: 87.86 kB / 0.5202 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.2606, allocations: 7.938 kB / 0.5203 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.79e-05/0.2607, allocations: 11.39 kB / 0.5203 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.2607, allocations: 13.58 kB / 0.5203 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00014/0.2608, allocations: 143.7 kB / 0.5204 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001266/0.261, allocations: 226.2 kB / 0.5206 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.754e-05/0.261, allocations: 16.36 kB / 0.5206 GB, free: 33.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.322e-05/0.2611, allocations: 92.59 kB / 0.5207 GB, free: 33.29 MB / 378.7 MB Notification: Performance of Backend: time 2.61e-07/0.2611, allocations: 0 / 0.5207 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003383/0.2614, allocations: 94.52 kB / 0.5208 GB, free: 33.21 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002414/0.2617, allocations: 0.6093 MB / 0.5214 GB, free: 32.59 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.f 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.f (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.f 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!