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.WorldForceAndTorque.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.WorldForceAndTorque,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForceAndTorque") Notification: Performance of loadModel(ModelicaTest): time 2.377/2.377, allocations: 234.9 MB / 251.1 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005933/0.0005935, allocations: 15.98 kB / 314.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3672, allocations: 54.87 MB / 369.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1868/0.554, allocations: 101.6 MB / 471.4 MB, free: 5.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.5544, allocations: 87.95 kB / 471.4 MB, free: 5.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.497/2.052, allocations: 179.8 MB / 0.636 GB, free: 46.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.156e-06/2.052, allocations: 0 / 0.636 GB, free: 46.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000986/2.053, allocations: 178.1 kB / 0.6362 GB, free: 46.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3268 * Number of variables: 3268 Notification: Performance of Generate backend data structure: time 0.05413/2.107, allocations: 9.45 MB / 0.6454 GB, free: 45.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/2.107, allocations: 11.41 kB / 0.6454 GB, free: 45.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09792/2.205, allocations: 9.872 MB / 0.655 GB, free: 44.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03591/2.241, allocations: 9.875 MB / 0.6647 GB, free: 43.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001035/2.242, allocations: 0.6968 MB / 0.6654 GB, free: 43.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005367/2.247, allocations: 0.9257 MB / 0.6663 GB, free: 43.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06987/2.317, allocations: 22.41 MB / 0.6882 GB, free: 38.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007573/2.318, allocations: 105.3 kB / 0.6883 GB, free: 38.83 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004753/2.323, allocations: 438.3 kB / 0.6887 GB, free: 38.83 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004652/2.328, allocations: 2.092 MB / 0.6907 GB, free: 38.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07162/2.399, allocations: 18.68 MB / 0.7089 GB, free: 38.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2211/2.621, allocations: 91.58 MB / 0.7984 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06076/2.681, allocations: 9.44 MB / 0.8076 GB, free: 4.887 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007748/2.682, allocations: 87.27 kB / 0.8077 GB, free: 4.832 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001338/2.682, allocations: 85.44 kB / 0.8078 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=412): time 1.29e-05/2.682, allocations: 3.656 kB / 0.8078 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of matching and sorting (n=475): time 0.6338/3.316, allocations: 47.08 MB / 0.8537 GB, free: 97.86 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/3.316, allocations: 282.4 kB / 0.854 GB, free: 97.57 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02206/3.338, allocations: 8.271 MB / 0.8621 GB, free: 96.96 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001494/3.34, allocations: 102.7 kB / 0.8622 GB, free: 96.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005916/3.346, allocations: 5.78 MB / 0.8678 GB, free: 93.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003359/3.349, allocations: 1.738 MB / 0.8695 GB, free: 92.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002228/3.352, allocations: 228.9 kB / 0.8697 GB, free: 92.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001082/3.353, allocations: 0.7822 MB / 0.8705 GB, free: 92.54 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01454/3.367, allocations: 5.041 MB / 0.8754 GB, free: 92.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01935/3.387, allocations: 11.14 MB / 0.8863 GB, free: 84.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01874/3.405, allocations: 7.327 MB / 0.8935 GB, free: 84.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003093/3.406, allocations: 59.25 kB / 0.8935 GB, free: 84.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1458) (initialization): time 0.05352/3.459, allocations: 17.91 MB / 0.911 GB, free: 81.74 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001931/3.46, allocations: 97.5 kB / 0.9111 GB, free: 81.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004091/3.46, allocations: 214.1 kB / 0.9113 GB, free: 81.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01066/3.471, allocations: 2.419 MB / 0.9137 GB, free: 81.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01843/3.489, allocations: 2.681 MB / 0.9163 GB, free: 81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03485/3.524, allocations: 17.39 MB / 0.9333 GB, free: 71.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01528/3.539, allocations: 0.6618 MB / 0.9339 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003345/3.543, allocations: 0.6408 MB / 0.9345 GB, free: 71.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * Number of states: 0 () * Number of discrete variables: 72 (forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.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],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],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 (1362): * Single equations (assignments): 1356 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01417/3.557, allocations: 4.194 MB / 0.9386 GB, free: 69.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002261/3.559, allocations: 0.7458 MB / 0.9394 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03576/3.595, allocations: 10.74 MB / 0.9499 GB, free: 65.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.605e-05/3.595, allocations: 51.56 kB / 0.9499 GB, free: 65.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.929e-05/3.595, allocations: 11.91 kB / 0.9499 GB, free: 65.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000134/3.596, allocations: 22.08 kB / 0.9499 GB, free: 65.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0859/3.681, allocations: 22.88 MB / 0.9723 GB, free: 46.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-05/3.682, allocations: 11.25 kB / 0.9723 GB, free: 46.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01475/3.696, allocations: 0.8717 MB / 0.9731 GB, free: 46.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009895/3.706, allocations: 2.083 MB / 0.9752 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001346/3.708, allocations: 94.48 kB / 0.9753 GB, free: 44.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03173/3.739, allocations: 16.17 MB / 0.9911 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/3.739, allocations: 7.938 kB / 0.9911 GB, free: 30.19 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04418/3.784, allocations: 16.99 MB / 1.008 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006418/3.79, allocations: 1.601 MB / 1.009 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003216/3.793, allocations: 86.19 kB / 1.009 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00878/3.802, allocations: 346 kB / 1.01 GB, free: 13.77 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001816/3.804, allocations: 291.7 kB / 1.01 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006189/3.805, allocations: 119.6 kB / 1.01 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01391/3.819, allocations: 5.272 MB / 1.015 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.142e-06/3.819, allocations: 2.625 kB / 1.015 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01448/3.833, allocations: 2.266 MB / 1.017 GB, free: 6.891 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (406): * Single equations (assignments): 400 * 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,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001563/3.835, allocations: 256 kB / 1.018 GB, free: 6.652 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.4079/4.243, allocations: 13.04 MB / 1.03 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/4.243, allocations: 2.469 kB / 1.03 GB, free: 94.99 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01556/4.258, allocations: 5.351 MB / 1.036 GB, free: 94.58 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008485/4.267, allocations: 0.935 MB / 1.037 GB, free: 94.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08742/4.354, allocations: 26.46 MB / 1.062 GB, free: 85.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02322/4.378, allocations: 6.583 MB / 1.069 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006002/4.384, allocations: 0.6109 MB / 1.069 GB, free: 84.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/4.384, allocations: 0 / 1.069 GB, free: 84.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.8135/5.197, allocations: 235.9 MB / 1.3 GB, free: 87.06 MB / 0.5261 GB