Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.InverseModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.898e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2153, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.3453, allocations: 66.5 MB / 334.1 MB, free: 6.836 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/0.3457, allocations: 63.97 kB / 334.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01531/0.361, allocations: 2.176 MB / 336.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3611, allocations: 3.938 kB / 336.3 MB, free: 4.586 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.3611, allocations: 4 kB / 336.3 MB, free: 4.582 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008498/0.362, allocations: 382.1 kB / 336.7 MB, free: 4.164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.3621, allocations: 12.03 kB / 336.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.356e-05/0.3622, allocations: 11.91 kB / 336.7 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.3627, allocations: 207.9 kB / 336.9 MB, free: 3.895 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.3628, allocations: 4 kB / 336.9 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.945e-05/0.3628, allocations: 11.98 kB / 336.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.3632, allocations: 80.72 kB / 337 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3632, allocations: 0 / 337 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.3633, allocations: 0 / 337 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.69e-06/0.3633, allocations: 0 / 337 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.3635, allocations: 39.92 kB / 337.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.3648, allocations: 412 kB / 337.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.3651, allocations: 58.53 kB / 337.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3652, allocations: 28.98 kB / 337.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.3653, allocations: 0 / 337.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.3653, allocations: 34.56 kB / 337.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 3.061e-06/0.3654, allocations: 0 / 337.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004184/0.3658, allocations: 69.64 kB / 337.7 MB, free: 3.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.3659, allocations: 51.41 kB / 337.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.3662, allocations: 129.7 kB / 337.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.3662, allocations: 25.7 kB / 337.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.3664, allocations: 186.4 kB / 338 MB, free: 2.664 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.3665, allocations: 11.81 kB / 338.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.3665, allocations: 4 kB / 338.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002412/0.3668, allocations: 318.7 kB / 338.4 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-05/0.3669, allocations: 15.98 kB / 338.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.367, allocations: 20 kB / 338.4 MB, free: 2.293 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.3671, allocations: 12 kB / 338.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.3672, allocations: 0 / 338.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003495/0.3675, allocations: 77.61 kB / 338.5 MB, free: 2.199 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3676, allocations: 8 kB / 338.5 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.106e-06/0.3676, allocations: 0 / 338.5 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3676, allocations: 0 / 338.5 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.3682, allocations: 39.97 kB / 338.5 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.559e-06/0.3682, allocations: 0 / 338.5 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.3684, allocations: 19.91 kB / 338.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.3684, allocations: 7.922 kB / 338.6 MB, free: 2.125 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001365/0.3686, allocations: 108.9 kB / 338.7 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.615e-05/0.3687, allocations: 7.906 kB / 338.7 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.347e-05/0.3688, allocations: 12.09 kB / 338.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3688, allocations: 0 / 338.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.439e-06/0.3688, allocations: 0 / 338.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.902e-06/0.3688, allocations: 0 / 338.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.3694, allocations: 197.6 kB / 338.9 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-06/0.3694, allocations: 4 kB / 338.9 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003661/0.3698, allocations: 27.97 kB / 338.9 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.453e-06/0.3698, allocations: 0 / 338.9 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.3699, allocations: 4 kB / 338.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.441e-06/0.3699, allocations: 0 / 338.9 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.3699, allocations: 4 kB / 338.9 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005129/0.3704, allocations: 187.3 kB / 339.1 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.3706, allocations: 93.03 kB / 339.2 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.3707, allocations: 3.938 kB / 339.2 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3709, allocations: 7.984 kB / 339.2 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.371, allocations: 4.047 kB / 339.2 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.371, allocations: 4 kB / 339.2 MB, free: 1.375 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001903/0.3713, allocations: 115.2 kB / 339.3 MB, free: 1.266 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.94e-07/0.3713, allocations: 0 / 339.3 MB, free: 1.266 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007162/0.372, allocations: 27.84 kB / 339.4 MB, free: 1.238 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0001951/0.3722, allocations: 95.25 kB / 339.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000263/0.3725, allocations: 43.92 kB / 339.5 MB, free: 1.094 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.251e-06/0.3725, allocations: 0 / 339.5 MB, free: 1.094 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.3727, allocations: 24 kB / 339.5 MB, free: 1.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.3732, allocations: 24.97 kB / 339.5 MB, free: 1.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.3743, allocations: 211.3 kB / 339.7 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.3749, allocations: 0.7043 MB / 340.4 MB, free: 84 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.979e-05/0.375, allocations: 15.44 kB / 340.5 MB, free: 68 kB / 282.7 MB Notification: Performance of SimCode: time 1.828e-06/0.3751, allocations: 0 / 340.5 MB, free: 68 kB / 282.7 MB Notification: Performance of Templates: time 0.005352/0.3804, allocations: 1.152 MB / 341.6 MB, free: 14.91 MB / 298.7 MB