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/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.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.178/2.178, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.916e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2756, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.4281, allocations: 98.82 MB / 456.9 MB, free: 11.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.4284, allocations: 75.97 kB / 456.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6923/1.121, allocations: 134.1 MB / 0.5772 GB, free: 5.734 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.121, allocations: 4 kB / 0.5772 GB, free: 5.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004545/1.121, allocations: 136 kB / 0.5774 GB, free: 5.598 MB / 410.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.02332/1.145, allocations: 6.627 MB / 0.5838 GB, free: 14.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/1.145, allocations: 12.03 kB / 0.5838 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0509/1.196, allocations: 9.495 MB / 0.5931 GB, free: 5.363 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02752/1.223, allocations: 8.718 MB / 0.6016 GB, free: 12.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004559/1.224, allocations: 224 kB / 0.6018 GB, free: 12.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002807/1.227, allocations: 407.8 kB / 0.6022 GB, free: 11.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02283/1.249, allocations: 9.052 MB / 0.6111 GB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03636/1.286, allocations: 14.06 MB / 0.6248 GB, free: 3.367 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004644/1.286, allocations: 95.03 kB / 0.6249 GB, free: 3.273 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002318/1.289, allocations: 44 kB / 0.6249 GB, free: 3.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/1.292, allocations: 1.467 MB / 0.6264 GB, free: 1.758 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3683/1.66, allocations: 67.58 MB / 0.6924 GB, free: 36.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007089/1.667, allocations: 4.612 MB / 0.6969 GB, free: 36.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0047/1.672, allocations: 2.977 MB / 0.6998 GB, free: 36.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002128/1.672, allocations: 47.97 kB / 0.6998 GB, free: 36.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/1.672, allocations: 61.53 kB / 0.6999 GB, free: 36.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=242): time 9.076e-06/1.672, allocations: 0 / 0.6999 GB, free: 36.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=263): time 0.06397/1.736, allocations: 25.59 MB / 0.7249 GB, free: 25.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/1.736, allocations: 258 kB / 0.7251 GB, free: 25.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/1.747, allocations: 4.794 MB / 0.7298 GB, free: 23.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000522/1.747, allocations: 25.7 kB / 0.7298 GB, free: 23.72 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003445/1.751, allocations: 4.8 MB / 0.7345 GB, free: 20.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/1.752, allocations: 0.9896 MB / 0.7355 GB, free: 19.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007784/1.753, allocations: 0 / 0.7355 GB, free: 19.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006527/1.754, allocations: 0.6884 MB / 0.7361 GB, free: 19.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005648/1.759, allocations: 2.695 MB / 0.7388 GB, free: 18.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008882/1.768, allocations: 7.971 MB / 0.7466 GB, free: 9.938 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008594/1.777, allocations: 4.594 MB / 0.751 GB, free: 7.891 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/1.777, allocations: 56 kB / 0.7511 GB, free: 7.836 MB / 458.7 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.0238/1.801, allocations: 9.928 MB / 0.7608 GB, free: 15.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/1.801, allocations: 89 kB / 0.7609 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003079/1.801, allocations: 188 kB / 0.7611 GB, free: 15.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00283/1.804, allocations: 0.805 MB / 0.7618 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008601/1.813, allocations: 1.99 MB / 0.7638 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/1.826, allocations: 8.027 MB / 0.7716 GB, free: 5.094 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008808/1.835, allocations: 298.7 kB / 0.7719 GB, free: 4.844 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002024/1.837, allocations: 0.5227 MB / 0.7724 GB, free: 4.332 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1069): * Single equations (assignments): 1063 * 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.00267/1.84, allocations: 0.5704 MB / 0.773 GB, free: 3.762 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.841, allocations: 0.5052 MB / 0.7735 GB, free: 3.25 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1.853, allocations: 4.096 MB / 0.7775 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.449e-05/1.853, allocations: 28 kB / 0.7775 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-05/1.853, allocations: 4 kB / 0.7775 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.274e-05/1.853, allocations: 17.03 kB / 0.7775 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02753/1.88, allocations: 9.971 MB / 0.7873 GB, free: 7.816 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.533e-05/1.88, allocations: 7.438 kB / 0.7873 GB, free: 7.812 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.883, allocations: 422.3 kB / 0.7877 GB, free: 7.473 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/1.886, allocations: 497 kB / 0.7881 GB, free: 7.098 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005089/1.886, allocations: 15.5 kB / 0.7882 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/1.898, allocations: 7.095 MB / 0.7951 GB, free: 276 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.359e-06/1.898, allocations: 0 / 0.7951 GB, free: 276 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01616/1.914, allocations: 7.415 MB / 0.8023 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00319/1.917, allocations: 0.8806 MB / 0.8032 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/1.919, allocations: 4 kB / 0.8032 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003677/1.922, allocations: 109.5 kB / 0.8033 GB, free: 8.707 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008497/1.923, allocations: 144.2 kB / 0.8034 GB, free: 8.617 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003603/1.924, allocations: 78.67 kB / 0.8035 GB, free: 8.551 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008931/1.933, allocations: 3.244 MB / 0.8067 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.119e-06/1.933, allocations: 0 / 0.8067 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01081/1.944, allocations: 1.3 MB / 0.8079 GB, free: 4.457 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 212 * 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.0008405/1.944, allocations: 156.2 kB / 0.8081 GB, free: 4.309 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.2995/2.244, allocations: 6.811 MB / 0.8147 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.644e-06/2.244, allocations: 6.719 kB / 0.8147 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004664/2.249, allocations: 2.336 MB / 0.817 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004185/2.253, allocations: 0.5936 MB / 0.8176 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03163/2.285, allocations: 12.59 MB / 0.8299 GB, free: 114.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01137/2.296, allocations: 5.041 MB / 0.8348 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/2.298, allocations: 420.1 kB / 0.8352 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.046e-06/2.298, allocations: 0 / 0.8352 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.5236/2.822, allocations: 166.1 MB / 0.9975 GB, free: 129.9 MB / 0.5105 GB