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.WorldForces.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.WorldForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 1.91/1.91, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004359/0.0004361, allocations: 8 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2825, allocations: 48.71 MB / 331.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.1364/0.419, allocations: 92.83 MB / 424 MB, free: 1.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05446/0.4735, allocations: 20.62 MB / 444.6 MB, free: 12.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01986/0.4934, allocations: 458.9 kB / 445.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0153/0.5087, allocations: 4.779 MB / 449.9 MB, free: 7.551 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04576/0.5545, allocations: 13.2 MB / 463.1 MB, free: 10.31 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006256/0.5608, allocations: 1.081 MB / 464.1 MB, free: 9.23 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3266/0.8875, allocations: 26.48 MB / 490.6 MB, free: 11.09 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01322/0.9008, allocations: 8.05 MB / 498.7 MB, free: 10.39 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004165/0.905, allocations: 1.886 MB / 0.4888 GB, free: 10.39 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004554/0.9096, allocations: 2.662 MB / 0.4914 GB, free: 10.38 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.9114, allocations: 275.3 kB / 0.4917 GB, free: 10.38 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003643/0.9151, allocations: 1.066 MB / 0.4927 GB, free: 10.38 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004118/0.9192, allocations: 3.046 MB / 0.4957 GB, free: 10.38 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002613/0.9219, allocations: 1.542 MB / 0.4972 GB, free: 10.34 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01236/0.9343, allocations: 10.42 MB / 0.5074 GB, free: 4.785 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.9343, allocations: 0 / 0.5074 GB, free: 4.785 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.9344, allocations: 0 / 0.5074 GB, free: 4.785 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003643/0.9347, allocations: 0 / 0.5074 GB, free: 4.785 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: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.02176/0.9565, allocations: 7.994 MB / 0.5152 GB, free: 13.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.9566, allocations: 12.03 kB / 0.5152 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07881/1.035, allocations: 11.31 MB / 0.5262 GB, free: 3.121 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01588/1.051, allocations: 5.913 MB / 0.532 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000577/1.052, allocations: 443.2 kB / 0.5324 GB, free: 14.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002433/1.054, allocations: 0.5761 MB / 0.533 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04385/1.098, allocations: 17.86 MB / 0.5505 GB, free: 372 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003966/1.099, allocations: 80.14 kB / 0.5505 GB, free: 328 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/1.101, allocations: 279.6 kB / 0.5508 GB, free: 244 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006612/1.107, allocations: 3.201 MB / 0.5539 GB, free: 13.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03977/1.147, allocations: 14.67 MB / 0.5682 GB, free: 3.453 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/1.263, allocations: 68.44 MB / 0.6351 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02603/1.289, allocations: 7.273 MB / 0.6422 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004174/1.289, allocations: 58.17 kB / 0.6422 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/1.289, allocations: 76.91 kB / 0.6423 GB, free: 4.816 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=307): time 8.738e-06/1.289, allocations: 0 / 0.6423 GB, free: 4.816 MB / 0.4948 GB Notification: Performance of matching and sorting (n=340): time 0.6001/1.89, allocations: 33.2 MB / 0.6747 GB, free: 199.2 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/1.89, allocations: 300.4 kB / 0.675 GB, free: 198.9 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01488/1.905, allocations: 7.811 MB / 0.6827 GB, free: 196.2 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007186/1.905, allocations: 77.17 kB / 0.6827 GB, free: 196.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003601/1.909, allocations: 5.048 MB / 0.6877 GB, free: 192.1 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001711/1.911, allocations: 1.28 MB / 0.6889 GB, free: 191.2 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009973/1.912, allocations: 193.9 kB / 0.6891 GB, free: 191 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006584/1.912, allocations: 0.712 MB / 0.6898 GB, free: 190.5 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008349/1.921, allocations: 3.792 MB / 0.6935 GB, free: 188.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01073/1.932, allocations: 9.373 MB / 0.7026 GB, free: 178.5 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.942, allocations: 5.821 MB / 0.7083 GB, free: 172.9 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001488/1.942, allocations: 56 kB / 0.7084 GB, free: 172.8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.0299/1.972, allocations: 13.9 MB / 0.722 GB, free: 158.9 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/1.972, allocations: 91.44 kB / 0.722 GB, free: 158.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.973, allocations: 196 kB / 0.7222 GB, free: 158.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004881/1.978, allocations: 1.576 MB / 0.7238 GB, free: 157 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009455/1.987, allocations: 2.276 MB / 0.726 GB, free: 154.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/2.005, allocations: 12.67 MB / 0.7384 GB, free: 141.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009418/2.014, allocations: 0.5365 MB / 0.7389 GB, free: 141.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001636/2.016, allocations: 0.5585 MB / 0.7394 GB, free: 140.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 893 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 (1166): * Single equations (assignments): 1160 * 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%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007695/2.024, allocations: 3.589 MB / 0.7429 GB, free: 137 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/2.025, allocations: 0.644 MB / 0.7436 GB, free: 136.4 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01556/2.041, allocations: 6.995 MB / 0.7504 GB, free: 129.3 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.478e-05/2.041, allocations: 36 kB / 0.7504 GB, free: 129.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.601e-05/2.041, allocations: 15.95 kB / 0.7504 GB, free: 129.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-05/2.041, allocations: 16.69 kB / 0.7505 GB, free: 129.3 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03623/2.077, allocations: 16.06 MB / 0.7661 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.693e-05/2.077, allocations: 0 / 0.7661 GB, free: 113.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004084/2.081, allocations: 0.6279 MB / 0.7668 GB, free: 112.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004284/2.086, allocations: 1.249 MB / 0.768 GB, free: 111.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007583/2.086, allocations: 63.92 kB / 0.768 GB, free: 111.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/2.103, allocations: 11.64 MB / 0.7794 GB, free: 99.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.604e-06/2.103, allocations: 8 kB / 0.7794 GB, free: 99.26 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02157/2.125, allocations: 11.55 MB / 0.7907 GB, free: 87.63 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003794/2.128, allocations: 1.265 MB / 0.7919 GB, free: 86.34 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001732/2.13, allocations: 52 kB / 0.792 GB, free: 86.29 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004503/2.135, allocations: 222.1 kB / 0.7922 GB, free: 86.07 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000945/2.136, allocations: 194.3 kB / 0.7924 GB, free: 85.88 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003987/2.136, allocations: 84.08 kB / 0.7925 GB, free: 85.79 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0104/2.147, allocations: 5.028 MB / 0.7974 GB, free: 80.8 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.016e-06/2.147, allocations: 0 / 0.7974 GB, free: 80.8 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01093/2.157, allocations: 1.833 MB / 0.7992 GB, free: 78.97 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001114/2.159, allocations: 220.7 kB / 0.7994 GB, free: 78.75 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01782/2.176, allocations: 9.484 MB / 0.8086 GB, free: 69.27 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.438e-06/2.177, allocations: 0 / 0.8086 GB, free: 69.27 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.007155/2.184, allocations: 3.66 MB / 0.8122 GB, free: 65.58 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005397/2.189, allocations: 0.8165 MB / 0.813 GB, free: 64.76 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03903/2.228, allocations: 21.11 MB / 0.8336 GB, free: 43.6 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/2.239, allocations: 5.614 MB / 0.8391 GB, free: 37.96 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002906/2.242, allocations: 0.5072 MB / 0.8396 GB, free: 37.45 MB / 0.4949 GB Notification: Performance of SimCode: time 2.251e-06/2.242, allocations: 0 / 0.8396 GB, free: 37.45 MB / 0.4949 GB Notification: Performance of Templates: time 0.5069/2.749, allocations: 196.4 MB / 1.031 GB, free: 42.05 MB / 0.4949 GB