Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002064/0.002065, allocations: 178.5 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.814/2.814, allocations: 205.4 MB / 223.5 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009981/0.0009987, allocations: 85.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004701, allocations: 8 kB / 328.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4991/0.4996, allocations: 47.58 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002512/0.5022, allocations: 1.066 MB / 376.8 MB, free: 44.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03648/0.5387, allocations: 22.18 MB / 399 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.959e-05/0.5389, allocations: 4 kB / 399 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.5391, allocations: 3.984 kB / 399 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02277/0.5619, allocations: 4.387 MB / 403.4 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.5632, allocations: 310.9 kB / 403.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.5634, allocations: 87.61 kB / 403.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.212e-05/0.5634, allocations: 4 kB / 403.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.5636, allocations: 23.92 kB / 403.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.5637, allocations: 39.89 kB / 403.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.5638, allocations: 8 kB / 403.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02262/0.5864, allocations: 8.503 MB / 412.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.969e-05/0.5866, allocations: 15.92 kB / 412.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.56e-05/0.5867, allocations: 45.62 kB / 412.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.5978, allocations: 2.936 MB / 415.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-05/0.5979, allocations: 0 / 415.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.5979, allocations: 0 / 415.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.5979, allocations: 0 / 415.3 MB, free: 9.039 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.004815/0.6028, allocations: 0.885 MB / 416.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.478e-05/0.6029, allocations: 11.97 kB / 416.2 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/0.6029, allocations: 12.84 kB / 416.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.6032, allocations: 191.9 kB / 416.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.6033, allocations: 0 / 416.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.6033, allocations: 4 kB / 416.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.6036, allocations: 67.39 kB / 416.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.6036, allocations: 3.984 kB / 416.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.6036, allocations: 0 / 416.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.6036, allocations: 4 kB / 416.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.6038, allocations: 39.86 kB / 416.6 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000319/0.6041, allocations: 194.4 kB / 416.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.6045, allocations: 101.1 kB / 416.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/0.6046, allocations: 37.77 kB / 416.9 MB, free: 7.324 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.6047, allocations: 11.98 kB / 416.9 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.6048, allocations: 30.56 kB / 416.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 2.244e-06/0.6048, allocations: 0 / 416.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004025/0.6052, allocations: 97.59 kB / 417 MB, free: 7.172 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.6053, allocations: 81.09 kB / 417.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.6055, allocations: 141.8 kB / 417.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.6055, allocations: 25.7 kB / 417.3 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.6056, allocations: 88.14 kB / 417.4 MB, free: 6.805 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.6056, allocations: 19.66 kB / 417.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.6056, allocations: 4 kB / 417.4 MB, free: 6.781 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.6058, allocations: 319.1 kB / 417.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.267e-05/0.6059, allocations: 19.98 kB / 417.7 MB, free: 6.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.661e-05/0.6059, allocations: 33.64 kB / 417.7 MB, free: 6.402 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.6061, allocations: 49.7 kB / 417.8 MB, free: 6.348 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.6061, allocations: 3.938 kB / 417.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002103/0.6063, allocations: 81.61 kB / 417.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.6063, allocations: 4 kB / 417.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.6064, allocations: 0 / 417.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.6064, allocations: 0 / 417.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.651e-05/0.6065, allocations: 15.98 kB / 417.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.6065, allocations: 4 kB / 417.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.89e-05/0.6066, allocations: 3.906 kB / 417.9 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.6066, allocations: 4 kB / 417.9 MB, free: 6.227 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 0.0001286/0.6067, allocations: 117.8 kB / 418 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.6068, allocations: 4.109 kB / 418 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002976/0.6071, allocations: 105.9 kB / 418.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.6071, allocations: 4 kB / 418.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6071, allocations: 0 / 418.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.6072, allocations: 97.08 kB / 418.2 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.6072, allocations: 48 / 418.2 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.123e-05/0.6073, allocations: 11.92 kB / 418.2 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.6074, allocations: 15.86 kB / 418.3 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003135/0.6077, allocations: 228.2 kB / 418.5 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003674/0.6081, allocations: 337.9 kB / 418.8 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.902e-05/0.6082, allocations: 27.92 kB / 418.8 MB, free: 5.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.111e-05/0.6083, allocations: 107.3 kB / 418.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of Backend: time 9.61e-07/0.6083, allocations: 0 / 418.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01189/0.6202, allocations: 1.709 MB / 420.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of SimCode: time 0.0008967/0.6212, allocations: 0.6655 MB / 421.3 MB, free: 2.703 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 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: 0.01 arrCref:X index:(9) [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: 0.99 no arrCref index:(10) [2] 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:4: h_max (no alias) initial: no arrCref index:(11) [] 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:5: h_min (no alias) initial: no arrCref index:(12) [] 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:6: p (no alias) initial: 100000.0 no arrCref index:(13) [] 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:7: s_max (no alias) initial: no arrCref index:(14) [] 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:8: s_min (no alias) initial: no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for X found! 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!