Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.363/2.363, allocations: 235.1 MB / 243 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.992e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.278, allocations: 54.86 MB / 358 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1532/0.4312, allocations: 99.1 MB / 457.1 MB, free: 11.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4315, allocations: 71.97 kB / 457.2 MB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.519/0.9506, allocations: 74.85 MB / 0.5196 GB, free: 48.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.512e-06/0.9506, allocations: 0 / 0.5196 GB, free: 48.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001896/0.9508, allocations: 71.98 kB / 0.5197 GB, free: 48.83 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01032/0.9611, allocations: 3.573 MB / 0.5232 GB, free: 45.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.9612, allocations: 8.031 kB / 0.5232 GB, free: 45.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02189/0.9831, allocations: 4.324 MB / 0.5274 GB, free: 40.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.9967, allocations: 4.464 MB / 0.5317 GB, free: 36.33 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.9969, allocations: 116.5 kB / 0.5319 GB, free: 36.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001397/0.9984, allocations: 219.9 kB / 0.5321 GB, free: 36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01037/1.009, allocations: 5.132 MB / 0.5371 GB, free: 30.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/1.025, allocations: 8.204 MB / 0.5451 GB, free: 21.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001855/1.025, allocations: 59.47 kB / 0.5451 GB, free: 21.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008771/1.026, allocations: 32 kB / 0.5452 GB, free: 21.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001308/1.027, allocations: 0.8883 MB / 0.546 GB, free: 20.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05284/1.08, allocations: 43.35 MB / 0.5884 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005087/1.085, allocations: 2.643 MB / 0.591 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002859/1.088, allocations: 1.472 MB / 0.5924 GB, free: 3.484 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001494/1.09, allocations: 0.8689 MB / 0.5932 GB, free: 2.469 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.387e-05/1.09, allocations: 51.81 kB / 0.5933 GB, free: 2.406 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 6.52e-06/1.09, allocations: 0 / 0.5933 GB, free: 2.406 MB / 426.7 MB Notification: Performance of matching and sorting (n=193): time 0.05496/1.145, allocations: 16.51 MB / 0.6094 GB, free: 1.773 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/1.145, allocations: 201.2 kB / 0.6096 GB, free: 1.535 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006373/1.151, allocations: 2.87 MB / 0.6124 GB, free: 14.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/1.152, allocations: 33.64 kB / 0.6124 GB, free: 14.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003074/1.155, allocations: 2.841 MB / 0.6152 GB, free: 11.74 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/1.156, allocations: 0.7132 MB / 0.6159 GB, free: 11.02 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005136/1.157, allocations: 0 / 0.6159 GB, free: 11.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006355/1.157, allocations: 0.5709 MB / 0.6165 GB, free: 10.44 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004685/1.162, allocations: 1.921 MB / 0.6184 GB, free: 8.512 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008392/1.17, allocations: 5.557 MB / 0.6238 GB, free: 1.113 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2758/1.446, allocations: 3.247 MB / 0.627 GB, free: 109.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001168/1.446, allocations: 36.75 kB / 0.627 GB, free: 109.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02292/1.469, allocations: 8.326 MB / 0.6351 GB, free: 109.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.47, allocations: 62.12 kB / 0.6352 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/1.47, allocations: 129.8 kB / 0.6353 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007148/1.477, allocations: 1.559 MB / 0.6368 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.482, allocations: 1.34 MB / 0.6381 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/1.499, allocations: 8.672 MB / 0.6466 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005658/1.505, allocations: 196.3 kB / 0.6468 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/1.506, allocations: 384.7 kB / 0.6472 GB, free: 108 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (724): * Single equations (assignments): 720 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001339/1.508, allocations: 437.2 kB / 0.6476 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006842/1.508, allocations: 310.3 kB / 0.6479 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.519, allocations: 3.751 MB / 0.6515 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.275e-05/1.519, allocations: 21.25 kB / 0.6516 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/1.519, allocations: 6.844 kB / 0.6516 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.423e-05/1.519, allocations: 7.031 kB / 0.6516 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02187/1.541, allocations: 7.648 MB / 0.659 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/1.541, allocations: 2.562 kB / 0.659 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/1.543, allocations: 262.5 kB / 0.6593 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006269/1.549, allocations: 1.217 MB / 0.6605 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003353/1.55, allocations: 6.75 kB / 0.6605 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.563, allocations: 6.875 MB / 0.6672 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.821e-06/1.563, allocations: 3.938 kB / 0.6672 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/1.578, allocations: 6.227 MB / 0.6733 GB, free: 99.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/1.579, allocations: 0.5858 MB / 0.6739 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006845/1.58, allocations: 3.703 kB / 0.6739 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/1.582, allocations: 68.97 kB / 0.6739 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004399/1.583, allocations: 109.6 kB / 0.674 GB, free: 99.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/1.583, allocations: 50.95 kB / 0.6741 GB, free: 99.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003936/1.587, allocations: 1.912 MB / 0.6759 GB, free: 98.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.704e-06/1.587, allocations: 0 / 0.6759 GB, free: 98.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006509/1.593, allocations: 0.8408 MB / 0.6768 GB, free: 97.67 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005578/1.594, allocations: 155.8 kB / 0.6769 GB, free: 97.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00863/1.602, allocations: 4.729 MB / 0.6815 GB, free: 93.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.999e-06/1.603, allocations: 4 kB / 0.6815 GB, free: 93.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002673/1.605, allocations: 1.567 MB / 0.6831 GB, free: 91.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/1.607, allocations: 299.4 kB / 0.6833 GB, free: 91.56 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/1.623, allocations: 7.181 MB / 0.6904 GB, free: 85.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005278/1.629, allocations: 3.043 MB / 0.6933 GB, free: 82.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/1.63, allocations: 269.7 kB / 0.6936 GB, free: 82.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.999e-06/1.63, allocations: 0 / 0.6936 GB, free: 82.64 MB / 458.7 MB Notification: Performance of Templates: time 0.09404/1.724, allocations: 65.17 MB / 0.7572 GB, free: 22.31 MB / 458.7 MB