Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.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.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002177/0.002177, allocations: 178.2 kB / 17.39 MB, free: 4.398 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.805/2.805, allocations: 205.4 MB / 223.5 MB, free: 8.941 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.001122/0.001123, allocations: 90.34 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006095/0.00061, allocations: 12 kB / 328.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5535/0.5542, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002915/0.5571, allocations: 1.064 MB / 376.8 MB, free: 44.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.8804/1.438, allocations: 136.6 MB / 0.5013 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/1.438, allocations: 0 / 0.5013 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.392e-05/1.438, allocations: 0 / 0.5013 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001594/1.439, allocations: 193.5 kB / 0.5015 GB, free: 1.496 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002593/1.442, allocations: 0.5128 MB / 0.502 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001547/1.442, allocations: 54.66 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.412e-05/1.442, allocations: 2.688 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.781e-05/1.442, allocations: 20.97 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/1.443, allocations: 30.8 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.388e-05/1.443, allocations: 2.625 kB / 0.5021 GB, free: 1.473 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002196/1.445, allocations: 0.7426 MB / 0.5028 GB, free: 1.465 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/1.445, allocations: 10.16 kB / 0.5029 GB, free: 1.461 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.828e-05/1.445, allocations: 49.19 kB / 0.5029 GB, free: 1.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009552/1.446, allocations: 419.8 kB / 0.5033 GB, free: 1.406 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/1.446, allocations: 0 / 0.5033 GB, free: 1.406 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.439e-06/1.446, allocations: 0 / 0.5033 GB, free: 1.406 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/1.446, allocations: 0 / 0.5033 GB, free: 1.406 MB / 378.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.001252/1.447, allocations: 438.4 kB / 0.5037 GB, free: 17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8e-05/1.447, allocations: 8.625 kB / 0.5037 GB, free: 17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/1.449, allocations: 102.7 kB / 0.5038 GB, free: 16.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000511/1.449, allocations: 216.8 kB / 0.504 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/1.449, allocations: 7.688 kB / 0.504 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/1.449, allocations: 1.875 kB / 0.504 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/1.449, allocations: 94.44 kB / 0.5041 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/1.449, allocations: 0 / 0.5041 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/1.45, allocations: 13.27 kB / 0.5041 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/1.45, allocations: 0 / 0.5041 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/1.45, allocations: 49.17 kB / 0.5042 GB, free: 16.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004586/1.45, allocations: 212.2 kB / 0.5044 GB, free: 16.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/1.451, allocations: 133.1 kB / 0.5045 GB, free: 16.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/1.451, allocations: 36.3 kB / 0.5046 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001377/1.452, allocations: 0.9856 MB / 0.5055 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/1.452, allocations: 33.88 kB / 0.5056 GB, free: 15.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/1.452, allocations: 0 / 0.5056 GB, free: 15.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006218/1.453, allocations: 135 kB / 0.5057 GB, free: 15.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.45e-05/1.453, allocations: 77.11 kB / 0.5058 GB, free: 15.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/1.454, allocations: 155.5 kB / 0.5059 GB, free: 15.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/1.454, allocations: 25.7 kB / 0.5059 GB, free: 15.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/1.454, allocations: 83.48 kB / 0.506 GB, free: 14.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/1.454, allocations: 26.44 kB / 0.506 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.198e-05/1.454, allocations: 0 / 0.506 GB, free: 14.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002733/1.454, allocations: 317.9 kB / 0.5063 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/1.454, allocations: 31.34 kB / 0.5064 GB, free: 14.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/1.454, allocations: 48.5 kB / 0.5064 GB, free: 14.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/1.455, allocations: 90.06 kB / 0.5065 GB, free: 14.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/1.455, allocations: 1.75 kB / 0.5065 GB, free: 14.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003629/1.455, allocations: 128.3 kB / 0.5066 GB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/1.455, allocations: 2.844 kB / 0.5066 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/1.455, allocations: 2.562 kB / 0.5066 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/1.455, allocations: 0 / 0.5066 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/1.455, allocations: 27.55 kB / 0.5067 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/1.455, allocations: 4.891 kB / 0.5067 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/1.455, allocations: 10.91 kB / 0.5067 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/1.456, allocations: 8.562 kB / 0.5067 GB, free: 14.5 MB / 394.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 (8): * Single equations (assignments): 8 * 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.0001828/1.456, allocations: 117.9 kB / 0.5068 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/1.456, allocations: 6.812 kB / 0.5068 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007856/1.457, allocations: 239.3 kB / 0.507 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.457, allocations: 0 / 0.507 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.457, allocations: 0 / 0.507 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/1.457, allocations: 99.05 kB / 0.5071 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/1.457, allocations: 2.969 kB / 0.5071 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/1.457, allocations: 15.62 kB / 0.5071 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.568e-05/1.457, allocations: 14.66 kB / 0.5071 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000676/1.458, allocations: 285.5 kB / 0.5074 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007599/1.459, allocations: 404.7 kB / 0.5078 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001216/1.459, allocations: 32.38 kB / 0.5078 GB, free: 13.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002208/1.459, allocations: 131.5 kB / 0.508 GB, free: 13.68 MB / 394.7 MB Notification: Performance of Backend: time 6.81e-07/1.459, allocations: 0 / 0.508 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/1.461, allocations: 420.2 kB / 0.5084 GB, free: 13.56 MB / 394.7 MB Notification: Performance of SimCode: time 0.001433/1.462, allocations: 0.8348 MB / 0.5092 GB, free: 12.82 MB / 394.7 MB 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:0: h1 (no alias) initial: h_min no arrCref index:(1) [] 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:1: s1 (no alias) initial: s_min no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.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:0: $DER.h1 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.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:1: $DER.s1 (no alias) initial: no arrCref index:(4) [] 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:(5) [] 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:(6) [] 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:2: h2 (no alias) initial: no arrCref index:(7) [] 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:3: s2 (no alias) initial: no arrCref index:(8) [] 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:(9) [] 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:(10) [] 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:(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:3: 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:4: 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:5: 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:6: s_min (no alias) initial: no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for h1 found! Error: Internal error GetVarIndexListByMapping: No Element for s1 found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.h1 found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.s1 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 h2 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!