Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.826/1.826, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.287, allocations: 48.7 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03614/0.3232, allocations: 28.5 MB / 359.7 MB, free: 1.754 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.3432, allocations: 7.522 MB / 367.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006334/0.3496, allocations: 143.6 kB / 367.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00456/0.3542, allocations: 1.396 MB / 368.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01473/0.369, allocations: 4.216 MB / 373 MB, free: 4.656 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002724/0.3717, allocations: 0.5927 MB / 373.6 MB, free: 4.062 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02034/0.3921, allocations: 9.47 MB / 383 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005357/0.3975, allocations: 2.977 MB / 386 MB, free: 7.547 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.3993, allocations: 0.9305 MB / 386.9 MB, free: 6.613 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002183/0.4015, allocations: 1.297 MB / 388.2 MB, free: 5.309 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000456/0.402, allocations: 124 kB / 388.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.4042, allocations: 0.9753 MB / 389.3 MB, free: 4.211 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001828/0.4061, allocations: 1.379 MB / 390.7 MB, free: 2.828 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009883/0.4071, allocations: 0.7181 MB / 391.4 MB, free: 2.102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007367/0.4145, allocations: 4.86 MB / 396.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.258e-06/0.4145, allocations: 0 / 396.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.88e-06/0.4145, allocations: 3.984 kB / 396.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.4147, allocations: 0 / 396.3 MB, free: 13.23 MB / 330.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.01035/0.425, allocations: 3.738 MB / 400 MB, free: 9.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.4251, allocations: 11.97 kB / 400 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09573/0.5208, allocations: 8.289 MB / 408.3 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007053/0.5279, allocations: 2.593 MB / 410.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/0.5282, allocations: 196.9 kB / 411.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.5294, allocations: 263.8 kB / 411.4 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01969/0.5491, allocations: 8.598 MB / 420 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001554/0.5493, allocations: 51.36 kB / 420 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006928/0.55, allocations: 123.9 kB / 420.1 MB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/0.5535, allocations: 1.676 MB / 421.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.5726, allocations: 7.214 MB / 429 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05319/0.6258, allocations: 33.95 MB / 463 MB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.6375, allocations: 3.466 MB / 466.4 MB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/0.653, allocations: 7.276 MB / 473.7 MB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.318e-05/0.6531, allocations: 47.56 kB / 473.8 MB, free: 13.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=150): time 5.979e-06/0.6531, allocations: 0 / 473.8 MB, free: 13.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=185): time 0.3374/0.9905, allocations: 20.97 MB / 494.7 MB, free: 130.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.9907, allocations: 204.9 kB / 494.9 MB, free: 129.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007223/0.9979, allocations: 3.832 MB / 498.8 MB, free: 128.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003411/0.9983, allocations: 51.98 kB / 498.8 MB, free: 128.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002026/1, allocations: 2.756 MB / 0.4898 GB, free: 126.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009191/1.001, allocations: 0.7067 MB / 0.4905 GB, free: 125.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/1.002, allocations: 115 kB / 0.4906 GB, free: 125.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003869/1.002, allocations: 0.5539 MB / 0.4912 GB, free: 125.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004982/1.007, allocations: 2.1 MB / 0.4932 GB, free: 124.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006631/1.014, allocations: 5.63 MB / 0.4987 GB, free: 119.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006347/1.02, allocations: 3.371 MB / 0.502 GB, free: 117.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/1.02, allocations: 37.44 kB / 0.502 GB, free: 117.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=757) (initialization): time 0.02361/1.044, allocations: 9.129 MB / 0.5109 GB, free: 112.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.044, allocations: 63.98 kB / 0.511 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001364/1.044, allocations: 124 kB / 0.5111 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006552/1.051, allocations: 1.52 MB / 0.5126 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005079/1.056, allocations: 1.29 MB / 0.5139 GB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01955/1.076, allocations: 10.11 MB / 0.5237 GB, free: 98.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005316/1.081, allocations: 307.5 kB / 0.524 GB, free: 98.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008162/1.082, allocations: 364 kB / 0.5244 GB, free: 98.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 567 * 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 (690): * Single equations (assignments): 686 * 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.003469/1.085, allocations: 1.891 MB / 0.5262 GB, free: 96.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007566/1.086, allocations: 327.7 kB / 0.5265 GB, free: 95.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/1.097, allocations: 4.061 MB / 0.5305 GB, free: 91.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.391e-05/1.097, allocations: 20 kB / 0.5305 GB, free: 91.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/1.097, allocations: 8 kB / 0.5305 GB, free: 91.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-05/1.097, allocations: 11.97 kB / 0.5305 GB, free: 91.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01983/1.117, allocations: 8.399 MB / 0.5387 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.601e-05/1.117, allocations: 4 kB / 0.5388 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/1.119, allocations: 251.6 kB / 0.539 GB, free: 83.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005581/1.124, allocations: 1.208 MB / 0.5402 GB, free: 82.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003017/1.125, allocations: 31.98 kB / 0.5402 GB, free: 81.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/1.14, allocations: 8.323 MB / 0.5483 GB, free: 73.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.064e-06/1.14, allocations: 4 kB / 0.5483 GB, free: 73.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/1.155, allocations: 6.51 MB / 0.5547 GB, free: 67.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.156, allocations: 0.6177 MB / 0.5553 GB, free: 66.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005775/1.157, allocations: 28 kB / 0.5553 GB, free: 66.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/1.159, allocations: 92.58 kB / 0.5554 GB, free: 66.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/1.159, allocations: 105.9 kB / 0.5555 GB, free: 66.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/1.159, allocations: 55.98 kB / 0.5556 GB, free: 66.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004127/1.164, allocations: 2.406 MB / 0.5579 GB, free: 63.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.826e-06/1.164, allocations: 0 / 0.5579 GB, free: 63.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005777/1.169, allocations: 0.9831 MB / 0.5589 GB, free: 62.73 MB / 410.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 (130): * Single equations (assignments): 126 * 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.0005775/1.17, allocations: 184 kB / 0.559 GB, free: 62.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009728/1.18, allocations: 5.201 MB / 0.5641 GB, free: 57.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.426e-06/1.18, allocations: 0 / 0.5641 GB, free: 57.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003381/1.183, allocations: 1.749 MB / 0.5658 GB, free: 55.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/1.186, allocations: 365.4 kB / 0.5662 GB, free: 55.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.203, allocations: 10.27 MB / 0.5762 GB, free: 44.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004202/1.207, allocations: 3.046 MB / 0.5792 GB, free: 41.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.209, allocations: 267.4 kB / 0.5794 GB, free: 41.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.796e-06/1.209, allocations: 0 / 0.5794 GB, free: 41.59 MB / 410.7 MB Notification: Performance of Templates: time 0.3323/1.541, allocations: 67.12 MB / 0.645 GB, free: 131.6 MB / 426.7 MB