Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003487, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 44.49 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5441, allocations: 71.87 MB / 380.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.5444, allocations: 69.33 kB / 380.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009767/0.5542, allocations: 2.155 MB / 383.1 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.115e-06/0.5543, allocations: 6.688 kB / 383.1 MB, free: 14.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.5543, allocations: 6.344 kB / 383.1 MB, free: 14.4 MB / 314.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.0006287/0.555, allocations: 399.9 kB / 383.5 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.555, allocations: 15.47 kB / 383.5 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.799e-05/0.5551, allocations: 13.47 kB / 383.5 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.5554, allocations: 212.1 kB / 383.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.5554, allocations: 5.531 kB / 383.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.5555, allocations: 8.781 kB / 383.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.5558, allocations: 80.11 kB / 383.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.5558, allocations: 1.25 kB / 383.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.5558, allocations: 4.812 kB / 383.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.5558, allocations: 5.75 kB / 383.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.556, allocations: 45.7 kB / 383.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007232/0.5568, allocations: 413.5 kB / 384.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.557, allocations: 60.02 kB / 384.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.557, allocations: 1.438 kB / 384.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.5571, allocations: 33.56 kB / 384.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 2.835e-06/0.5571, allocations: 0 / 384.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004291/0.5575, allocations: 108.7 kB / 384.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.5576, allocations: 53.77 kB / 384.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.5577, allocations: 142.2 kB / 384.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.5577, allocations: 29.95 kB / 384.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.381e-05/0.5578, allocations: 167.2 kB / 384.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.128e-05/0.5579, allocations: 23.38 kB / 384.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.5579, allocations: 0 / 384.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.341e-05/0.5579, allocations: 319.2 kB / 385.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.5581, allocations: 19.75 kB / 385.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.376e-05/0.5582, allocations: 23.14 kB / 385.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.5583, allocations: 26.38 kB / 385.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.5583, allocations: 5.344 kB / 385.2 MB, free: 12.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002663/0.5586, allocations: 88.59 kB / 385.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.5587, allocations: 6.984 kB / 385.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.5587, allocations: 0 / 385.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5587, allocations: 5.422 kB / 385.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.5591, allocations: 36.17 kB / 385.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5591, allocations: 3.016 kB / 385.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.615e-05/0.5592, allocations: 6.719 kB / 385.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.5592, allocations: 6.547 kB / 385.4 MB, free: 12.57 MB / 314.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.0001109/0.5594, allocations: 122 kB / 385.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.5594, allocations: 12.61 kB / 385.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.5595, allocations: 11.58 kB / 385.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5595, allocations: 1.062 kB / 385.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.5595, allocations: 13.02 kB / 385.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.5595, allocations: 0 / 385.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.5598, allocations: 192 kB / 385.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5598, allocations: 0 / 385.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.56, allocations: 23.67 kB / 385.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.56, allocations: 5.219 kB / 385.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.5601, allocations: 5.062 kB / 385.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.5601, allocations: 3.938 kB / 385.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5601, allocations: 1.031 kB / 385.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004249/0.5605, allocations: 204.9 kB / 386 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.5606, allocations: 87.67 kB / 386.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.5606, allocations: 6.312 kB / 386.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.5608, allocations: 3.062 kB / 386.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.5608, allocations: 3.766 kB / 386.1 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.5608, allocations: 1.469 kB / 386.1 MB, free: 12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.378e-05/0.5609, allocations: 111 kB / 386.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.561, allocations: 0 / 386.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000318/0.5613, allocations: 20.84 kB / 386.2 MB, free: 11.92 MB / 314.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.0001267/0.5614, allocations: 99.94 kB / 386.3 MB, free: 11.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.5617, allocations: 53.48 kB / 386.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.5617, allocations: 0 / 386.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.5618, allocations: 25.56 kB / 386.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.5622, allocations: 28.69 kB / 386.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009109/0.5631, allocations: 326.5 kB / 386.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.5633, allocations: 0.7095 MB / 387.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/0.5634, allocations: 15.41 kB / 387.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of SimCode: time 9.01e-07/0.5634, allocations: 0 / 387.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of Templates: time 0.003755/0.5671, allocations: 1.144 MB / 388.6 MB, free: 10.81 MB / 314.7 MB