Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.977/1.977, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08215/0.08254, allocations: 44.52 MB / 308.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002169/0.08476, allocations: 1.332 MB / 309.7 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.08588, allocations: 496 kB / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.356e-05/0.086, allocations: 7.938 kB / 310.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.328e-05/0.0861, allocations: 3.938 kB / 310.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.08628, allocations: 23.95 kB / 310.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000183/0.08648, allocations: 35.91 kB / 310.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.08667, allocations: 75.78 kB / 310.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.0868, allocations: 29.03 kB / 310.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.08692, allocations: 39.83 kB / 310.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.818e-05/0.08703, allocations: 31.86 kB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.08706, allocations: 0 / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.045e-05/0.0871, allocations: 4 kB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/0.08716, allocations: 19.91 kB / 310.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.08721, allocations: 37.64 kB / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.08734, allocations: 55.88 kB / 310.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.08735, allocations: 0 / 310.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.095e-06/0.08736, allocations: 0 / 310.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.917e-06/0.08738, allocations: 0 / 310.5 MB, free: 14.83 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.000638/0.08803, allocations: 403.2 kB / 310.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.08808, allocations: 8.031 kB / 310.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.309e-05/0.08813, allocations: 7.906 kB / 310.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.08842, allocations: 207.3 kB / 311.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.08845, allocations: 4 kB / 311.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.08849, allocations: 8 kB / 311.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.08876, allocations: 81.61 kB / 311.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.08879, allocations: 0 / 311.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.08882, allocations: 4 kB / 311.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.927e-06/0.08883, allocations: 4 kB / 311.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.08901, allocations: 39.97 kB / 311.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007674/0.0898, allocations: 415.9 kB / 311.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.09002, allocations: 58.56 kB / 311.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.09006, allocations: 7.984 kB / 311.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.09011, allocations: 38.5 kB / 311.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 2.534e-06/0.09012, allocations: 0 / 311.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003922/0.09052, allocations: 101.6 kB / 311.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.09059, allocations: 55.39 kB / 311.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.09077, allocations: 144.8 kB / 312.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.09081, allocations: 25.7 kB / 312.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.09094, allocations: 182.6 kB / 312.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.09099, allocations: 15.8 kB / 312.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.388e-06/0.09101, allocations: 4 kB / 312.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.09118, allocations: 314.8 kB / 312.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.995e-05/0.09128, allocations: 19.98 kB / 312.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.216e-05/0.09138, allocations: 23.98 kB / 312.6 MB, free: 12.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.09148, allocations: 20 kB / 312.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.578e-06/0.0915, allocations: 0 / 312.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002514/0.09176, allocations: 89.61 kB / 312.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.0918, allocations: 7.953 kB / 312.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.416e-06/0.09181, allocations: 0 / 312.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.09184, allocations: 3.938 kB / 312.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.09212, allocations: 39.97 kB / 312.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.828e-06/0.09215, allocations: 4 kB / 312.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.068e-05/0.09224, allocations: 8 kB / 312.8 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.09226, allocations: 0 / 312.8 MB, free: 12.31 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.0001292/0.0924, allocations: 117.8 kB / 312.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.09246, allocations: 11.89 kB / 312.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.09251, allocations: 16.27 kB / 313 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.09253, allocations: 0 / 313 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.863e-06/0.09254, allocations: 0 / 313 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.165e-06/0.09255, allocations: 0 / 313 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.09288, allocations: 209.5 kB / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.283e-06/0.09289, allocations: 0 / 313.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.0931, allocations: 32.16 kB / 313.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.09312, allocations: 0 / 313.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.09315, allocations: 8 kB / 313.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.938e-06/0.09317, allocations: 3.953 kB / 313.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.078e-06/0.09318, allocations: 0 / 313.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.09361, allocations: 207.4 kB / 313.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.835e-05/0.09369, allocations: 84.95 kB / 313.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.09374, allocations: 8.031 kB / 313.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.09386, allocations: 0 / 313.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.09392, allocations: 11.94 kB / 313.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-06/0.09394, allocations: 0 / 313.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.09407, allocations: 111.1 kB / 313.6 MB, free: 11.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.76e-07/0.09409, allocations: 4 kB / 313.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003195/0.09442, allocations: 16 kB / 313.6 MB, free: 11.4 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.0001347/0.09456, allocations: 99.19 kB / 313.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002399/0.09482, allocations: 47.98 kB / 313.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.09484, allocations: 0 / 313.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.936e-05/0.09494, allocations: 27.98 kB / 313.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.09529, allocations: 18.02 kB / 313.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008031/0.09611, allocations: 329.3 kB / 314.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.09654, allocations: 0.7043 MB / 314.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.381e-05/0.09661, allocations: 15.42 kB / 314.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.711e-06/0.09662, allocations: 0 / 314.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of Templates: time 0.003388/0.1, allocations: 1.148 MB / 316 MB, free: 8.957 MB / 266.7 MB