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.WorldForces.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.116/2.116, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.121e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2741, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.4312, allocations: 101.9 MB / 459.9 MB, free: 8.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4315, allocations: 71.97 kB / 460 MB, free: 8.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.736/1.168, allocations: 148.6 MB / 0.5943 GB, free: 4.375 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.577e-06/1.168, allocations: 3.984 kB / 0.5943 GB, free: 4.371 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004663/1.168, allocations: 152 kB / 0.5944 GB, free: 4.223 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.02585/1.194, allocations: 7.371 MB / 0.6016 GB, free: 12.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.194, allocations: 11.97 kB / 0.6017 GB, free: 12.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0515/1.246, allocations: 9.634 MB / 0.6111 GB, free: 3.102 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02874/1.274, allocations: 9.117 MB / 0.62 GB, free: 9.902 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000545/1.275, allocations: 252 kB / 0.6202 GB, free: 9.656 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003245/1.278, allocations: 463.8 kB / 0.6207 GB, free: 9.203 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.5849/1.863, allocations: 10.43 MB / 0.6308 GB, free: 64.93 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03656/1.9, allocations: 16.11 MB / 0.6466 GB, free: 60.55 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004535/1.9, allocations: 105.9 kB / 0.6467 GB, free: 60.55 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002466/1.903, allocations: 49 kB / 0.6467 GB, free: 60.55 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/1.906, allocations: 1.692 MB / 0.6484 GB, free: 60.53 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09733/2.003, allocations: 77.61 MB / 0.7242 GB, free: 30.25 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008931/2.012, allocations: 5.857 MB / 0.7299 GB, free: 27.49 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006213/2.018, allocations: 3.982 MB / 0.7338 GB, free: 25.77 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002946/2.019, allocations: 61.95 kB / 0.7338 GB, free: 25.76 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/2.019, allocations: 73.73 kB / 0.7339 GB, free: 25.7 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 8.891e-06/2.019, allocations: 0 / 0.7339 GB, free: 25.7 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.07981/2.099, allocations: 30.07 MB / 0.7633 GB, free: 12.95 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002162/2.099, allocations: 296.9 kB / 0.7636 GB, free: 12.59 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/2.112, allocations: 5.111 MB / 0.7685 GB, free: 8.23 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007052/2.112, allocations: 26.47 kB / 0.7686 GB, free: 8.199 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005675/2.118, allocations: 5.288 MB / 0.7737 GB, free: 3.496 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00214/2.12, allocations: 1.241 MB / 0.7749 GB, free: 2.379 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/2.121, allocations: 0 / 0.7749 GB, free: 2.379 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001056/2.122, allocations: 0.7387 MB / 0.7757 GB, free: 1.754 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01783/2.14, allocations: 4.022 MB / 0.7796 GB, free: 0 / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01459/2.155, allocations: 9.267 MB / 0.7886 GB, free: 4.641 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/2.167, allocations: 5.604 MB / 0.7941 GB, free: 12 kB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005505/2.167, allocations: 77.34 kB / 0.7942 GB, free: 0 / 490.8 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.03349/2.201, allocations: 12.46 MB / 0.8064 GB, free: 5.305 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/2.201, allocations: 99.56 kB / 0.8065 GB, free: 5.211 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003272/2.202, allocations: 204 kB / 0.8067 GB, free: 5.012 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004725/2.206, allocations: 1.385 MB / 0.808 GB, free: 3.926 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01039/2.217, allocations: 2.31 MB / 0.8103 GB, free: 1.93 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3217/2.538, allocations: 10.71 MB / 0.8207 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009751/2.548, allocations: 368.3 kB / 0.8211 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/2.55, allocations: 0.5862 MB / 0.8216 GB, free: 95.47 MB / 0.4949 GB 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.003072/2.554, allocations: 0.6206 MB / 0.8223 GB, free: 95.36 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/2.555, allocations: 0.5585 MB / 0.8228 GB, free: 95.36 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01506/2.57, allocations: 6.255 MB / 0.8289 GB, free: 95.17 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-05/2.57, allocations: 42.19 kB / 0.8289 GB, free: 95.17 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.441e-05/2.57, allocations: 7.438 kB / 0.829 GB, free: 95.17 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.38e-05/2.57, allocations: 18.31 kB / 0.829 GB, free: 95.17 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03414/2.605, allocations: 13.91 MB / 0.8426 GB, free: 94.43 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-05/2.605, allocations: 0 / 0.8426 GB, free: 94.43 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003959/2.609, allocations: 0.5831 MB / 0.8431 GB, free: 94.43 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004037/2.613, allocations: 1.046 MB / 0.8441 GB, free: 94.4 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007514/2.613, allocations: 13.69 kB / 0.8442 GB, free: 94.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/2.628, allocations: 9.733 MB / 0.8537 GB, free: 90.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.8e-06/2.628, allocations: 3.812 kB / 0.8537 GB, free: 90.6 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02055/2.649, allocations: 10.74 MB / 0.8642 GB, free: 89.66 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003459/2.652, allocations: 1.087 MB / 0.8652 GB, free: 89.49 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/2.654, allocations: 3.688 kB / 0.8652 GB, free: 89.49 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004576/2.659, allocations: 149.3 kB / 0.8654 GB, free: 89.49 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001043/2.66, allocations: 199.4 kB / 0.8656 GB, free: 89.48 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000528/2.66, allocations: 87.11 kB / 0.8656 GB, free: 89.48 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00839/2.669, allocations: 3.449 MB / 0.869 GB, free: 88.61 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.44e-06/2.669, allocations: 0 / 0.869 GB, free: 88.61 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01189/2.681, allocations: 1.541 MB / 0.8705 GB, free: 88.61 MB / 0.4949 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 () * 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.001017/2.682, allocations: 159.5 kB / 0.8707 GB, free: 88.52 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01684/2.699, allocations: 8.773 MB / 0.8792 GB, free: 85.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.749e-06/2.699, allocations: 0 / 0.8792 GB, free: 85.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006902/2.706, allocations: 3.375 MB / 0.8825 GB, free: 84.31 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004614/2.71, allocations: 0.6335 MB / 0.8831 GB, free: 84.05 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.037/2.747, allocations: 14.91 MB / 0.8977 GB, free: 78.62 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01325/2.761, allocations: 5.617 MB / 0.9032 GB, free: 76.83 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/2.763, allocations: 478.1 kB / 0.9037 GB, free: 76.81 MB / 0.4949 GB Notification: Performance of SimCode: time 2.26e-06/2.763, allocations: 0 / 0.9037 GB, free: 76.81 MB / 0.4949 GB Notification: Performance of Templates: time 0.5617/3.325, allocations: 189.1 MB / 1.088 GB, free: 85.88 MB / 0.5105 GB