Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08582, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001737/0.08762, allocations: 1.039 MB / 273.6 MB, free: 11.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.4226/0.5103, allocations: 127 MB / 400.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.834e-05/0.5104, allocations: 0 / 400.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.368e-05/0.5105, allocations: 11.86 kB / 400.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.5115, allocations: 195.4 kB / 400.8 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.5134, allocations: 470.8 kB / 401.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 9.798e-05/0.5135, allocations: 39.94 kB / 401.3 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.874e-05/0.5136, allocations: 3.984 kB / 401.3 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.291e-05/0.5137, allocations: 23.88 kB / 401.4 MB, free: 14.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.458e-05/0.5138, allocations: 27.91 kB / 401.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.5138, allocations: 0 / 401.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001987/0.5158, allocations: 0.6447 MB / 402 MB, free: 13.81 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.603e-05/0.5158, allocations: 7.984 kB / 402 MB, free: 13.8 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.5159, allocations: 37.64 kB / 402.1 MB, free: 13.76 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009272/0.5168, allocations: 349.5 kB / 402.4 MB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.5168, allocations: 3.938 kB / 402.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5169, allocations: 0 / 402.4 MB, free: 13.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.5169, allocations: 0 / 402.4 MB, free: 13.42 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.0006756/0.5176, allocations: 439 kB / 402.8 MB, free: 12.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.5176, allocations: 8.031 kB / 402.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001676/0.5193, allocations: 91.86 kB / 402.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.5197, allocations: 223.4 kB / 403.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.5197, allocations: 4 kB / 403.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.5198, allocations: 3.906 kB / 403.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.5201, allocations: 99.27 kB / 403.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.5202, allocations: 0 / 403.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.5202, allocations: 0 / 403.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5202, allocations: 0 / 403.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.5205, allocations: 47.95 kB / 403.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003542/0.5209, allocations: 206.9 kB / 403.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/0.5216, allocations: 125.1 kB / 403.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008983/0.5225, allocations: 0.9778 MB / 404.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.5226, allocations: 35.12 kB / 404.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.073e-06/0.5226, allocations: 0 / 404.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007494/0.5233, allocations: 133.9 kB / 404.8 MB, free: 10.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.5234, allocations: 81.11 kB / 404.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.5238, allocations: 150.3 kB / 405 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.5238, allocations: 33.7 kB / 405 MB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.833e-05/0.5239, allocations: 150.6 kB / 405.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/0.524, allocations: 23.64 kB / 405.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/0.524, allocations: 4 kB / 405.2 MB, free: 10.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5242, allocations: 314.8 kB / 405.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.5244, allocations: 31.91 kB / 405.5 MB, free: 9.832 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.5246, allocations: 55.39 kB / 405.6 MB, free: 9.766 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.5249, allocations: 27.98 kB / 405.6 MB, free: 9.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.5249, allocations: 7.938 kB / 405.6 MB, free: 9.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005325/0.5254, allocations: 125.4 kB / 405.8 MB, free: 9.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.5255, allocations: 4 kB / 405.8 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.5255, allocations: 4 kB / 405.8 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5255, allocations: 0 / 405.8 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.5258, allocations: 29.09 kB / 405.8 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.5258, allocations: 0 / 405.8 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003177/0.5261, allocations: 8 kB / 405.8 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.5262, allocations: 12.05 kB / 405.8 MB, free: 9.547 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.0001187/0.5263, allocations: 113.8 kB / 405.9 MB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.5264, allocations: 11.86 kB / 405.9 MB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008948/0.5273, allocations: 237.9 kB / 406.2 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.5273, allocations: 4 kB / 406.2 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5273, allocations: 0 / 406.2 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.5274, allocations: 96.31 kB / 406.3 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.661e-05/0.5275, allocations: 0 / 406.3 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.5279, allocations: 15.97 kB / 406.3 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.916e-05/0.528, allocations: 7.984 kB / 406.3 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008926/0.5289, allocations: 292 kB / 406.6 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007943/0.5297, allocations: 390 kB / 407 MB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002122/0.5299, allocations: 47.91 kB / 407 MB, free: 8.297 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002691/0.5302, allocations: 127.2 kB / 407.1 MB, free: 8.172 MB / 330.7 MB Notification: Performance of Backend: time 8.11e-07/0.5302, allocations: 0 / 407.1 MB, free: 8.172 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.532, allocations: 405.5 kB / 407.5 MB, free: 7.777 MB / 330.7 MB Notification: Performance of SimCode: time 0.001155/0.5332, allocations: 0.833 MB / 408.4 MB, free: 6.898 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) []