Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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) 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(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002222/0.002222, allocations: 198.7 kB / 18.05 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.596/1.596, allocations: 226.5 MB / 245.3 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009244/0.0009248, allocations: 106.4 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003844, allocations: 4 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4617/0.4621, allocations: 51.3 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001672/0.4639, allocations: 1.076 MB / 409.8 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.476, allocations: 11.14 MB / 420.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.613e-05/0.4761, allocations: 3.938 kB / 420.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.587e-05/0.4761, allocations: 0 / 420.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00391/0.4801, allocations: 0.805 MB / 421.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002031/0.4821, allocations: 0.512 MB / 422.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.878e-05/0.4822, allocations: 55.72 kB / 422.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.155e-05/0.4823, allocations: 4 kB / 422.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.595e-05/0.4824, allocations: 27.91 kB / 422.3 MB, free: 14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.59e-05/0.4825, allocations: 27.91 kB / 422.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.4825, allocations: 4 kB / 422.3 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.4853, allocations: 1.51 MB / 423.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.4854, allocations: 11.92 kB / 423.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.4855, allocations: 49.62 kB / 423.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.4865, allocations: 0.7182 MB / 424.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.038e-05/0.4865, allocations: 0 / 424.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.4865, allocations: 0 / 424.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.4865, allocations: 0 / 424.6 MB, free: 11.68 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000796/0.4873, allocations: 0.5302 MB / 425.2 MB, free: 11.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.668e-05/0.4874, allocations: 15.97 kB / 425.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.4876, allocations: 12.83 kB / 425.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.4878, allocations: 184.2 kB / 425.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.4878, allocations: 384 / 425.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.4878, allocations: 4.375 kB / 425.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.488, allocations: 67.52 kB / 425.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4881, allocations: 0 / 425.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.4881, allocations: 4 kB / 425.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4881, allocations: 4 kB / 425.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001172/0.4882, allocations: 27.92 kB / 425.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.4885, allocations: 174.5 kB / 425.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.4888, allocations: 81.28 kB / 425.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.83e-05/0.4889, allocations: 25.7 kB / 425.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005746/0.4946, allocations: 3.278 MB / 429 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4947, allocations: 46.48 kB / 429.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.054e-06/0.4947, allocations: 4 kB / 429.1 MB, free: 6.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.00034/0.495, allocations: 77.88 kB / 429.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.4951, allocations: 85.05 kB / 429.2 MB, free: 6.418 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.4952, allocations: 117.8 kB / 429.3 MB, free: 6.293 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.4952, allocations: 25.7 kB / 429.4 MB, free: 6.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.308e-05/0.4953, allocations: 88.12 kB / 429.5 MB, free: 6.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.4953, allocations: 19.66 kB / 429.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.4953, allocations: 0 / 429.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.4955, allocations: 318.8 kB / 429.8 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.87e-05/0.4955, allocations: 11.98 kB / 429.8 MB, free: 5.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.033e-05/0.4956, allocations: 25.7 kB / 429.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.4957, allocations: 45.67 kB / 429.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.4957, allocations: 0 / 429.9 MB, free: 5.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001482/0.4958, allocations: 73.52 kB / 429.9 MB, free: 5.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.4959, allocations: 15.94 kB / 430 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4959, allocations: 0 / 430 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.4959, allocations: 0 / 430 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.345e-05/0.496, allocations: 8 kB / 430 MB, free: 5.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.496, allocations: 4 kB / 430 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.159e-05/0.4961, allocations: 3.984 kB / 430 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.4961, allocations: 4 kB / 430 MB, free: 5.625 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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.726e-05/0.4962, allocations: 109.8 kB / 430.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.568e-05/0.4962, allocations: 7.938 kB / 430.1 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.4965, allocations: 109.3 kB / 430.2 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4965, allocations: 0 / 430.2 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.4965, allocations: 0 / 430.2 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.077e-05/0.4966, allocations: 93.03 kB / 430.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.4966, allocations: 3.984 kB / 430.3 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.603e-05/0.4967, allocations: 12 kB / 430.3 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.353e-05/0.4967, allocations: 7.984 kB / 430.3 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002114/0.497, allocations: 220.1 kB / 430.5 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000232/0.4972, allocations: 322.3 kB / 430.8 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.991e-05/0.4973, allocations: 19.97 kB / 430.9 MB, free: 4.684 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.212e-05/0.4973, allocations: 91.58 kB / 431 MB, free: 4.594 MB / 298.7 MB Notification: Performance of Backend: time 3.4e-07/0.4974, allocations: 3.938 kB / 431 MB, free: 4.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.4992, allocations: 0.6096 MB / 431.6 MB, free: 3.977 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006331/0.4998, allocations: 0.644 MB / 432.2 MB, free: 3.273 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for Th 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: Th (no alias) initial: 288.15 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for Ts 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: Ts (no alias) initial: 288.15 no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for h1 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: h1 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for h2 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: h2 (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for s1 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: s1 (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for s2 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: s2 (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for T_max 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_max (no alias) initial: 500.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for T_min 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: T_min (no alias) initial: 300.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for h_max 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: h_max (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for h_min 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: h_min (no alias) initial: no arrCref index:(10) [] 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:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for s_max 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_max (no alias) initial: no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for s_min 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: s_min (no alias) initial: no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for Th found! Error: Internal error GetVarIndexListByMapping: No Element for Ts found! Error: Internal error GetVarIndexListByMapping: No Element for h1 found! Error: Internal error GetVarIndexListByMapping: No Element for h2 found! Error: Internal error GetVarIndexListByMapping: No Element for s1 found! Error: Internal error GetVarIndexListByMapping: No Element for s2 found! Error: Internal error GetVarIndexListByMapping: No Element for T_max found! Error: Internal error GetVarIndexListByMapping: No Element for T_min found! Error: Internal error GetVarIndexListByMapping: No Element for h_max found! Error: Internal error GetVarIndexListByMapping: No Element for h_min found! Error: Internal error GetVarIndexListByMapping: No Element for p found! Error: Internal error GetVarIndexListByMapping: No Element for s_max found! Error: Internal error GetVarIndexListByMapping: No Element for s_min found!