Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.IdealGasH2O.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004144, allocations: 8 kB / 233.8 MB, free: 3.094 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09685, allocations: 38.77 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4752/0.5721, allocations: 125.4 MB / 397.9 MB, free: 1.906 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00436/0.5766, allocations: 2.113 MB / 400 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.189e-05/0.5767, allocations: 0 / 400 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.5769, allocations: 23.94 kB / 400.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001338/0.5783, allocations: 279.1 kB / 400.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.5786, allocations: 47.92 kB / 400.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.5788, allocations: 55.84 kB / 400.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.694e-05/0.5789, allocations: 4 kB / 400.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.5791, allocations: 47.83 kB / 400.5 MB, free: 15.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.5792, allocations: 27.92 kB / 400.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.5792, allocations: 0 / 400.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.5807, allocations: 383.5 kB / 400.9 MB, free: 14.94 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.5808, allocations: 15.92 kB / 400.9 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.147e-05/0.5808, allocations: 29.7 kB / 400.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.5815, allocations: 209.7 kB / 401.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.5816, allocations: 0 / 401.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5816, allocations: 0 / 401.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.5816, allocations: 0 / 401.1 MB, free: 14.69 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.001247/0.5829, allocations: 423 kB / 401.6 MB, free: 14.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.158e-05/0.5829, allocations: 12.03 kB / 401.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01089/0.5938, allocations: 459.7 kB / 402 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.5941, allocations: 167.6 kB / 402.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.5941, allocations: 11.95 kB / 402.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.5943, allocations: 8 kB / 402.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.5957, allocations: 294.4 kB / 402.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.5957, allocations: 0 / 402.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.688e-05/0.5958, allocations: 4 kB / 402.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.5959, allocations: 0 / 402.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.5974, allocations: 279.7 kB / 402.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.599, allocations: 426.4 kB / 403.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.6009, allocations: 206.4 kB / 403.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.6009, allocations: 11.98 kB / 403.4 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.601, allocations: 32 kB / 403.4 MB, free: 12.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 3.727e-06/0.601, allocations: 0 / 403.4 MB, free: 12.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.003102/0.6041, allocations: 420.2 kB / 403.8 MB, free: 11.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.6042, allocations: 59.34 kB / 403.9 MB, free: 11.76 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.6043, allocations: 101.8 kB / 404 MB, free: 11.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.6044, allocations: 29.7 kB / 404 MB, free: 11.61 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.6045, allocations: 174.1 kB / 404.2 MB, free: 11.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.906e-05/0.6046, allocations: 63.17 kB / 404.2 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.6047, allocations: 4 kB / 404.3 MB, free: 11.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.6048, allocations: 310.8 kB / 404.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00049/0.6053, allocations: 80.31 kB / 404.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.6059, allocations: 120.3 kB / 404.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005283/0.6064, allocations: 79.97 kB / 404.8 MB, free: 10.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6064, allocations: 0 / 404.8 MB, free: 10.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001219/0.6077, allocations: 249.3 kB / 405.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.6077, allocations: 10.45 kB / 405.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.6077, allocations: 4 kB / 405.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.6078, allocations: 0 / 405.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.6085, allocations: 56.02 kB / 405.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.6085, allocations: 4 kB / 405.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.609, allocations: 19.97 kB / 405.2 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.549e-05/0.6091, allocations: 15.88 kB / 405.2 MB, free: 10.42 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.0001716/0.6092, allocations: 121.8 kB / 405.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.6093, allocations: 7.906 kB / 405.3 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.6108, allocations: 285.1 kB / 405.6 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.6109, allocations: 4 kB / 405.6 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.6109, allocations: 0 / 405.6 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-05/0.6109, allocations: 77.11 kB / 405.7 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.611, allocations: 4 kB / 405.7 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.6115, allocations: 11.98 kB / 405.7 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.6116, allocations: 15.97 kB / 405.7 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001621/0.6132, allocations: 320.7 kB / 406 MB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001255/0.6145, allocations: 405.8 kB / 406.4 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005189/0.615, allocations: 91.92 kB / 406.5 MB, free: 9.055 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.105e-05/0.6151, allocations: 79.28 kB / 406.6 MB, free: 8.977 MB / 330.7 MB Notification: Performance of Backend: time 7.42e-07/0.6151, allocations: 4 kB / 406.6 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.6167, allocations: 322.4 kB / 406.9 MB, free: 8.652 MB / 330.7 MB Notification: Performance of SimCode: time 0.0008615/0.6176, allocations: 0.7088 MB / 407.6 MB, free: 7.895 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) []