Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Sensors.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.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadModel(Modelica): time 1.603/1.603, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003792, allocations: 12 kB / 233.2 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06977/0.07017, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002393/0.07261, allocations: 1.557 MB / 273.5 MB, free: 10.63 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009512/0.07359, allocations: 499.3 kB / 274 MB, free: 10.14 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.07371, allocations: 4 kB / 274 MB, free: 10.14 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.854e-05/0.07377, allocations: 15.84 kB / 274 MB, free: 10.12 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.0739, allocations: 35.92 kB / 274 MB, free: 10.09 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.07411, allocations: 31.95 kB / 274.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.07432, allocations: 103.8 kB / 274.2 MB, free: 9.953 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.0745, allocations: 59.5 kB / 274.2 MB, free: 9.895 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.07467, allocations: 43.86 kB / 274.3 MB, free: 9.852 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.07481, allocations: 63.69 kB / 274.3 MB, free: 9.789 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.07485, allocations: 4 kB / 274.3 MB, free: 9.785 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.596e-05/0.07489, allocations: 8 kB / 274.3 MB, free: 9.777 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.498e-05/0.07493, allocations: 27.92 kB / 274.4 MB, free: 9.75 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.327e-05/0.075, allocations: 45.64 kB / 274.4 MB, free: 9.699 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.07519, allocations: 124 kB / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.998e-06/0.07521, allocations: 0 / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.168e-06/0.07522, allocations: 0 / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.957e-06/0.07524, allocations: 0 / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006416/0.07589, allocations: 418.8 kB / 274.9 MB, free: 9.121 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.07594, allocations: 12.02 kB / 274.9 MB, free: 9.109 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.416e-05/0.07601, allocations: 15.81 kB / 275 MB, free: 9.094 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.07627, allocations: 202.9 kB / 275.2 MB, free: 8.855 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.0763, allocations: 16 kB / 275.2 MB, free: 8.84 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.446e-05/0.07637, allocations: 19.84 kB / 275.2 MB, free: 8.82 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.07674, allocations: 141.1 kB / 275.3 MB, free: 8.676 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.07678, allocations: 4 kB / 275.3 MB, free: 8.672 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.07681, allocations: 4 kB / 275.3 MB, free: 8.668 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.545e-06/0.07683, allocations: 4 kB / 275.3 MB, free: 8.664 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002837/0.07712, allocations: 95.94 kB / 275.4 MB, free: 8.57 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.07818, allocations: 0.5367 MB / 276 MB, free: 7.977 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.07841, allocations: 78.53 kB / 276.1 MB, free: 7.891 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.07845, allocations: 192 / 276.1 MB, free: 7.891 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.0785, allocations: 38.5 kB / 276.1 MB, free: 7.844 MB / 234.7 MB Notification: Performance of pre-optimization done (n=9): time 4.048e-06/0.07851, allocations: 3.984 kB / 276.1 MB, free: 7.84 MB / 234.7 MB Notification: Performance of matching and sorting (n=11): time 0.001312/0.07984, allocations: 0.6061 MB / 276.7 MB, free: 7.141 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.07991, allocations: 59.41 kB / 276.8 MB, free: 7.07 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.08007, allocations: 134 kB / 276.9 MB, free: 6.926 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.08011, allocations: 29.7 kB / 276.9 MB, free: 6.891 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.08026, allocations: 194.4 kB / 277.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.08031, allocations: 39.45 kB / 277.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.007e-05/0.08033, allocations: 4 kB / 277.1 MB, free: 6.656 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.08051, allocations: 318.8 kB / 277.5 MB, free: 6.336 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.08064, allocations: 35.92 kB / 277.5 MB, free: 6.301 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.08081, allocations: 86.84 kB / 277.6 MB, free: 6.191 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.08097, allocations: 49.03 kB / 277.6 MB, free: 6.145 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.08099, allocations: 4 kB / 277.6 MB, free: 6.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000395/0.08139, allocations: 165.2 kB / 277.8 MB, free: 5.973 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.08143, allocations: 8 kB / 277.8 MB, free: 5.965 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.107e-06/0.08145, allocations: 192 / 277.8 MB, free: 5.965 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.08147, allocations: 8 kB / 277.8 MB, free: 5.957 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.08169, allocations: 31.98 kB / 277.8 MB, free: 5.926 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.08171, allocations: 4 kB / 277.8 MB, free: 5.922 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.08183, allocations: 8 kB / 277.9 MB, free: 5.914 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.08186, allocations: 11.94 kB / 277.9 MB, free: 5.902 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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.0001512/0.08202, allocations: 125.8 kB / 278 MB, free: 5.77 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.606e-05/0.0821, allocations: 15.86 kB / 278 MB, free: 5.754 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.08215, allocations: 12.72 kB / 278 MB, free: 5.742 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.634e-06/0.08216, allocations: 0 / 278 MB, free: 5.742 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.43e-06/0.08218, allocations: 0 / 278 MB, free: 5.742 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.086e-06/0.08219, allocations: 4 kB / 278 MB, free: 5.738 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000792/0.08299, allocations: 455.9 kB / 278.5 MB, free: 5.23 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.08302, allocations: 0 / 278.5 MB, free: 5.23 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.08321, allocations: 27.92 kB / 278.5 MB, free: 5.203 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.859e-06/0.08323, allocations: 8 kB / 278.5 MB, free: 5.195 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.08326, allocations: 4 kB / 278.5 MB, free: 5.191 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.311e-06/0.08327, allocations: 0 / 278.5 MB, free: 5.191 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.768e-06/0.08329, allocations: 7.938 kB / 278.5 MB, free: 5.184 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.08375, allocations: 257 kB / 278.8 MB, free: 4.91 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.08385, allocations: 93.03 kB / 278.9 MB, free: 4.801 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.08389, allocations: 0 / 278.9 MB, free: 4.801 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.08402, allocations: 4 kB / 278.9 MB, free: 4.797 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.08407, allocations: 11.98 kB / 278.9 MB, free: 4.785 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.0841, allocations: 8.062 kB / 278.9 MB, free: 4.777 MB / 234.7 MB Notification: Performance of sorting global known variables: time 8.767e-05/0.0842, allocations: 99.77 kB / 279 MB, free: 4.68 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.88e-07/0.08421, allocations: 0 / 279 MB, free: 4.68 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000367/0.08458, allocations: 28 kB / 279 MB, free: 4.652 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * 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.000122/0.08472, allocations: 103.2 kB / 279.1 MB, free: 4.543 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.08504, allocations: 104.3 kB / 279.2 MB, free: 4.441 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.022e-06/0.08506, allocations: 0 / 279.2 MB, free: 4.441 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.0852, allocations: 39.92 kB / 279.2 MB, free: 4.402 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.08548, allocations: 18.09 kB / 279.3 MB, free: 4.387 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.08651, allocations: 0.5443 MB / 279.8 MB, free: 3.809 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.08694, allocations: 0.716 MB / 280.5 MB, free: 3.066 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.087, allocations: 15.44 kB / 280.5 MB, free: 3.051 MB / 234.7 MB Notification: Performance of SimCode: time 1.473e-06/0.08701, allocations: 0 / 280.5 MB, free: 3.051 MB / 234.7 MB Notification: Performance of Templates: time 0.003527/0.09055, allocations: 1.414 MB / 281.9 MB, free: 1.637 MB / 234.7 MB