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.WorldForces.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.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.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 234.9 MB / 251.1 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004562/0.0004564, allocations: 16 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3761, allocations: 54.85 MB / 369.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.189/0.5652, allocations: 102.6 MB / 472.4 MB, free: 6.039 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003657/0.5656, allocations: 83.95 kB / 472.5 MB, free: 5.957 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9203/1.486, allocations: 153 MB / 0.6108 GB, free: 22.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.476e-06/1.486, allocations: 0 / 0.6108 GB, free: 22.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005845/1.487, allocations: 155.9 kB / 0.6109 GB, free: 21.92 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.03461/1.521, allocations: 8.021 MB / 0.6188 GB, free: 13.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/1.521, allocations: 8.031 kB / 0.6188 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06982/1.591, allocations: 9.627 MB / 0.6282 GB, free: 4.152 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03373/1.625, allocations: 9.167 MB / 0.6371 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009299/1.626, allocations: 0.5775 MB / 0.6377 GB, free: 10.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004537/1.63, allocations: 0.7652 MB / 0.6384 GB, free: 9.562 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06081/1.691, allocations: 18.23 MB / 0.6562 GB, free: 5.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006402/1.692, allocations: 107 kB / 0.6563 GB, free: 5.574 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004018/1.696, allocations: 371.8 kB / 0.6567 GB, free: 5.211 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004287/1.7, allocations: 1.695 MB / 0.6583 GB, free: 3.508 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05003/1.75, allocations: 14.61 MB / 0.6726 GB, free: 4.855 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8121/2.563, allocations: 80.81 MB / 0.7515 GB, free: 29.66 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02897/2.592, allocations: 7.214 MB / 0.7586 GB, free: 28.92 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000492/2.592, allocations: 58.5 kB / 0.7586 GB, free: 28.92 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.932e-05/2.592, allocations: 72.17 kB / 0.7587 GB, free: 28.88 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 7.263e-06/2.592, allocations: 5.094 kB / 0.7587 GB, free: 28.88 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.1386/2.731, allocations: 32.55 MB / 0.7905 GB, free: 17.38 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/2.731, allocations: 300.2 kB / 0.7908 GB, free: 17.05 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01914/2.75, allocations: 7.376 MB / 0.798 GB, free: 14.61 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009955/2.751, allocations: 79.23 kB / 0.7981 GB, free: 14.54 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005349/2.757, allocations: 5.086 MB / 0.803 GB, free: 10.68 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002449/2.759, allocations: 1.275 MB / 0.8043 GB, free: 9.746 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001588/2.761, allocations: 191.6 kB / 0.8045 GB, free: 9.598 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008748/2.762, allocations: 0.7173 MB / 0.8052 GB, free: 9.109 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009978/2.772, allocations: 3.684 MB / 0.8087 GB, free: 7.875 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01454/2.786, allocations: 9.324 MB / 0.8179 GB, free: 13.27 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01556/2.802, allocations: 5.726 MB / 0.8234 GB, free: 8.469 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003558/2.802, allocations: 56 kB / 0.8235 GB, free: 8.414 MB / 490.8 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.0444/2.847, allocations: 13.7 MB / 0.8369 GB, free: 13.13 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/2.847, allocations: 91.95 kB / 0.837 GB, free: 13.04 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003987/2.848, allocations: 200.2 kB / 0.8372 GB, free: 12.84 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006346/2.854, allocations: 1.364 MB / 0.8385 GB, free: 11.78 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01569/2.87, allocations: 2.239 MB / 0.8407 GB, free: 9.852 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02498/2.895, allocations: 11.49 MB / 0.8519 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01189/2.907, allocations: 0.5438 MB / 0.8524 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002541/2.909, allocations: 0.5624 MB / 0.853 GB, free: 14.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * 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 (1172): * Single equations (assignments): 1166 * 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.01211/2.921, allocations: 3.588 MB / 0.8565 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002264/2.924, allocations: 0.6402 MB / 0.8571 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02408/2.948, allocations: 6.653 MB / 0.8636 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-05/2.948, allocations: 36 kB / 0.8636 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.53e-05/2.948, allocations: 11.28 kB / 0.8637 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.872e-05/2.948, allocations: 21.25 kB / 0.8637 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4867/3.435, allocations: 15.47 MB / 0.8788 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.919e-05/3.435, allocations: 3.609 kB / 0.8788 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00809/3.443, allocations: 0.5854 MB / 0.8794 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00705/3.45, allocations: 1.028 MB / 0.8804 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008498/3.451, allocations: 66.92 kB / 0.8804 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02689/3.478, allocations: 10.5 MB / 0.8907 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/3.478, allocations: 5.625 kB / 0.8907 GB, free: 116.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03638/3.514, allocations: 11.03 MB / 0.9015 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005069/3.519, allocations: 1.21 MB / 0.9026 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003083/3.522, allocations: 54.81 kB / 0.9027 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006533/3.529, allocations: 199.7 kB / 0.9029 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001322/3.53, allocations: 201.1 kB / 0.9031 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007354/3.531, allocations: 84.95 kB / 0.9032 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01351/3.545, allocations: 4.69 MB / 0.9077 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.202e-06/3.545, allocations: 0 / 0.9077 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01299/3.558, allocations: 1.803 MB / 0.9095 GB, free: 115.9 MB / 0.5105 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.00141/3.559, allocations: 206.1 kB / 0.9097 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02214/3.581, allocations: 9.253 MB / 0.9187 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/3.581, allocations: 0 / 0.9187 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01059/3.592, allocations: 3.535 MB / 0.9222 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007943/3.6, allocations: 0.8226 MB / 0.923 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0522/3.652, allocations: 20.99 MB / 0.9435 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.666, allocations: 5.613 MB / 0.949 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003723/3.67, allocations: 0.495 MB / 0.9495 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.823e-06/3.67, allocations: 0 / 0.9495 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.7562/4.426, allocations: 195.3 MB / 1.14 GB, free: 89.5 MB / 0.5105 GB