Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.462/2.462, allocations: 209.3 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.0004319, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4023, allocations: 48.7 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1737/0.5761, allocations: 93.05 MB / 424.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5765, allocations: 79.97 kB / 424.9 MB, free: 1.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6537/1.23, allocations: 76.72 MB / 0.4899 GB, free: 92.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.637e-06/1.23, allocations: 0 / 0.4899 GB, free: 92.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003163/1.231, allocations: 71.34 kB / 0.49 GB, free: 92.98 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: 1314 * Number of variables: 1314 Notification: Performance of Generate backend data structure: time 0.01895/1.25, allocations: 3.844 MB / 0.4937 GB, free: 91.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.25, allocations: 7.438 kB / 0.4937 GB, free: 91.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03187/1.282, allocations: 4.324 MB / 0.4979 GB, free: 90.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/1.299, allocations: 4.492 MB / 0.5023 GB, free: 89.56 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003374/1.3, allocations: 275.1 kB / 0.5026 GB, free: 89.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/1.302, allocations: 362.6 kB / 0.5029 GB, free: 89.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02519/1.327, allocations: 9.163 MB / 0.5119 GB, free: 82.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002233/1.327, allocations: 57.64 kB / 0.5119 GB, free: 82.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/1.328, allocations: 186.5 kB / 0.5121 GB, free: 82.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001764/1.33, allocations: 0.8785 MB / 0.513 GB, free: 82.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02126/1.351, allocations: 7.318 MB / 0.5201 GB, free: 75.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05595/1.407, allocations: 44.05 MB / 0.5631 GB, free: 29.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01443/1.422, allocations: 3.494 MB / 0.5665 GB, free: 26.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01613/1.438, allocations: 7.199 MB / 0.5736 GB, free: 18.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/1.438, allocations: 51.44 kB / 0.5736 GB, free: 18.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=150): time 5.33e-06/1.438, allocations: 0 / 0.5736 GB, free: 18.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=184): time 0.1096/1.548, allocations: 19.8 MB / 0.593 GB, free: 14.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/1.548, allocations: 201.2 kB / 0.5932 GB, free: 14.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008749/1.557, allocations: 3.692 MB / 0.5968 GB, free: 10.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004873/1.557, allocations: 53.7 kB / 0.5968 GB, free: 10.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003206/1.561, allocations: 2.761 MB / 0.5995 GB, free: 8.164 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.562, allocations: 0.7013 MB / 0.6002 GB, free: 7.469 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007583/1.563, allocations: 116 kB / 0.6003 GB, free: 7.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005252/1.563, allocations: 0.5507 MB / 0.6008 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006145/1.569, allocations: 2.002 MB / 0.6028 GB, free: 4.785 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/1.58, allocations: 5.557 MB / 0.6082 GB, free: 13.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008767/1.589, allocations: 3.265 MB / 0.6114 GB, free: 10.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001119/1.589, allocations: 36 kB / 0.6114 GB, free: 10.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.0346/1.623, allocations: 9.017 MB / 0.6203 GB, free: 1.148 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/1.623, allocations: 60 kB / 0.6203 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002194/1.624, allocations: 124 kB / 0.6204 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.388/2.012, allocations: 1.588 MB / 0.622 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0103/2.022, allocations: 1.289 MB / 0.6232 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02768/2.05, allocations: 9.553 MB / 0.6326 GB, free: 107.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006474/2.056, allocations: 312.3 kB / 0.6329 GB, free: 107.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001677/2.058, allocations: 360 kB / 0.6332 GB, free: 107.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 687 * 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.006154/2.064, allocations: 1.884 MB / 0.6351 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009057/2.065, allocations: 330 kB / 0.6354 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/2.082, allocations: 3.936 MB / 0.6392 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.368e-05/2.082, allocations: 19.72 kB / 0.6392 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/2.083, allocations: 7.875 kB / 0.6392 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.363e-05/2.083, allocations: 13.75 kB / 0.6392 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/2.111, allocations: 8.117 MB / 0.6472 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-05/2.111, allocations: 0 / 0.6472 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002409/2.114, allocations: 238.4 kB / 0.6474 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009021/2.123, allocations: 1.284 MB / 0.6487 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004346/2.123, allocations: 33.17 kB / 0.6487 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0225/2.146, allocations: 7.823 MB / 0.6563 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/2.146, allocations: 3.906 kB / 0.6563 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02114/2.167, allocations: 6.251 MB / 0.6624 GB, free: 98.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002127/2.169, allocations: 0.6067 MB / 0.663 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000882/2.17, allocations: 28.55 kB / 0.6631 GB, free: 97.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/2.173, allocations: 91.12 kB / 0.6631 GB, free: 97.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004654/2.173, allocations: 111.8 kB / 0.6632 GB, free: 97.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/2.174, allocations: 57.12 kB / 0.6633 GB, free: 97.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005962/2.179, allocations: 2.289 MB / 0.6655 GB, free: 96.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.22e-07/2.18, allocations: 0 / 0.6655 GB, free: 96.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006955/2.187, allocations: 0.9705 MB / 0.6665 GB, free: 96.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (129): * Single equations (assignments): 125 * 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.0007793/2.187, allocations: 170.9 kB / 0.6666 GB, free: 96.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01224/2.2, allocations: 4.99 MB / 0.6715 GB, free: 94.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/2.2, allocations: 0 / 0.6715 GB, free: 94.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003858/2.204, allocations: 1.634 MB / 0.6731 GB, free: 94.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003008/2.207, allocations: 361.9 kB / 0.6735 GB, free: 94.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/2.23, allocations: 10.13 MB / 0.6834 GB, free: 86.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006492/2.237, allocations: 3.041 MB / 0.6863 GB, free: 84.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/2.238, allocations: 269.7 kB / 0.6866 GB, free: 84.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/2.238, allocations: 4 kB / 0.6866 GB, free: 84.12 MB / 426.7 MB Notification: Performance of Templates: time 0.1336/2.372, allocations: 66.64 MB / 0.7517 GB, free: 19.96 MB / 426.7 MB