Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.IdealGasH2O.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005229/0.0005231, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1104, allocations: 44.51 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4994/0.6099, allocations: 125.4 MB / 434.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.6136, allocations: 2.111 MB / 436.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.801e-05/0.6137, allocations: 0 / 436.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.6139, allocations: 19.23 kB / 436.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.615, allocations: 278.2 kB / 436.8 MB, free: 9.906 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.6152, allocations: 44.31 kB / 436.8 MB, free: 9.875 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.6153, allocations: 65.67 kB / 436.9 MB, free: 9.836 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.981e-05/0.6154, allocations: 2.812 kB / 436.9 MB, free: 9.836 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.6156, allocations: 45.61 kB / 436.9 MB, free: 9.809 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.6157, allocations: 28.94 kB / 437 MB, free: 9.793 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.6158, allocations: 2.875 kB / 437 MB, free: 9.793 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.6168, allocations: 377.5 kB / 437.3 MB, free: 9.645 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.125e-05/0.6169, allocations: 9.641 kB / 437.3 MB, free: 9.637 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.663e-05/0.6169, allocations: 37.86 kB / 437.4 MB, free: 9.602 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.6174, allocations: 212.4 kB / 437.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.6175, allocations: 0 / 437.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.6175, allocations: 0 / 437.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.6175, allocations: 0 / 437.6 MB, free: 9.492 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001148/0.6186, allocations: 420 kB / 438 MB, free: 9.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.6187, allocations: 10.47 kB / 438 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01059/0.6293, allocations: 461.3 kB / 438.5 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.6294, allocations: 163 kB / 438.6 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.6295, allocations: 4.906 kB / 438.6 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.6296, allocations: 7.688 kB / 438.6 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.6309, allocations: 303.4 kB / 438.9 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.631, allocations: 4 kB / 438.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.762e-05/0.6311, allocations: 0 / 438.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.6311, allocations: 2.469 kB / 438.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.6325, allocations: 271.2 kB / 439.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.634, allocations: 425.2 kB / 439.6 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.6358, allocations: 210.5 kB / 439.8 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.6358, allocations: 5.703 kB / 439.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.6358, allocations: 30.56 kB / 439.9 MB, free: 7.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 4.208e-06/0.6359, allocations: 3.984 kB / 439.9 MB, free: 7.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.002905/0.6388, allocations: 421.5 kB / 440.3 MB, free: 7.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.6388, allocations: 57.06 kB / 440.3 MB, free: 7.449 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.217e-05/0.6389, allocations: 99.58 kB / 440.4 MB, free: 7.348 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.639, allocations: 25.7 kB / 440.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.246e-05/0.6391, allocations: 176.8 kB / 440.6 MB, free: 7.145 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.999e-05/0.6392, allocations: 55.02 kB / 440.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.6392, allocations: 0 / 440.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6394, allocations: 317.9 kB / 441 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.6399, allocations: 82.31 kB / 441.1 MB, free: 6.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005018/0.6404, allocations: 113.7 kB / 441.2 MB, free: 6.656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.6409, allocations: 89.66 kB / 441.3 MB, free: 6.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6409, allocations: 6.984 kB / 441.3 MB, free: 6.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001161/0.6421, allocations: 244.2 kB / 441.5 MB, free: 6.473 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.6421, allocations: 5.281 kB / 441.5 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.6421, allocations: 0 / 441.5 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.6422, allocations: 2.531 kB / 441.5 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006913/0.6429, allocations: 55.67 kB / 441.6 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.6429, allocations: 2.906 kB / 441.6 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.6433, allocations: 15.73 kB / 441.6 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.6434, allocations: 12.56 kB / 441.6 MB, free: 6.441 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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 0.0001595/0.6436, allocations: 122.1 kB / 441.7 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.47e-05/0.6437, allocations: 17.5 kB / 441.7 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.6451, allocations: 271.2 kB / 442 MB, free: 6.137 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6451, allocations: 3.938 kB / 442 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.6451, allocations: 2.906 kB / 442 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.6452, allocations: 85 kB / 442.1 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.6453, allocations: 2.531 kB / 442.1 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004592/0.6457, allocations: 16.86 kB / 442.1 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.6458, allocations: 15.55 kB / 442.1 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001563/0.6474, allocations: 325.3 kB / 442.4 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001204/0.6486, allocations: 393.1 kB / 442.8 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000523/0.6491, allocations: 104.8 kB / 442.9 MB, free: 5.242 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.814e-05/0.6492, allocations: 83.22 kB / 443 MB, free: 5.16 MB / 330.7 MB Notification: Performance of Backend: time 8.82e-07/0.6492, allocations: 0 / 443 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.6507, allocations: 318 kB / 443.3 MB, free: 4.84 MB / 330.7 MB Notification: Performance of SimCode: time 0.0008248/0.6516, allocations: 0.7055 MB / 444 MB, free: 4.082 MB / 330.7 MB Error: Internal error GetVarIndexListByMapping: No Element for $DER.m_flow_ext found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.smoothState.T found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.smoothState.p found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.state.T found! Error: Internal error GetVarIndexListByMapping: No Element for a found! Error: Internal error GetVarIndexListByMapping: No Element for beta found! Error: Internal error GetVarIndexListByMapping: No Element for cp found! Error: Internal error GetVarIndexListByMapping: No Element for cv found! Error: Internal error GetVarIndexListByMapping: No Element for der_T found! Error: Internal error GetVarIndexListByMapping: No Element for der_p found! Error: Internal error GetVarIndexListByMapping: No Element for gamma found! Error: Internal error GetVarIndexListByMapping: No Element for h_is found! Error: Internal error GetVarIndexListByMapping: No Element for k found! Error: Internal error GetVarIndexListByMapping: No Element for m_flow_ext found! Error: Internal error GetVarIndexListByMapping: No Element for s found! Error: Internal error GetVarIndexListByMapping: No Element for smoothState.T found! Error: Internal error GetVarIndexListByMapping: No Element for smoothState.p found! Error: Internal error GetVarIndexListByMapping: No Element for state.T found! Error: Internal error GetVarIndexListByMapping: No Element for state.p found! Error: Internal error GetVarIndexListByMapping: No Element for state2.T found! Error: Internal error GetVarIndexListByMapping: No Element for state2.p found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.m_flow_ext found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $DER.m_flow_ext (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.smoothState.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: $DER.smoothState.T (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.smoothState.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: $DER.smoothState.p (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.state.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: $DER.state.T (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for a found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: a (no alias) initial: 1000.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for beta found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: beta (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for cp found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: cp (no alias) initial: 1000.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for cv found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:7: cv (no alias) initial: 1000.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for der_T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:8: der_T (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for der_p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:9: der_p (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for gamma found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:10: gamma (no alias) initial: no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for h_is found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:11: h_is (no alias) initial: 549760.6476280135 no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for k found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:12: k (no alias) initial: 1.2 no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for m_flow_ext found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:13: m_flow_ext (no alias) initial: no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for s found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:14: s (no alias) initial: no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for smoothState.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:15: smoothState.T (no alias) initial: 500.0 no arrCref index:(16) [] Error: Internal error GetVarIndexListByMapping: No Element for smoothState.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:16: smoothState.p (no alias) initial: 1000000.0 no arrCref index:(17) [] Error: Internal error GetVarIndexListByMapping: No Element for state.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:17: state.T (no alias) initial: 500.0 no arrCref index:(18) [] Error: Internal error GetVarIndexListByMapping: No Element for state.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:18: state.p (no alias) initial: 1000000.0 no arrCref index:(19) [] Error: Internal error GetVarIndexListByMapping: No Element for state2.T found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:19: state2.T (no alias) initial: 500.0 no arrCref index:(20) [] Error: Internal error GetVarIndexListByMapping: No Element for state2.p found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:20: state2.p (no alias) initial: 1000000.0 no arrCref index:(21) []