Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.582e-05/1.588e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2618, allocations: 48.69 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.4098, allocations: 95.05 MB / 415.1 MB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4101, allocations: 75.97 kB / 415.1 MB, free: 1.297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7218/1.132, allocations: 148.4 MB / 0.5503 GB, free: 9.266 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/1.132, allocations: 0 / 0.5503 GB, free: 9.266 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004187/1.132, allocations: 152 kB / 0.5505 GB, free: 9.117 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.02262/1.155, allocations: 7.382 MB / 0.5577 GB, free: 1.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/1.155, allocations: 8.031 kB / 0.5577 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05114/1.206, allocations: 9.631 MB / 0.5671 GB, free: 7.992 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02919/1.235, allocations: 9.11 MB / 0.576 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005424/1.236, allocations: 252 kB / 0.5762 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003348/1.239, allocations: 459.8 kB / 0.5767 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02632/1.266, allocations: 10.42 MB / 0.5868 GB, free: 3.676 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2945/1.56, allocations: 16.1 MB / 0.6026 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005466/1.561, allocations: 102.9 kB / 0.6027 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002832/1.564, allocations: 51.31 kB / 0.6027 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00297/1.567, allocations: 1.695 MB / 0.6044 GB, free: 53.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09695/1.664, allocations: 77.57 MB / 0.6801 GB, free: 22.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008944/1.673, allocations: 5.862 MB / 0.6859 GB, free: 19.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006052/1.679, allocations: 3.969 MB / 0.6897 GB, free: 18.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000257/1.679, allocations: 67.44 kB / 0.6898 GB, free: 18.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.723e-05/1.679, allocations: 70.03 kB / 0.6899 GB, free: 18.14 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 8.138e-06/1.679, allocations: 0 / 0.6899 GB, free: 18.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.07942/1.759, allocations: 30.08 MB / 0.7192 GB, free: 5.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/1.759, allocations: 300.2 kB / 0.7195 GB, free: 5.133 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/1.771, allocations: 5.112 MB / 0.7245 GB, free: 0.918 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006795/1.772, allocations: 32.3 kB / 0.7245 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005418/1.777, allocations: 5.28 MB / 0.7297 GB, free: 12.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00207/1.78, allocations: 1.25 MB / 0.7309 GB, free: 10.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/1.781, allocations: 0 / 0.7309 GB, free: 10.93 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009677/1.782, allocations: 0.7253 MB / 0.7316 GB, free: 10.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008152/1.79, allocations: 3.479 MB / 0.735 GB, free: 7.207 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01397/1.804, allocations: 9.265 MB / 0.7441 GB, free: 11.78 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01177/1.816, allocations: 5.6 MB / 0.7495 GB, free: 6.992 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001952/1.816, allocations: 60 kB / 0.7496 GB, free: 6.934 MB / 458.7 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.3059/2.122, allocations: 12.47 MB / 0.7618 GB, free: 92.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002006/2.122, allocations: 95.75 kB / 0.7619 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002827/2.122, allocations: 207.4 kB / 0.7621 GB, free: 92.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004571/2.127, allocations: 1.39 MB / 0.7634 GB, free: 92.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009844/2.137, allocations: 2.314 MB / 0.7657 GB, free: 92.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/2.153, allocations: 10.67 MB / 0.7761 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009906/2.163, allocations: 360.9 kB / 0.7764 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002212/2.165, allocations: 0.5879 MB / 0.777 GB, free: 88.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 941 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1208 * 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,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003274/2.169, allocations: 0.618 MB / 0.7776 GB, free: 88.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001581/2.17, allocations: 0.5645 MB / 0.7782 GB, free: 88.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/2.185, allocations: 6.259 MB / 0.7843 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.691e-05/2.186, allocations: 44.3 kB / 0.7843 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.603e-05/2.186, allocations: 7.438 kB / 0.7843 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.427e-05/2.186, allocations: 16.25 kB / 0.7844 GB, free: 88.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03586/2.222, allocations: 13.91 MB / 0.7979 GB, free: 87.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/2.222, allocations: 3.531 kB / 0.7979 GB, free: 87.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004056/2.226, allocations: 0.5832 MB / 0.7985 GB, free: 87.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003802/2.23, allocations: 1.041 MB / 0.7995 GB, free: 87.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007627/2.23, allocations: 13.92 kB / 0.7995 GB, free: 87.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/2.245, allocations: 9.728 MB / 0.809 GB, free: 83.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.909e-06/2.245, allocations: 0 / 0.809 GB, free: 83.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02108/2.266, allocations: 10.75 MB / 0.8195 GB, free: 80.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003581/2.27, allocations: 1.086 MB / 0.8206 GB, free: 79.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001681/2.272, allocations: 3.031 kB / 0.8206 GB, free: 79.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/2.276, allocations: 154.9 kB / 0.8207 GB, free: 79.82 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009948/2.277, allocations: 191.7 kB / 0.8209 GB, free: 79.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004466/2.278, allocations: 92.89 kB / 0.821 GB, free: 79.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00839/2.286, allocations: 3.445 MB / 0.8244 GB, free: 78.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.551e-06/2.286, allocations: 0 / 0.8244 GB, free: 78.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01176/2.298, allocations: 1.547 MB / 0.8259 GB, free: 78.5 MB / 458.7 MB 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 () * 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.001025/2.299, allocations: 153.3 kB / 0.826 GB, free: 78.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01655/2.315, allocations: 8.774 MB / 0.8346 GB, free: 75.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/2.316, allocations: 0 / 0.8346 GB, free: 75.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006766/2.322, allocations: 3.374 MB / 0.8379 GB, free: 74.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004698/2.327, allocations: 0.6248 MB / 0.8385 GB, free: 73.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03524/2.362, allocations: 14.91 MB / 0.8531 GB, free: 61.87 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01291/2.375, allocations: 5.609 MB / 0.8585 GB, free: 57.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002659/2.378, allocations: 479.7 kB / 0.859 GB, free: 57.34 MB / 458.7 MB Notification: Performance of SimCode: time 3.186e-06/2.378, allocations: 0 / 0.859 GB, free: 57.34 MB / 458.7 MB Notification: Performance of Templates: time 0.5337/2.912, allocations: 189 MB / 1.044 GB, free: 24.45 MB / 458.7 MB