Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.874/1.874, allocations: 171.2 MB / 187.3 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005986/0.000599, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1041, allocations: 38.75 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3508/0.4549, allocations: 66.59 MB / 339.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.4553, allocations: 70.72 kB / 339.2 MB, free: 7.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01278/0.4681, allocations: 2.183 MB / 341.4 MB, free: 5.551 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.4681, allocations: 0 / 341.4 MB, free: 5.551 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.4682, allocations: 4 kB / 341.4 MB, free: 5.547 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.0008079/0.469, allocations: 415.5 kB / 341.8 MB, free: 5.102 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.4691, allocations: 8.031 kB / 341.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.15e-05/0.4691, allocations: 11.91 kB / 341.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004419/0.4696, allocations: 206.1 kB / 342 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.4696, allocations: 7.938 kB / 342 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.4697, allocations: 7.953 kB / 342 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.4701, allocations: 85.28 kB / 342.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.4702, allocations: 0 / 342.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.4702, allocations: 3.812 kB / 342.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.4702, allocations: 0 / 342.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.4705, allocations: 39.61 kB / 342.1 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.4717, allocations: 415.7 kB / 342.5 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.472, allocations: 67.59 kB / 342.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.472, allocations: 0 / 342.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.4721, allocations: 36.77 kB / 342.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 7.053e-06/0.4721, allocations: 0 / 342.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006041/0.4727, allocations: 111.6 kB / 342.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.4728, allocations: 55.41 kB / 342.8 MB, free: 4.023 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.4731, allocations: 145.5 kB / 343 MB, free: 3.879 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.4731, allocations: 25.7 kB / 343 MB, free: 3.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.4733, allocations: 181.5 kB / 343.2 MB, free: 3.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.4733, allocations: 22.47 kB / 343.2 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/0.4734, allocations: 0 / 343.2 MB, free: 3.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.4736, allocations: 318.8 kB / 343.5 MB, free: 3.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.4737, allocations: 18.38 kB / 343.5 MB, free: 3.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.4739, allocations: 27.73 kB / 343.5 MB, free: 3.309 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.4741, allocations: 23.92 kB / 343.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4741, allocations: 0 / 343.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004028/0.4745, allocations: 82.25 kB / 343.6 MB, free: 3.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.4746, allocations: 5.094 kB / 343.6 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.4746, allocations: 3.984 kB / 343.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4746, allocations: 0 / 343.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005137/0.4751, allocations: 39.97 kB / 343.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.301e-05/0.4752, allocations: 4.25 kB / 343.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.4754, allocations: 0 / 343.7 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.4754, allocations: 15.89 kB / 343.7 MB, free: 3.152 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.0001751/0.4756, allocations: 116.5 kB / 343.8 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.4757, allocations: 7.906 kB / 343.8 MB, free: 3.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.455e-05/0.4758, allocations: 15.61 kB / 343.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.4758, allocations: 0 / 343.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4758, allocations: 0 / 343.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.4758, allocations: 0 / 343.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.4763, allocations: 215.2 kB / 344.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4763, allocations: 0 / 344.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.4767, allocations: 19.98 kB / 344.1 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.4767, allocations: 4 kB / 344.1 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.4768, allocations: 0 / 344.1 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4768, allocations: 0 / 344.1 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.4768, allocations: 3.984 kB / 344.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.4775, allocations: 211.4 kB / 344.3 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.4777, allocations: 92.22 kB / 344.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.412e-05/0.4777, allocations: 0 / 344.4 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.4779, allocations: 7.938 kB / 344.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.478, allocations: 7.984 kB / 344.4 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.4781, allocations: 0 / 344.4 MB, free: 2.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.4782, allocations: 112.4 kB / 344.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.4783, allocations: 4.062 kB / 344.5 MB, free: 2.316 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005177/0.4788, allocations: 18.62 kB / 344.5 MB, free: 2.301 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.0001998/0.479, allocations: 95.25 kB / 344.6 MB, free: 2.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.4795, allocations: 57.16 kB / 344.7 MB, free: 2.152 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4795, allocations: 3.938 kB / 344.7 MB, free: 2.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.4797, allocations: 27.48 kB / 344.7 MB, free: 2.125 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.4802, allocations: 26.56 kB / 344.7 MB, free: 2.105 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.4816, allocations: 333.2 kB / 345.1 MB, free: 1.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.482, allocations: 0.7043 MB / 345.8 MB, free: 1.027 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.768e-05/0.4821, allocations: 11.44 kB / 345.8 MB, free: 1.016 MB / 266.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4822, allocations: 0 / 345.8 MB, free: 1.016 MB / 266.7 MB Notification: Performance of Templates: time 0.00554/0.4877, allocations: 1.171 MB / 346.9 MB, free: 15.86 MB / 282.7 MB