Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.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.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002262/0.002262, allocations: 201.5 kB / 18.05 MB, free: 3.637 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.829/1.829, allocations: 226.5 MB / 245.3 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000994/0.0009943, allocations: 96.08 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5058/0.5062, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001801/0.508, allocations: 1.078 MB / 409.8 MB, free: 26.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.6679/1.176, allocations: 135.1 MB / 0.5321 GB, free: 13.43 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.363e-05/1.176, allocations: 4 kB / 0.5321 GB, free: 13.43 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 3.206e-05/1.176, allocations: 3 kB / 0.5321 GB, free: 13.43 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001161/1.177, allocations: 193.1 kB / 0.5323 GB, free: 13.39 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/1.179, allocations: 321.2 kB / 0.5326 GB, free: 13.33 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/1.179, allocations: 60.08 kB / 0.5327 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/1.179, allocations: 0 / 0.5327 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/1.179, allocations: 21.53 kB / 0.5327 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/1.179, allocations: 30.56 kB / 0.5327 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.937e-05/1.179, allocations: 1.875 kB / 0.5327 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/1.18, allocations: 0.5895 MB / 0.5333 GB, free: 13.25 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.342e-05/1.18, allocations: 12.64 kB / 0.5333 GB, free: 13.25 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/1.18, allocations: 45.89 kB / 0.5333 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008638/1.181, allocations: 351.3 kB / 0.5337 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/1.181, allocations: 0.5625 kB / 0.5337 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.181, allocations: 4 kB / 0.5337 GB, free: 13.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.157e-06/1.181, allocations: 0.5 kB / 0.5337 GB, free: 13.18 MB / 394.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.0007502/1.182, allocations: 415 kB / 0.5341 GB, free: 12.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/1.182, allocations: 8.25 kB / 0.5341 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/1.184, allocations: 106.3 kB / 0.5342 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/1.184, allocations: 232.6 kB / 0.5344 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/1.184, allocations: 3.438 kB / 0.5344 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/1.184, allocations: 6.719 kB / 0.5344 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/1.184, allocations: 87.23 kB / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/1.184, allocations: 7.281 kB / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/1.184, allocations: 3.5 kB / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/1.184, allocations: 0 / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/1.185, allocations: 47.34 kB / 0.5346 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000345/1.185, allocations: 208.9 kB / 0.5348 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005132/1.185, allocations: 122.8 kB / 0.5349 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/1.186, allocations: 43.05 kB / 0.5349 GB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009124/1.186, allocations: 0.9849 MB / 0.5359 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/1.187, allocations: 37.41 kB / 0.5359 GB, free: 11.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/1.187, allocations: 0 / 0.5359 GB, free: 11.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004956/1.187, allocations: 129.5 kB / 0.536 GB, free: 11.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/1.187, allocations: 77.11 kB / 0.5361 GB, free: 10.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/1.187, allocations: 162.3 kB / 0.5363 GB, free: 10.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/1.187, allocations: 29.02 kB / 0.5363 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.229e-05/1.187, allocations: 80.14 kB / 0.5364 GB, free: 10.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.62e-05/1.188, allocations: 26.94 kB / 0.5364 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/1.188, allocations: 0 / 0.5364 GB, free: 10.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/1.188, allocations: 317.1 kB / 0.5367 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/1.188, allocations: 30.25 kB / 0.5367 GB, free: 10.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/1.188, allocations: 52.84 kB / 0.5368 GB, free: 10.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/1.188, allocations: 90.44 kB / 0.5369 GB, free: 10.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/1.188, allocations: 3.938 kB / 0.5369 GB, free: 10.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003178/1.189, allocations: 120.2 kB / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/1.189, allocations: 5.312 kB / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.189, allocations: 5.812 kB / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/1.189, allocations: 0 / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/1.189, allocations: 23.86 kB / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/1.189, allocations: 2.438 kB / 0.537 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/1.189, allocations: 10.09 kB / 0.537 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/1.189, allocations: 7.031 kB / 0.537 GB, free: 10.27 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.000126/1.189, allocations: 122.2 kB / 0.5372 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/1.189, allocations: 9.406 kB / 0.5372 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006774/1.19, allocations: 241 kB / 0.5374 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.19, allocations: 1.375 kB / 0.5374 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.19, allocations: 4 kB / 0.5374 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/1.19, allocations: 91.39 kB / 0.5375 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/1.19, allocations: 4.625 kB / 0.5375 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/1.19, allocations: 11.16 kB / 0.5375 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/1.19, allocations: 13.84 kB / 0.5375 GB, free: 9.996 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005834/1.191, allocations: 286.3 kB / 0.5378 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005567/1.191, allocations: 393.6 kB / 0.5382 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001123/1.192, allocations: 39.09 kB / 0.5382 GB, free: 9.52 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001794/1.192, allocations: 130.5 kB / 0.5383 GB, free: 9.441 MB / 394.7 MB Notification: Performance of Backend: time 6.41e-07/1.192, allocations: 0 / 0.5383 GB, free: 9.441 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001607/1.193, allocations: 373.7 kB / 0.5387 GB, free: 9.32 MB / 394.7 MB Notification: Performance of SimCode: time 0.001159/1.195, allocations: 0.8303 MB / 0.5395 GB, free: 8.574 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!