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.WorldForces2.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2") Notification: Performance of loadModel(ModelicaTest): time 2.159/2.159, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004448, allocations: 12 kB / 314.3 MB, free: 9.66 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2908, allocations: 54.88 MB / 369.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces2): time 0.1109/0.4017, allocations: 82.71 MB / 451.9 MB, free: 9.844 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04768/0.4494, allocations: 18.58 MB / 470.5 MB, free: 7.211 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01597/0.4654, allocations: 407.1 kB / 470.9 MB, free: 6.812 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01315/0.4786, allocations: 4.273 MB / 475.1 MB, free: 2.52 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0398/0.5185, allocations: 11.83 MB / 487 MB, free: 6.656 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005668/0.5242, allocations: 1.01 MB / 488 MB, free: 5.645 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.3494/0.8737, allocations: 26.17 MB / 0.5021 GB, free: 22.69 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01216/0.8859, allocations: 7.354 MB / 0.5093 GB, free: 22.03 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003348/0.8893, allocations: 1.73 MB / 0.511 GB, free: 22.03 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003971/0.8933, allocations: 2.426 MB / 0.5133 GB, free: 22.02 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.8946, allocations: 246.6 kB / 0.5136 GB, free: 22.02 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002949/0.8975, allocations: 1.149 MB / 0.5147 GB, free: 22.02 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003183/0.9008, allocations: 2.771 MB / 0.5174 GB, free: 22.02 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.9026, allocations: 1.383 MB / 0.5188 GB, free: 21.98 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.9136, allocations: 9.403 MB / 0.5279 GB, free: 20.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.924e-06/0.9137, allocations: 0 / 0.5279 GB, free: 20.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.173e-06/0.9137, allocations: 0 / 0.5279 GB, free: 20.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002945/0.914, allocations: 4 kB / 0.5279 GB, free: 20.19 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.01846/0.9325, allocations: 7.21 MB / 0.535 GB, free: 16.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.9325, allocations: 9.188 kB / 0.535 GB, free: 16.01 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07161/1.004, allocations: 11.18 MB / 0.5459 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/1.017, allocations: 5.612 MB / 0.5514 GB, free: 6.426 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003526/1.017, allocations: 387.4 kB / 0.5518 GB, free: 6.215 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/1.019, allocations: 0.5113 MB / 0.5523 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03429/1.053, allocations: 15.81 MB / 0.5677 GB, free: 9.465 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002832/1.054, allocations: 72.38 kB / 0.5678 GB, free: 9.426 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001195/1.055, allocations: 249 kB / 0.568 GB, free: 9.355 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005474/1.06, allocations: 2.759 MB / 0.5707 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03417/1.095, allocations: 12.92 MB / 0.5833 GB, free: 14.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0968/1.192, allocations: 59.86 MB / 0.6418 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01919/1.211, allocations: 5.895 MB / 0.6475 GB, free: 7.352 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002454/1.211, allocations: 53.58 kB / 0.6476 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.799e-05/1.211, allocations: 62 kB / 0.6476 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=242): time 8.087e-06/1.211, allocations: 2.906 kB / 0.6476 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=260): time 0.09087/1.302, allocations: 23.46 MB / 0.6706 GB, free: 3.418 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001938/1.302, allocations: 261.3 kB / 0.6708 GB, free: 3.105 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01459/1.317, allocations: 7.304 MB / 0.6779 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005471/1.317, allocations: 67.98 kB / 0.678 GB, free: 13.49 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005074/1.323, allocations: 4.59 MB / 0.6825 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.324, allocations: 1.001 MB / 0.6835 GB, free: 7.938 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007294/1.325, allocations: 176 kB / 0.6836 GB, free: 7.766 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000714/1.326, allocations: 0.6621 MB / 0.6843 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007083/1.333, allocations: 2.952 MB / 0.6872 GB, free: 4.133 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3153/1.648, allocations: 8.076 MB / 0.695 GB, free: 206.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/1.658, allocations: 4.765 MB / 0.6997 GB, free: 205.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003236/1.659, allocations: 53.31 kB / 0.6998 GB, free: 205.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1090) (initialization): time 0.02581/1.684, allocations: 11.23 MB / 0.7107 GB, free: 201.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002199/1.685, allocations: 84.56 kB / 0.7108 GB, free: 201.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003142/1.685, allocations: 181.2 kB / 0.711 GB, free: 201.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003238/1.688, allocations: 1.03 MB / 0.712 GB, free: 201.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008458/1.697, allocations: 2.023 MB / 0.714 GB, free: 201.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/1.71, allocations: 9.58 MB / 0.7233 GB, free: 195.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008409/1.718, allocations: 472.6 kB / 0.7238 GB, free: 195 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00152/1.72, allocations: 0.4978 MB / 0.7242 GB, free: 194.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 822 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1027): * Single equations (assignments): 1021 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007017/1.727, allocations: 3.198 MB / 0.7274 GB, free: 193.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/1.728, allocations: 0.5826 MB / 0.7279 GB, free: 193.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009803/1.738, allocations: 4.687 MB / 0.7325 GB, free: 189.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/1.738, allocations: 33.48 kB / 0.7325 GB, free: 189.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.836e-05/1.738, allocations: 8 kB / 0.7326 GB, free: 189.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.558e-05/1.738, allocations: 18.81 kB / 0.7326 GB, free: 189.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02473/1.763, allocations: 11.84 MB / 0.7441 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/1.763, allocations: 0 / 0.7441 GB, free: 179.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003081/1.766, allocations: 0.5095 MB / 0.7446 GB, free: 179.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/1.768, allocations: 0.7236 MB / 0.7453 GB, free: 178.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004045/1.769, allocations: 44 kB / 0.7454 GB, free: 178.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/1.78, allocations: 8.652 MB / 0.7538 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.459e-06/1.78, allocations: 0 / 0.7538 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.794, allocations: 8.056 MB / 0.7617 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002928/1.797, allocations: 1.04 MB / 0.7627 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/1.798, allocations: 44 kB / 0.7628 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/1.801, allocations: 148 kB / 0.7629 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004739/1.802, allocations: 161.6 kB / 0.7631 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/1.802, allocations: 64.78 kB / 0.7631 GB, free: 161 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008679/1.811, allocations: 4.723 MB / 0.7677 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.691e-06/1.811, allocations: 0 / 0.7677 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009347/1.82, allocations: 1.556 MB / 0.7692 GB, free: 154.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (215): * Single equations (assignments): 209 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008039/1.821, allocations: 209.2 kB / 0.7694 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01372/1.835, allocations: 7.435 MB / 0.7767 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.835, allocations: 4 kB / 0.7767 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004638/1.839, allocations: 2.526 MB / 0.7792 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00462/1.844, allocations: 0.7625 MB / 0.7799 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03226/1.876, allocations: 18 MB / 0.7975 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009475/1.886, allocations: 5.032 MB / 0.8024 GB, free: 120.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002086/1.888, allocations: 463.4 kB / 0.8029 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.71e-06/1.888, allocations: 0 / 0.8029 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.5504/2.438, allocations: 172.5 MB / 0.9713 GB, free: 155.2 MB / 0.5261 GB