Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadModel(Modelica): time 1.604/1.604, allocations: 171.3 MB / 179.2 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.283e-05/2.294e-05, allocations: 8.156 kB / 222.5 MB, free: 4.762 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2091, allocations: 38.77 MB / 261.3 MB, free: 13.01 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.817/2.026, allocations: 0.73 GB / 0.9852 GB, free: 8.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/2.027, allocations: 72.95 kB / 0.9852 GB, free: 8.789 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4092/2.436, allocations: 76.37 MB / 1.06 GB, free: 74 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.256e-06/2.436, allocations: 0 / 1.06 GB, free: 74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.691e-06/2.436, allocations: 8 kB / 1.06 GB, free: 74 MB / 346.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.0006137/2.436, allocations: 462.1 kB / 1.06 GB, free: 73.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/2.436, allocations: 11.97 kB / 1.06 GB, free: 73.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003364/2.437, allocations: 39.81 kB / 1.06 GB, free: 73.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/2.437, allocations: 198.9 kB / 1.061 GB, free: 73.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/2.437, allocations: 0 / 1.061 GB, free: 73.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/2.437, allocations: 4 kB / 1.061 GB, free: 73.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.89e-05/2.437, allocations: 35.95 kB / 1.061 GB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/2.437, allocations: 79.31 kB / 1.061 GB, free: 73.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.35e-06/2.437, allocations: 0 / 1.061 GB, free: 73.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/2.437, allocations: 0 / 1.061 GB, free: 73.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/2.437, allocations: 11.88 kB / 1.061 GB, free: 73.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/2.438, allocations: 171.1 kB / 1.061 GB, free: 72.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/2.438, allocations: 113.2 kB / 1.061 GB, free: 72.74 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.664e-05/2.438, allocations: 33.84 kB / 1.061 GB, free: 72.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003823/2.438, allocations: 129 kB / 1.061 GB, free: 72.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/2.438, allocations: 42.5 kB / 1.061 GB, free: 72.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.175e-06/2.438, allocations: 0 / 1.061 GB, free: 72.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0009764/2.439, allocations: 181.4 kB / 1.061 GB, free: 72.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.985e-05/2.439, allocations: 77.11 kB / 1.061 GB, free: 72.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/2.44, allocations: 125 kB / 1.061 GB, free: 72.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/2.44, allocations: 25.7 kB / 1.061 GB, free: 72.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.026e-05/2.44, allocations: 150.6 kB / 1.062 GB, free: 71.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/2.44, allocations: 27.64 kB / 1.062 GB, free: 71.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.179e-06/2.44, allocations: 0 / 1.062 GB, free: 71.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.951e-05/2.44, allocations: 318.8 kB / 1.062 GB, free: 71.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.202e-05/2.44, allocations: 35.91 kB / 1.062 GB, free: 71.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.814e-05/2.44, allocations: 43.42 kB / 1.062 GB, free: 71.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000748/2.441, allocations: 115.8 kB / 1.062 GB, free: 71.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.72e-06/2.441, allocations: 0 / 1.062 GB, free: 71.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008764/2.442, allocations: 197.5 kB / 1.062 GB, free: 71.17 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/2.442, allocations: 4 kB / 1.062 GB, free: 71.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.445e-06/2.442, allocations: 0 / 1.062 GB, free: 71.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/2.442, allocations: 4 kB / 1.062 GB, free: 71.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.981e-05/2.442, allocations: 12 kB / 1.062 GB, free: 71.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/2.442, allocations: 7.922 kB / 1.062 GB, free: 71.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.026e-05/2.442, allocations: 4 kB / 1.062 GB, free: 71.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/2.442, allocations: 4 kB / 1.062 GB, free: 71.13 MB / 346.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 () * 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 5.212e-05/2.442, allocations: 108.9 kB / 1.062 GB, free: 71.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.746e-05/2.442, allocations: 11.97 kB / 1.062 GB, free: 71.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009503/2.443, allocations: 218.1 kB / 1.063 GB, free: 70.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.383e-06/2.443, allocations: 4.281 kB / 1.063 GB, free: 70.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.643e-06/2.443, allocations: 0 / 1.063 GB, free: 70.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.827e-06/2.443, allocations: 3.984 kB / 1.063 GB, free: 70.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/2.443, allocations: 166.1 kB / 1.063 GB, free: 70.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.779e-06/2.443, allocations: 3.953 kB / 1.063 GB, free: 70.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/2.443, allocations: 15.98 kB / 1.063 GB, free: 70.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.133e-06/2.443, allocations: 0 / 1.063 GB, free: 70.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/2.443, allocations: 4 kB / 1.063 GB, free: 70.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.476e-06/2.443, allocations: 4 kB / 1.063 GB, free: 70.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.198e-06/2.443, allocations: 3.938 kB / 1.063 GB, free: 70.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/2.444, allocations: 263.3 kB / 1.063 GB, free: 70.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.838e-05/2.445, allocations: 101 kB / 1.063 GB, free: 70.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/2.445, allocations: 0 / 1.063 GB, free: 70.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.378e-05/2.445, allocations: 4.047 kB / 1.063 GB, free: 70.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/2.445, allocations: 8 kB / 1.063 GB, free: 70.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/2.445, allocations: 11.98 kB / 1.063 GB, free: 70.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.664e-05/2.445, allocations: 103.3 kB / 1.063 GB, free: 70.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.52e-07/2.445, allocations: 0 / 1.063 GB, free: 70.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009078/2.446, allocations: 251.7 kB / 1.064 GB, free: 69.78 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.001953/2.448, allocations: 1.056 MB / 1.065 GB, free: 68.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001497/2.448, allocations: 59.91 kB / 1.065 GB, free: 68.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.867e-06/2.448, allocations: 0 / 1.065 GB, free: 68.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.746e-05/2.448, allocations: 23.98 kB / 1.065 GB, free: 68.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/2.448, allocations: 28.06 kB / 1.065 GB, free: 68.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004341/2.449, allocations: 259 kB / 1.065 GB, free: 68.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/2.449, allocations: 0.6924 MB / 1.066 GB, free: 67.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/2.449, allocations: 23.38 kB / 1.066 GB, free: 67.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.595e-06/2.449, allocations: 0 / 1.066 GB, free: 67.58 MB / 346.7 MB Notification: Performance of Templates: time 0.01208/2.461, allocations: 8.099 MB / 1.074 GB, free: 59.47 MB / 346.7 MB