Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MoistAir.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.Media.TestOnly.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|s|u|Tsat",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MoistAir") translateModel(ModelicaTest.Media.TestOnly.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|s|u|Tsat",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MoistAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 196.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.347/1.347, allocations: 226.5 MB / 244.1 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007293/0.0007293, allocations: 108.2 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3961/0.3961, allocations: 44.82 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003146/0.0003147, allocations: 11.98 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3277, allocations: 62.95 MB / 0.5165 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MoistAir): time 0.1511/0.4789, allocations: 137 MB / 0.6503 GB, free: 132 kB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.4808, allocations: 1.228 MB / 0.6515 GB, free: 14.9 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.4809, allocations: 3.938 kB / 0.6515 GB, free: 14.89 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.4812, allocations: 35.86 kB / 0.6515 GB, free: 14.86 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003282/0.4845, allocations: 0.8356 MB / 0.6524 GB, free: 14.03 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.205e-06/0.4845, allocations: 0 / 0.6524 GB, free: 14.03 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.4847, allocations: 79.61 kB / 0.6524 GB, free: 13.95 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.052e-05/0.4848, allocations: 7.984 kB / 0.6524 GB, free: 13.94 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.547e-05/0.4848, allocations: 19.94 kB / 0.6525 GB, free: 13.92 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.687e-05/0.4849, allocations: 23.91 kB / 0.6525 GB, free: 13.9 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.4849, allocations: 0 / 0.6525 GB, free: 13.9 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.4885, allocations: 1.868 MB / 0.6543 GB, free: 12.03 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 4.119e-05/0.4886, allocations: 7.984 kB / 0.6543 GB, free: 12.02 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 4.497e-05/0.4886, allocations: 45.64 kB / 0.6544 GB, free: 11.97 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.4899, allocations: 0.637 MB / 0.655 GB, free: 11.33 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4899, allocations: 0 / 0.655 GB, free: 11.33 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4899, allocations: 0 / 0.655 GB, free: 11.33 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.4899, allocations: 0 / 0.655 GB, free: 11.33 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000815/0.4907, allocations: 483.2 kB / 0.6554 GB, free: 10.81 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4908, allocations: 8.031 kB / 0.6554 GB, free: 10.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.654e-05/0.4908, allocations: 12.83 kB / 0.6555 GB, free: 10.79 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.4909, allocations: 171.5 kB / 0.6556 GB, free: 10.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.4909, allocations: 11.92 kB / 0.6556 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.491, allocations: 0 / 0.6556 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.4911, allocations: 69.67 kB / 0.6557 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.4912, allocations: 0 / 0.6557 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.4912, allocations: 4 kB / 0.6557 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.4912, allocations: 8 kB / 0.6557 GB, free: 10.49 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.894e-05/0.4913, allocations: 51.97 kB / 0.6558 GB, free: 10.44 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004431/0.4918, allocations: 304.6 kB / 0.6561 GB, free: 10.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.192e-05/0.4918, allocations: 30.58 kB / 0.6561 GB, free: 10.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.088e-05/0.4919, allocations: 20.92 kB / 0.6561 GB, free: 10.03 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002576/0.4921, allocations: 255.3 kB / 0.6563 GB, free: 9.723 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.4922, allocations: 42.5 kB / 0.6564 GB, free: 9.672 MB / 474.7 MB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.4922, allocations: 0 / 0.6564 GB, free: 9.672 MB / 474.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001771/0.4924, allocations: 65.55 kB / 0.6564 GB, free: 9.602 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.4924, allocations: 51.41 kB / 0.6565 GB, free: 9.539 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.271e-05/0.4925, allocations: 97.86 kB / 0.6566 GB, free: 9.434 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.4925, allocations: 25.7 kB / 0.6566 GB, free: 9.402 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.4926, allocations: 99.88 kB / 0.6567 GB, free: 9.301 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.277e-05/0.4926, allocations: 15.81 kB / 0.6567 GB, free: 9.285 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-06/0.4926, allocations: 0 / 0.6567 GB, free: 9.285 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4927, allocations: 318.8 kB / 0.657 GB, free: 8.965 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.112e-05/0.4927, allocations: 7.984 kB / 0.657 GB, free: 8.957 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.087e-05/0.4928, allocations: 31.44 kB / 0.6571 GB, free: 8.914 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.607e-05/0.4929, allocations: 55.36 kB / 0.6571 GB, free: 8.848 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4929, allocations: 0 / 0.6571 GB, free: 8.848 MB / 474.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001203/0.493, allocations: 73.55 kB / 0.6572 GB, free: 8.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.493, allocations: 7.938 kB / 0.6572 GB, free: 8.762 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.493, allocations: 4 kB / 0.6572 GB, free: 8.758 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.493, allocations: 0 / 0.6572 GB, free: 8.758 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.351e-05/0.4931, allocations: 12 kB / 0.6572 GB, free: 8.746 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.4932, allocations: 0 / 0.6572 GB, free: 8.746 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.679e-05/0.4932, allocations: 12.03 kB / 0.6572 GB, free: 8.734 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.4932, allocations: 3.984 kB / 0.6572 GB, free: 8.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.692e-05/0.4933, allocations: 113.8 kB / 0.6573 GB, free: 8.609 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.4933, allocations: 11.84 kB / 0.6573 GB, free: 8.598 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.4935, allocations: 65.11 kB / 0.6574 GB, free: 8.531 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.4935, allocations: 4 kB / 0.6574 GB, free: 8.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4935, allocations: 0 / 0.6574 GB, free: 8.527 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.4936, allocations: 77.11 kB / 0.6575 GB, free: 8.434 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.4936, allocations: 4.109 kB / 0.6575 GB, free: 8.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.087e-05/0.4936, allocations: 7.938 kB / 0.6575 GB, free: 8.422 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.4937, allocations: 3.984 kB / 0.6575 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001088/0.4938, allocations: 125 kB / 0.6576 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001435/0.4939, allocations: 227.2 kB / 0.6578 GB, free: 8.051 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.857e-05/0.494, allocations: 20.02 kB / 0.6579 GB, free: 8.031 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.293e-05/0.494, allocations: 79.22 kB / 0.6579 GB, free: 7.953 MB / 474.7 MB Notification: Performance of Backend: time 4.71e-07/0.494, allocations: 0 / 0.6579 GB, free: 7.953 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.4958, allocations: 0.5031 MB / 0.6584 GB, free: 7.453 MB / 474.7 MB Notification: Performance of SimCode: time 0.0005026/0.4963, allocations: 0.6402 MB / 0.6591 GB, free: 6.754 MB / 474.7 MB Error: Internal error GetVarIndexListByMapping: No Element for T 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: T (no alias) initial: 288.15 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for Tsat 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: Tsat (no alias) initial: 288.15 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[1] (no alias) initial: arrCref:X index:(3) [2] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[2] (no alias) initial: no arrCref index:(4) [2] Error: Internal error GetVarIndexListByMapping: No Element for p 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: p (no alias) initial: 100000.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for s 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: s (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for u 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: u (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for T 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: T (no alias) initial: 288.15 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[1] (no alias) initial: arrCref:X index:(3) [2] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[2] (no alias) initial: no arrCref index:(4) [2] Error: Internal error GetVarIndexListByMapping: No Element for p 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: p (no alias) initial: 100000.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for X found! Error: Internal error GetVarIndexListByMapping: No Element for state.X found! Error: Internal error GetVarIndexListByMapping: No Element for T found! Error: Internal error GetVarIndexListByMapping: No Element for Tsat found! Error: Internal error GetVarIndexListByMapping: No Element for p found! Error: Internal error GetVarIndexListByMapping: No Element for s found! Error: Internal error GetVarIndexListByMapping: No Element for u found! Error: Internal error GetVarIndexListByMapping: No Element for state.T found! Error: Internal error GetVarIndexListByMapping: No Element for state.p found!