Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004947, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1027, allocations: 44.5 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001951/0.1047, allocations: 1.035 MB / 310 MB, free: 8 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.5985/0.7032, allocations: 127.1 MB / 437.1 MB, free: 9.664 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.9e-05/0.7033, allocations: 0 / 437.1 MB, free: 9.664 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.062e-05/0.7034, allocations: 6.828 kB / 437.1 MB, free: 9.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.7046, allocations: 196.2 kB / 437.3 MB, free: 9.508 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.7071, allocations: 473.1 kB / 437.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.7072, allocations: 46.27 kB / 437.8 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.7073, allocations: 2.5 kB / 437.8 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.737e-05/0.7074, allocations: 22.77 kB / 437.8 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.7075, allocations: 28.91 kB / 437.8 MB, free: 9.137 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.7075, allocations: 3.938 kB / 437.8 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.7101, allocations: 0.6414 MB / 438.5 MB, free: 8.867 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.7101, allocations: 10.81 kB / 438.5 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.7102, allocations: 32.61 kB / 438.5 MB, free: 8.824 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.7114, allocations: 353.7 kB / 438.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.7114, allocations: 0 / 438.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.7114, allocations: 0 / 438.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.7114, allocations: 0 / 438.9 MB, free: 8.645 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0008407/0.7123, allocations: 434.6 kB / 439.3 MB, free: 8.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.7124, allocations: 8.219 kB / 439.3 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002312/0.7147, allocations: 99.92 kB / 439.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.7152, allocations: 214.3 kB / 439.6 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.7153, allocations: 0 / 439.6 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.7154, allocations: 2.469 kB / 439.6 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.7158, allocations: 93.02 kB / 439.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.7158, allocations: 7.594 kB / 439.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.489e-05/0.7159, allocations: 4 kB / 439.7 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.7159, allocations: 3.984 kB / 439.7 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003775/0.7163, allocations: 43.27 kB / 439.8 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/0.7168, allocations: 209.6 kB / 440 MB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009681/0.7178, allocations: 130.7 kB / 440.1 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001121/0.7189, allocations: 0.9701 MB / 441.1 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.719, allocations: 40.47 kB / 441.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.695e-06/0.719, allocations: 0 / 441.1 MB, free: 6.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0009838/0.72, allocations: 130.5 kB / 441.2 MB, free: 6.195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.7201, allocations: 81.11 kB / 441.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004603/0.7205, allocations: 157 kB / 441.5 MB, free: 5.965 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.7206, allocations: 28.23 kB / 441.5 MB, free: 5.934 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.515e-05/0.7207, allocations: 150.6 kB / 441.6 MB, free: 5.785 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.541e-05/0.7208, allocations: 21.38 kB / 441.7 MB, free: 5.766 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.7208, allocations: 3.156 kB / 441.7 MB, free: 5.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.721, allocations: 322.8 kB / 442 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.7213, allocations: 29.05 kB / 442 MB, free: 5.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/0.7217, allocations: 50.78 kB / 442 MB, free: 5.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.722, allocations: 27.08 kB / 442.1 MB, free: 5.367 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.722, allocations: 3.984 kB / 442.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007301/0.7228, allocations: 118.4 kB / 442.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.7228, allocations: 4.875 kB / 442.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.7228, allocations: 0 / 442.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.7229, allocations: 2.781 kB / 442.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.7232, allocations: 31.56 kB / 442.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.7232, allocations: 0 / 442.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.7237, allocations: 12.86 kB / 442.2 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.7237, allocations: 2.844 kB / 442.2 MB, free: 5.262 MB / 330.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.0001542/0.7239, allocations: 124.5 kB / 442.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.724, allocations: 8.75 kB / 442.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.7251, allocations: 236.6 kB / 442.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.7251, allocations: 0 / 442.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.7252, allocations: 6.906 kB / 442.6 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.7253, allocations: 95.67 kB / 442.7 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.961e-05/0.7254, allocations: 6.672 kB / 442.7 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000472/0.7259, allocations: 10.22 kB / 442.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-05/0.726, allocations: 13.41 kB / 442.7 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001132/0.7271, allocations: 288 kB / 443 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001009/0.7282, allocations: 392.7 kB / 443.4 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002409/0.7284, allocations: 43 kB / 443.4 MB, free: 4.246 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003495/0.7288, allocations: 131.2 kB / 443.6 MB, free: 4.141 MB / 330.7 MB Notification: Performance of Backend: time 8.52e-07/0.7288, allocations: 0 / 443.6 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.7312, allocations: 404.7 kB / 444 MB, free: 3.922 MB / 330.7 MB Notification: Performance of SimCode: time 0.00147/0.7327, allocations: 0.837 MB / 444.8 MB, free: 3.035 MB / 330.7 MB 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! Error: Internal error GetVarIndexListByMapping: No Element for h1 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: h1 (no alias) initial: h_min no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for s1 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: s1 (no alias) initial: s_min no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.h1 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.h1 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.s1 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.s1 (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for Th 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: Th (no alias) initial: 288.15 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for Ts 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: Ts (no alias) initial: 288.15 no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for h2 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: h2 (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for s2 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: s2 (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for T_max 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: T_max (no alias) initial: 500.0 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for T_min 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: T_min (no alias) initial: 300.0 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for h_max 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: h_max (no alias) initial: no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for h_min 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: h_min (no alias) initial: no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for 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:4: p (no alias) initial: 100000.0 no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for s_max 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: s_max (no alias) initial: no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for s_min 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: s_min (no alias) initial: no arrCref index:(15) []