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.131/2.131, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004628/0.0004629, allocations: 16 kB / 314.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2785, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.4278, allocations: 99.57 MB / 468.8 MB, free: 6.992 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.4281, allocations: 75.95 kB / 468.9 MB, free: 6.918 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7037/1.132, allocations: 137 MB / 0.5917 GB, free: 10.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.401e-06/1.132, allocations: 8 kB / 0.5917 GB, free: 10.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004513/1.132, allocations: 132 kB / 0.5918 GB, free: 10.55 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.02454/1.157, allocations: 7.251 MB / 0.5989 GB, free: 3.215 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/1.157, allocations: 8.031 kB / 0.5989 GB, free: 3.207 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05159/1.209, allocations: 9.487 MB / 0.6082 GB, free: 9.695 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02717/1.236, allocations: 8.775 MB / 0.6167 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007535/1.237, allocations: 0.5055 MB / 0.6172 GB, free: 336 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003031/1.24, allocations: 0.6716 MB / 0.6179 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04475/1.284, allocations: 16.1 MB / 0.6336 GB, free: 14.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005064/1.285, allocations: 99.11 kB / 0.6337 GB, free: 13.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002717/1.288, allocations: 331.8 kB / 0.634 GB, free: 13.66 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003055/1.291, allocations: 1.456 MB / 0.6354 GB, free: 12.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5944/1.885, allocations: 12.85 MB / 0.648 GB, free: 76.98 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08474/1.97, allocations: 70.7 MB / 0.717 GB, free: 36.22 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01863/1.989, allocations: 5.916 MB / 0.7228 GB, free: 35.52 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002282/1.989, allocations: 43.27 kB / 0.7228 GB, free: 35.52 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/1.989, allocations: 59.91 kB / 0.7229 GB, free: 35.48 MB / 474.8 MB Notification: Performance of pre-optimization done (n=242): time 7.888e-06/1.989, allocations: 0 / 0.7229 GB, free: 35.48 MB / 474.8 MB Notification: Performance of matching and sorting (n=260): time 0.07365/2.063, allocations: 22.48 MB / 0.7449 GB, free: 27.2 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.601e-05/2.063, allocations: 271.8 kB / 0.7451 GB, free: 26.91 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01274/2.076, allocations: 6.142 MB / 0.7511 GB, free: 24.88 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005412/2.076, allocations: 67.8 kB / 0.7512 GB, free: 24.82 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003487/2.08, allocations: 4.61 MB / 0.7557 GB, free: 21.27 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001239/2.081, allocations: 0.9991 MB / 0.7567 GB, free: 20.55 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007559/2.082, allocations: 165.8 kB / 0.7568 GB, free: 20.42 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005034/2.082, allocations: 0.668 MB / 0.7575 GB, free: 19.95 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006138/2.088, allocations: 2.864 MB / 0.7603 GB, free: 19.01 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008983/2.097, allocations: 7.991 MB / 0.7681 GB, free: 11.17 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009153/2.107, allocations: 4.677 MB / 0.7726 GB, free: 9.613 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/2.107, allocations: 54.22 kB / 0.7727 GB, free: 9.613 MB / 474.8 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02508/2.132, allocations: 10.94 MB / 0.7834 GB, free: 5.301 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001581/2.132, allocations: 88.06 kB / 0.7835 GB, free: 5.215 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000218/2.132, allocations: 180 kB / 0.7836 GB, free: 5.039 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/2.135, allocations: 0.8003 MB / 0.7844 GB, free: 4.367 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008069/2.143, allocations: 1.927 MB / 0.7863 GB, free: 2.684 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/2.156, allocations: 8.464 MB / 0.7946 GB, free: 10.66 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008978/2.165, allocations: 465.4 kB / 0.795 GB, free: 10.24 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/2.167, allocations: 0.5005 MB / 0.7955 GB, free: 9.754 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * 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 (1033): * Single equations (assignments): 1027 * 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.00839/2.175, allocations: 3.202 MB / 0.7986 GB, free: 6.938 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/2.177, allocations: 0.5823 MB / 0.7992 GB, free: 6.348 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/2.188, allocations: 4.346 MB / 0.8034 GB, free: 2.727 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.634e-05/2.188, allocations: 28 kB / 0.8035 GB, free: 2.699 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/2.188, allocations: 4 kB / 0.8035 GB, free: 2.695 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.291e-05/2.189, allocations: 17.78 kB / 0.8035 GB, free: 2.691 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03549/2.224, allocations: 11.46 MB / 0.8147 GB, free: 10.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/2.224, allocations: 3.375 kB / 0.8147 GB, free: 10.12 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/2.227, allocations: 413.4 kB / 0.8151 GB, free: 9.789 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002147/2.229, allocations: 0.4998 MB / 0.8156 GB, free: 9.41 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004864/2.23, allocations: 43.84 kB / 0.8156 GB, free: 9.371 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/2.242, allocations: 7.541 MB / 0.823 GB, free: 2.129 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.134e-06/2.242, allocations: 4.031 kB / 0.823 GB, free: 2.125 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/2.259, allocations: 7.741 MB / 0.8305 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003549/2.262, allocations: 0.9987 MB / 0.8315 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/2.264, allocations: 40 kB / 0.8315 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003986/2.268, allocations: 141.9 kB / 0.8317 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007568/2.269, allocations: 147.4 kB / 0.8318 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/2.269, allocations: 71.94 kB / 0.8319 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01135/2.281, allocations: 4.391 MB / 0.8362 GB, free: 6.438 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.188e-06/2.281, allocations: 0 / 0.8362 GB, free: 6.438 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01069/2.291, allocations: 1.518 MB / 0.8377 GB, free: 4.93 MB / 0.5105 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.000866/2.292, allocations: 192.7 kB / 0.8378 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3085/2.601, allocations: 7.239 MB / 0.8449 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.812e-06/2.601, allocations: 0 / 0.8449 GB, free: 123.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004843/2.606, allocations: 2.447 MB / 0.8473 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/2.61, allocations: 0.7518 MB / 0.848 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03287/2.643, allocations: 17.84 MB / 0.8654 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009506/2.653, allocations: 5.037 MB / 0.8704 GB, free: 115.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002119/2.655, allocations: 451.6 kB / 0.8708 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.92e-06/2.655, allocations: 0 / 0.8708 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.6479/3.303, allocations: 171.3 MB / 1.038 GB, free: 121.6 MB / 0.5105 GB