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.644/1.644, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 8 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07945/0.07982, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2751/0.3549, allocations: 66.59 MB / 338.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.3552, allocations: 67.91 kB / 338.7 MB, free: 7.316 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009026/0.3642, allocations: 2.182 MB / 340.8 MB, free: 5.457 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.549e-06/0.3643, allocations: 0 / 340.8 MB, free: 5.457 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.3643, allocations: 0 / 340.8 MB, free: 5.457 MB / 266.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.000605/0.3649, allocations: 408.5 kB / 341.2 MB, free: 5.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.365, allocations: 12.03 kB / 341.3 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.345e-05/0.365, allocations: 7.906 kB / 341.3 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.3654, allocations: 213.1 kB / 341.5 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3654, allocations: 4 kB / 341.5 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.3654, allocations: 11.89 kB / 341.5 MB, free: 4.746 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.3657, allocations: 78.56 kB / 341.6 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3657, allocations: 7.984 kB / 341.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.3657, allocations: 0 / 341.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.822e-06/0.3657, allocations: 4 kB / 341.6 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.3659, allocations: 46.16 kB / 341.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007314/0.3667, allocations: 418.7 kB / 342 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3669, allocations: 56.84 kB / 342.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3669, allocations: 12.23 kB / 342.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.367, allocations: 30.56 kB / 342.1 MB, free: 4.094 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 2.248e-06/0.367, allocations: 7.938 kB / 342.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003752/0.3674, allocations: 102.7 kB / 342.2 MB, free: 3.996 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.3674, allocations: 57.84 kB / 342.3 MB, free: 3.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.3676, allocations: 128 kB / 342.4 MB, free: 3.801 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.3676, allocations: 25.7 kB / 342.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.3677, allocations: 173.9 kB / 342.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.3678, allocations: 23.41 kB / 342.6 MB, free: 3.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-06/0.3678, allocations: 4 kB / 342.6 MB, free: 3.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.368, allocations: 314.8 kB / 342.9 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.623e-05/0.3681, allocations: 23.17 kB / 343 MB, free: 3.254 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.563e-05/0.3682, allocations: 18.86 kB / 343 MB, free: 3.238 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.745e-05/0.3683, allocations: 21 kB / 343 MB, free: 3.227 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.489e-06/0.3683, allocations: 4 kB / 343 MB, free: 3.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002315/0.3685, allocations: 83.55 kB / 343.1 MB, free: 3.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3686, allocations: 7.938 kB / 343.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.527e-06/0.3686, allocations: 0.875 kB / 343.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3686, allocations: 4 kB / 343.1 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.3689, allocations: 35.97 kB / 343.1 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.14e-06/0.3689, allocations: 240 / 343.1 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.634e-05/0.369, allocations: 15.11 kB / 343.1 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.369, allocations: 0 / 343.1 MB, free: 3.09 MB / 266.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 () * Number of clocked 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.0001183/0.3691, allocations: 117.2 kB / 343.3 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.3692, allocations: 11.91 kB / 343.3 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.3692, allocations: 11.25 kB / 343.3 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.133e-06/0.3693, allocations: 0 / 343.3 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.268e-06/0.3693, allocations: 4.25 kB / 343.3 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.625e-06/0.3693, allocations: 3.984 kB / 343.3 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.3696, allocations: 207.2 kB / 343.5 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.625e-06/0.3696, allocations: 7.984 kB / 343.5 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.3698, allocations: 22.73 kB / 343.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3698, allocations: 0 / 343.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.3698, allocations: 0 / 343.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.699e-06/0.3699, allocations: 7.938 kB / 343.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3699, allocations: 3.984 kB / 343.5 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003914/0.3703, allocations: 213.5 kB / 343.7 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.881e-05/0.3704, allocations: 89.03 kB / 343.8 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.3704, allocations: 3.938 kB / 343.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.3705, allocations: 7.562 kB / 343.8 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.3706, allocations: 3.984 kB / 343.8 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.3706, allocations: 4 kB / 343.9 MB, free: 2.336 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.3707, allocations: 108.7 kB / 344 MB, free: 2.242 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.26e-07/0.3707, allocations: 0 / 344 MB, free: 2.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.3711, allocations: 20.06 kB / 344 MB, free: 2.223 MB / 266.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 () * Number of clocked 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.0001383/0.3712, allocations: 103.2 kB / 344.1 MB, free: 2.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.3715, allocations: 58.36 kB / 344.1 MB, free: 2.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.491e-06/0.3715, allocations: 0 / 344.1 MB, free: 2.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.24e-05/0.3716, allocations: 23.67 kB / 344.2 MB, free: 2.051 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.3719, allocations: 28.98 kB / 344.2 MB, free: 2.027 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007681/0.3727, allocations: 335.3 kB / 344.5 MB, free: 1.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3731, allocations: 0.7082 MB / 345.2 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.717e-05/0.3731, allocations: 15.42 kB / 345.2 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of SimCode: time 1.345e-06/0.3731, allocations: 0 / 345.2 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of Templates: time 0.003286/0.3764, allocations: 1.158 MB / 346.4 MB, free: 15.78 MB / 282.7 MB