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/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.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.091/2.091, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.0004396, allocations: 23.94 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2756, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.4343, allocations: 102.6 MB / 471.9 MB, free: 3.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003728/0.4347, allocations: 79.97 kB / 472 MB, free: 3.844 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8554/1.29, allocations: 151.8 MB / 0.6092 GB, free: 8.848 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.191e-06/1.29, allocations: 0 / 0.6092 GB, free: 8.848 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000499/1.291, allocations: 156 kB / 0.6093 GB, free: 8.695 MB / 442.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.0287/1.319, allocations: 8.014 MB / 0.6171 GB, free: 0.5938 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/1.319, allocations: 12.03 kB / 0.6171 GB, free: 0.582 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05263/1.372, allocations: 9.627 MB / 0.6265 GB, free: 6.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5954/1.968, allocations: 9.16 MB / 0.6355 GB, free: 59.27 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008183/1.968, allocations: 0.5767 MB / 0.636 GB, free: 59.26 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003451/1.972, allocations: 0.7672 MB / 0.6368 GB, free: 59.26 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04491/2.017, allocations: 18.17 MB / 0.6545 GB, free: 54.86 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005094/2.017, allocations: 111.1 kB / 0.6546 GB, free: 54.86 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003061/2.021, allocations: 370.1 kB / 0.655 GB, free: 54.86 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00325/2.024, allocations: 1.69 MB / 0.6566 GB, free: 54.83 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03639/2.06, allocations: 14.62 MB / 0.6709 GB, free: 54.76 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1065/2.167, allocations: 80.81 MB / 0.7498 GB, free: 16.11 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03943/2.206, allocations: 7.223 MB / 0.7569 GB, free: 13.59 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004181/2.207, allocations: 55.58 kB / 0.757 GB, free: 13.58 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.513e-05/2.207, allocations: 77.48 kB / 0.757 GB, free: 13.52 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 1.559e-05/2.207, allocations: 0 / 0.757 GB, free: 13.52 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.1103/2.317, allocations: 31.79 MB / 0.7881 GB, free: 5.816 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002103/2.317, allocations: 299.2 kB / 0.7884 GB, free: 5.469 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01573/2.333, allocations: 6.577 MB / 0.7948 GB, free: 84 kB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007291/2.334, allocations: 77.7 kB / 0.7949 GB, free: 0 / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005518/2.339, allocations: 5.079 MB / 0.7998 GB, free: 11.53 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002055/2.342, allocations: 1.279 MB / 0.8011 GB, free: 10.4 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/2.343, allocations: 192 kB / 0.8012 GB, free: 10.21 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008063/2.343, allocations: 0.7148 MB / 0.8019 GB, free: 9.602 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00883/2.352, allocations: 3.692 MB / 0.8056 GB, free: 6.492 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/2.367, allocations: 9.275 MB / 0.8146 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/2.379, allocations: 5.736 MB / 0.8202 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000169/2.379, allocations: 56 kB / 0.8203 GB, free: 6.227 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.3396/2.719, allocations: 13.65 MB / 0.8336 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/2.719, allocations: 90.75 kB / 0.8337 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002551/2.72, allocations: 196.1 kB / 0.8339 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004517/2.724, allocations: 1.38 MB / 0.8352 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009987/2.734, allocations: 2.236 MB / 0.8374 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/2.751, allocations: 11.5 MB / 0.8486 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009986/2.761, allocations: 0.538 MB / 0.8492 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001978/2.763, allocations: 0.5611 MB / 0.8497 GB, free: 101.1 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.008986/2.772, allocations: 3.589 MB / 0.8532 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.774, allocations: 0.642 MB / 0.8538 GB, free: 101 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/2.79, allocations: 6.671 MB / 0.8604 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.19e-05/2.79, allocations: 34.81 kB / 0.8604 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.565e-05/2.79, allocations: 9.219 kB / 0.8604 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.218e-05/2.791, allocations: 20.67 kB / 0.8604 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03832/2.829, allocations: 15.47 MB / 0.8755 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-05/2.829, allocations: 2.75 kB / 0.8755 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004411/2.833, allocations: 0.5812 MB / 0.8761 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004094/2.838, allocations: 1.061 MB / 0.8771 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007646/2.838, allocations: 61.78 kB / 0.8772 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01617/2.855, allocations: 10.52 MB / 0.8875 GB, free: 95.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.825e-06/2.855, allocations: 3.281 kB / 0.8875 GB, free: 95.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02249/2.877, allocations: 11.27 MB / 0.8985 GB, free: 90.94 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003986/2.881, allocations: 1.209 MB / 0.8996 GB, free: 90.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001955/2.883, allocations: 59.75 kB / 0.8997 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004985/2.888, allocations: 199.4 kB / 0.8999 GB, free: 90.18 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009777/2.889, allocations: 194.8 kB / 0.9001 GB, free: 90.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000386/2.89, allocations: 86.69 kB / 0.9002 GB, free: 90.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01114/2.901, allocations: 4.694 MB / 0.9047 GB, free: 88.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.136e-06/2.901, allocations: 0 / 0.9047 GB, free: 88.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01188/2.913, allocations: 1.793 MB / 0.9065 GB, free: 88.4 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.001001/2.914, allocations: 210.1 kB / 0.9067 GB, free: 88.27 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01816/2.932, allocations: 9.259 MB / 0.9157 GB, free: 85.37 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.994e-06/2.932, allocations: 0 / 0.9157 GB, free: 85.37 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007509/2.939, allocations: 3.538 MB / 0.9192 GB, free: 83.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005641/2.945, allocations: 0.8176 MB / 0.92 GB, free: 83.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04028/2.985, allocations: 20.93 MB / 0.9404 GB, free: 67.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0121/2.998, allocations: 5.611 MB / 0.9459 GB, free: 63.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002649/3, allocations: 0.5011 MB / 0.9464 GB, free: 62.62 MB / 0.5105 GB Notification: Performance of SimCode: time 2.247e-06/3, allocations: 0 / 0.9464 GB, free: 62.62 MB / 0.5105 GB Notification: Performance of Templates: time 0.5805/3.581, allocations: 195.3 MB / 1.137 GB, free: 44.52 MB / 0.5105 GB