Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.444/2.444, allocations: 234.9 MB / 251.1 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004342/0.0004344, allocations: 12 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3795, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2018/0.5814, allocations: 99.56 MB / 469.4 MB, free: 9.082 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004203/0.5819, allocations: 87.95 kB / 469.4 MB, free: 8.996 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.063/1.645, allocations: 138.1 MB / 0.5933 GB, free: 39.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.637e-06/1.645, allocations: 3.938 kB / 0.5933 GB, free: 39.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000551/1.645, allocations: 132 kB / 0.5934 GB, free: 39.57 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.02985/1.675, allocations: 7.255 MB / 0.6005 GB, free: 32.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/1.675, allocations: 12.03 kB / 0.6005 GB, free: 32.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07257/1.748, allocations: 9.487 MB / 0.6098 GB, free: 22.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03987/1.788, allocations: 8.76 MB / 0.6184 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009447/1.789, allocations: 0.5061 MB / 0.6189 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00439/1.793, allocations: 0.6793 MB / 0.6195 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06882/1.862, allocations: 16.16 MB / 0.6353 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006296/1.863, allocations: 99.11 kB / 0.6354 GB, free: 10.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003722/1.867, allocations: 327.8 kB / 0.6357 GB, free: 10.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005095/1.872, allocations: 1.463 MB / 0.6371 GB, free: 9.156 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04672/1.919, allocations: 12.86 MB / 0.6497 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4936/2.412, allocations: 70.69 MB / 0.7187 GB, free: 45.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02355/2.436, allocations: 5.902 MB / 0.7245 GB, free: 44.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003582/2.436, allocations: 44.94 kB / 0.7245 GB, free: 44.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.554e-05/2.436, allocations: 66.05 kB / 0.7246 GB, free: 44.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 6.482e-06/2.436, allocations: 3 kB / 0.7246 GB, free: 44.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.1269/2.563, allocations: 23.08 MB / 0.7471 GB, free: 38.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/2.564, allocations: 269.7 kB / 0.7474 GB, free: 38.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01658/2.58, allocations: 6.884 MB / 0.7541 GB, free: 38.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007656/2.581, allocations: 62.33 kB / 0.7542 GB, free: 38.15 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004817/2.586, allocations: 4.613 MB / 0.7587 GB, free: 35.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001695/2.588, allocations: 1.001 MB / 0.7597 GB, free: 35.15 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/2.589, allocations: 174 kB / 0.7598 GB, free: 35.15 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007499/2.589, allocations: 0.6652 MB / 0.7605 GB, free: 34.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01076/2.6, allocations: 2.859 MB / 0.7633 GB, free: 34.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01734/2.618, allocations: 8.02 MB / 0.7711 GB, free: 27.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/2.629, allocations: 4.69 MB / 0.7757 GB, free: 25.94 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002427/2.63, allocations: 55.53 kB / 0.7757 GB, free: 25.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.03029/2.66, allocations: 10.95 MB / 0.7864 GB, free: 22.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001397/2.66, allocations: 83.69 kB / 0.7865 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000319/2.66, allocations: 187.8 kB / 0.7867 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003212/2.664, allocations: 0.8062 MB / 0.7875 GB, free: 22.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01195/2.676, allocations: 1.923 MB / 0.7893 GB, free: 22.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/2.69, allocations: 8.465 MB / 0.7976 GB, free: 15.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/2.7, allocations: 448.3 kB / 0.798 GB, free: 15.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002034/2.702, allocations: 0.506 MB / 0.7985 GB, free: 14.63 MB / 474.7 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.009329/2.711, allocations: 3.206 MB / 0.8017 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/2.713, allocations: 0.5823 MB / 0.8022 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01321/2.726, allocations: 4.337 MB / 0.8065 GB, free: 7.605 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.664e-05/2.727, allocations: 28 kB / 0.8065 GB, free: 7.578 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.603e-05/2.727, allocations: 11.95 kB / 0.8065 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.506e-05/2.727, allocations: 11.95 kB / 0.8065 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04224/2.769, allocations: 11.24 MB / 0.8175 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.383e-05/2.769, allocations: 0 / 0.8175 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006197/2.775, allocations: 407.1 kB / 0.8179 GB, free: 14.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003647/2.779, allocations: 0.5041 MB / 0.8184 GB, free: 13.73 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008293/2.78, allocations: 47.94 kB / 0.8184 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02054/2.8, allocations: 7.546 MB / 0.8258 GB, free: 6.445 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/2.8, allocations: 0 / 0.8258 GB, free: 6.445 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/2.832, allocations: 7.658 MB / 0.8333 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00558/2.838, allocations: 0.9817 MB / 0.8342 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002951/2.841, allocations: 47.42 kB / 0.8343 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007192/2.848, allocations: 147 kB / 0.8344 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/2.85, allocations: 151.2 kB / 0.8345 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005488/2.85, allocations: 75.23 kB / 0.8346 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01816/2.868, allocations: 4.388 MB / 0.8389 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.02e-07/2.868, allocations: 0 / 0.8389 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01731/2.886, allocations: 1.52 MB / 0.8404 GB, free: 9.602 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 () * 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.001353/2.887, allocations: 183.8 kB / 0.8406 GB, free: 9.418 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02802/2.915, allocations: 7.245 MB / 0.8476 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/2.915, allocations: 0 / 0.8476 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009461/2.925, allocations: 2.445 MB / 0.85 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009618/2.934, allocations: 0.7537 MB / 0.8508 GB, free: 192 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5899/3.524, allocations: 17.93 MB / 0.8683 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0208/3.545, allocations: 5.028 MB / 0.8732 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003853/3.549, allocations: 453.2 kB / 0.8736 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.844e-06/3.549, allocations: 0 / 0.8736 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.349/3.898, allocations: 171.3 MB / 1.041 GB, free: 12.56 MB / 0.5105 GB