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.WorldForceAndTorque.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.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.155/2.155, allocations: 234.9 MB / 250.5 MB, free: 9.449 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004362, allocations: 16 kB / 314.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2741, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.4258, allocations: 101.6 MB / 470.8 MB, free: 4.969 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.4261, allocations: 75.97 kB / 470.9 MB, free: 4.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.422/1.849, allocations: 178.6 MB / 0.6343 GB, free: 45.68 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.926e-06/1.849, allocations: 0.8438 kB / 0.6343 GB, free: 45.68 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0005167/1.849, allocations: 176.4 kB / 0.6345 GB, free: 45.68 MB / 458.8 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.03147/1.881, allocations: 9.456 MB / 0.6437 GB, free: 44.39 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/1.881, allocations: 10.22 kB / 0.6438 GB, free: 44.39 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05341/1.934, allocations: 9.862 MB / 0.6534 GB, free: 43.77 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02798/1.962, allocations: 9.88 MB / 0.663 GB, free: 42.75 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008594/1.963, allocations: 0.693 MB / 0.6637 GB, free: 42.73 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003902/1.967, allocations: 0.92 MB / 0.6646 GB, free: 42.72 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05594/2.023, allocations: 22.33 MB / 0.6864 GB, free: 38.21 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006196/2.024, allocations: 107.9 kB / 0.6865 GB, free: 38.2 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003846/2.027, allocations: 442.3 kB / 0.6869 GB, free: 38.2 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00365/2.031, allocations: 2.091 MB / 0.689 GB, free: 38.17 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04767/2.079, allocations: 18.67 MB / 0.7072 GB, free: 38.08 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1348/2.214, allocations: 91.61 MB / 0.7967 GB, free: 12.58 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03214/2.246, allocations: 9.452 MB / 0.8059 GB, free: 4.891 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004527/2.246, allocations: 87.08 kB / 0.806 GB, free: 4.84 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.614e-05/2.246, allocations: 81.34 kB / 0.8061 GB, free: 4.758 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=412): time 9.696e-06/2.247, allocations: 0 / 0.8061 GB, free: 4.758 MB / 0.4949 GB Notification: Performance of matching and sorting (n=475): time 0.4668/2.713, allocations: 45.88 MB / 0.8509 GB, free: 97.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/2.713, allocations: 282.1 kB / 0.8512 GB, free: 97.28 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01643/2.73, allocations: 7.384 MB / 0.8584 GB, free: 96.71 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001037/2.731, allocations: 100.2 kB / 0.8585 GB, free: 96.68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004377/2.735, allocations: 5.776 MB / 0.8641 GB, free: 93.58 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002478/2.738, allocations: 1.746 MB / 0.8658 GB, free: 92.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001889/2.74, allocations: 225.7 kB / 0.866 GB, free: 92.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001359/2.741, allocations: 0.7796 MB / 0.8668 GB, free: 92.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01116/2.752, allocations: 5.04 MB / 0.8717 GB, free: 92.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0144/2.767, allocations: 11.09 MB / 0.8825 GB, free: 84.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01432/2.781, allocations: 7.326 MB / 0.8897 GB, free: 84.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001785/2.781, allocations: 61.53 kB / 0.8898 GB, free: 84.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1458) (initialization): time 0.04227/2.824, allocations: 17.97 MB / 0.9073 GB, free: 82.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001635/2.824, allocations: 93.03 kB / 0.9074 GB, free: 82.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002617/2.824, allocations: 213.7 kB / 0.9076 GB, free: 82.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007866/2.832, allocations: 2.475 MB / 0.91 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01293/2.845, allocations: 2.676 MB / 0.9126 GB, free: 81.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/2.872, allocations: 17.4 MB / 0.9296 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01199/2.884, allocations: 0.6756 MB / 0.9303 GB, free: 71.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002399/2.887, allocations: 0.6385 MB / 0.9309 GB, free: 71.84 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.01075/2.898, allocations: 4.196 MB / 0.935 GB, free: 69.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002025/2.9, allocations: 0.7482 MB / 0.9357 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02753/2.927, allocations: 10.8 MB / 0.9463 GB, free: 65.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.706e-05/2.927, allocations: 46.16 kB / 0.9463 GB, free: 65.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.933e-05/2.927, allocations: 19 kB / 0.9463 GB, free: 65.54 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001051/2.927, allocations: 28.83 kB / 0.9464 GB, free: 65.54 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05809/2.986, allocations: 22.97 MB / 0.9688 GB, free: 48.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.676e-05/2.986, allocations: 5.125 kB / 0.9688 GB, free: 48.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005826/2.992, allocations: 0.8759 MB / 0.9696 GB, free: 47.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007832/2.999, allocations: 2.137 MB / 0.9717 GB, free: 46.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001124/3.001, allocations: 90.94 kB / 0.9718 GB, free: 46.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02575/3.026, allocations: 16.19 MB / 0.9876 GB, free: 31.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.714e-06/3.026, allocations: 4 kB / 0.9876 GB, free: 31.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03483/3.061, allocations: 17.8 MB / 1.005 GB, free: 16.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005325/3.067, allocations: 1.601 MB / 1.007 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002687/3.069, allocations: 82.86 kB / 1.007 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006364/3.076, allocations: 356.2 kB / 1.007 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001491/3.077, allocations: 291.3 kB / 1.007 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007992/3.078, allocations: 119.4 kB / 1.007 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01351/3.092, allocations: 5.273 MB / 1.013 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.19e-06/3.092, allocations: 0 / 1.013 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01458/3.106, allocations: 2.271 MB / 1.015 GB, free: 7.645 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.00153/3.108, allocations: 256.3 kB / 1.015 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3275/3.435, allocations: 12.59 MB / 1.027 GB, free: 96.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.42e-06/3.435, allocations: 1.125 kB / 1.027 GB, free: 96.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01252/3.448, allocations: 5.35 MB / 1.033 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006684/3.455, allocations: 0.9419 MB / 1.033 GB, free: 95.68 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05366/3.508, allocations: 26.38 MB / 1.059 GB, free: 86.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01472/3.523, allocations: 6.596 MB / 1.066 GB, free: 85.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003858/3.527, allocations: 0.6076 MB / 1.066 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of SimCode: time 1.684e-06/3.527, allocations: 0 / 1.066 GB, free: 85.74 MB / 0.5105 GB Notification: Performance of Templates: time 0.6864/4.213, allocations: 235.9 MB / 1.297 GB, free: 87.94 MB / 0.5262 GB