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_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005063/0.0005065, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1054, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001833/0.1073, allocations: 1.047 MB / 310 MB, free: 4 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.4629/0.5702, allocations: 127.4 MB / 437.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.593e-05/0.5703, allocations: 0 / 437.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 5.091e-05/0.5704, allocations: 4.594 kB / 437.4 MB, free: 9.383 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.5716, allocations: 252.3 kB / 437.7 MB, free: 9.191 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002332/0.574, allocations: 0.574 MB / 438.3 MB, free: 8.801 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.5742, allocations: 56.56 kB / 438.3 MB, free: 8.766 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.5742, allocations: 2.469 kB / 438.3 MB, free: 8.766 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.667e-05/0.5743, allocations: 29.38 kB / 438.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.538e-05/0.5744, allocations: 26.8 kB / 438.4 MB, free: 8.738 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.5744, allocations: 7.5 kB / 438.4 MB, free: 8.734 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003204/0.5777, allocations: 1.043 MB / 439.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.257e-05/0.5778, allocations: 20.03 kB / 439.4 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.5778, allocations: 31.48 kB / 439.5 MB, free: 8.223 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00155/0.5794, allocations: 498.4 kB / 439.9 MB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.5794, allocations: 0 / 439.9 MB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5794, allocations: 7.938 kB / 440 MB, free: 7.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.5794, allocations: 3.938 kB / 440 MB, free: 7.977 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.0007985/0.5803, allocations: 459 kB / 440.4 MB, free: 7.531 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.5803, allocations: 8.125 kB / 440.4 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003945/0.5807, allocations: 44.28 kB / 440.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.5809, allocations: 194.2 kB / 440.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.581, allocations: 2.5 kB / 440.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.581, allocations: 7.938 kB / 440.7 MB, free: 7.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.5812, allocations: 78.94 kB / 440.7 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.5813, allocations: 6.312 kB / 440.7 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.5813, allocations: 0 / 440.7 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.5813, allocations: 0 / 440.7 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.5815, allocations: 47.7 kB / 440.8 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002662/0.5817, allocations: 189.8 kB / 441 MB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.5822, allocations: 118.2 kB / 441.1 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.884e-05/0.5823, allocations: 12.41 kB / 441.1 MB, free: 6.906 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.5823, allocations: 42.48 kB / 441.1 MB, free: 6.855 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.954e-06/0.5823, allocations: 0 / 441.1 MB, free: 6.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005023/0.5828, allocations: 113.5 kB / 441.3 MB, free: 6.797 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.5829, allocations: 87.05 kB / 441.3 MB, free: 6.695 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.5831, allocations: 137.5 kB / 441.5 MB, free: 6.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.5831, allocations: 29.7 kB / 441.5 MB, free: 6.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.5832, allocations: 150.6 kB / 441.7 MB, free: 6.398 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.985e-05/0.5833, allocations: 28.52 kB / 441.7 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-06/0.5833, allocations: 0 / 441.7 MB, free: 6.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.5835, allocations: 318.8 kB / 442 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.5836, allocations: 24.02 kB / 442 MB, free: 6.047 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.5837, allocations: 51.81 kB / 442.1 MB, free: 6.004 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.5839, allocations: 28.36 kB / 442.1 MB, free: 5.996 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5839, allocations: 0 / 442.1 MB, free: 5.996 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003615/0.5842, allocations: 107.2 kB / 442.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.5843, allocations: 5.969 kB / 442.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.5843, allocations: 0 / 442.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.5843, allocations: 2.031 kB / 442.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.5845, allocations: 13.19 kB / 442.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.5845, allocations: 6.797 kB / 442.2 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.667e-05/0.5846, allocations: 6.812 kB / 442.2 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.5846, allocations: 2.281 kB / 442.2 MB, free: 5.926 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.0001137/0.5847, allocations: 116.1 kB / 442.3 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.922e-05/0.5848, allocations: 13.66 kB / 442.4 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004157/0.5852, allocations: 117.1 kB / 442.5 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5852, allocations: 0 / 442.5 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.5853, allocations: 4.5 kB / 442.5 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.5854, allocations: 92.94 kB / 442.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.5854, allocations: 7.938 kB / 442.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.526e-05/0.5855, allocations: 7.953 kB / 442.6 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.5856, allocations: 7.984 kB / 442.6 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008784/0.5864, allocations: 268.2 kB / 442.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008086/0.5873, allocations: 383.7 kB / 443.2 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001646/0.5875, allocations: 32.03 kB / 443.3 MB, free: 4.852 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.5876, allocations: 111.3 kB / 443.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of Backend: time 7.41e-07/0.5876, allocations: 0 / 443.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.5906, allocations: 459.6 kB / 443.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of SimCode: time 0.001467/0.5921, allocations: 0.8426 MB / 444.7 MB, free: 3.398 MB / 330.7 MB Error: Internal error GetVarIndexListByMapping: No Element for X found! 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 X 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: X[1] (no alias) initial: 0.768 arrCref:X index:(11) [4] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[2] (no alias) initial: 0.232 no arrCref index:(12) [4] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[3] (no alias) initial: 0.0 no arrCref index:(13) [4] Error: Internal error GetVarIndexListByMapping: No Element for X 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: X[4] (no alias) initial: 0.0 no arrCref index:(14) [4] 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:6: h_max (no alias) initial: no arrCref index:(15) [] 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:7: h_min (no alias) initial: no arrCref index:(16) [] 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:8: p (no alias) initial: 100000.0 no arrCref index:(17) [] 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:9: s_max (no alias) initial: no arrCref index:(18) [] 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:10: s_min (no alias) initial: no arrCref index:(19) []