Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque3,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|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004233, allocations: 12 kB / 283.1 MB, free: 9.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.5068, allocations: 97.17 MB / 429 MB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.5072, allocations: 75.97 kB / 429 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.674/2.181, allocations: 224.5 MB / 0.6382 GB, free: 30.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.146e-06/2.181, allocations: 0 / 0.6382 GB, free: 30.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001365/2.182, allocations: 235.7 kB / 0.6384 GB, free: 30.71 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.05729/2.24, allocations: 12.26 MB / 0.6504 GB, free: 26.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/2.24, allocations: 10.19 kB / 0.6504 GB, free: 26.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09431/2.334, allocations: 12.63 MB / 0.6627 GB, free: 25.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0476/2.382, allocations: 12.59 MB / 0.675 GB, free: 24.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00126/2.383, allocations: 0.9026 MB / 0.6759 GB, free: 24.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007267/2.39, allocations: 1.197 MB / 0.6771 GB, free: 24.06 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1004/2.491, allocations: 28.45 MB / 0.7049 GB, free: 18.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001163/2.492, allocations: 131.4 kB / 0.705 GB, free: 18.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007062/2.499, allocations: 0.5537 MB / 0.7055 GB, free: 18.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00651/2.506, allocations: 2.684 MB / 0.7082 GB, free: 18.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07684/2.583, allocations: 23.56 MB / 0.7312 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6807/3.263, allocations: 116.9 MB / 0.8454 GB, free: 26.26 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06046/3.324, allocations: 13.72 MB / 0.8588 GB, free: 25.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004207/3.328, allocations: 2.35 MB / 0.8611 GB, free: 23.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001663/3.328, allocations: 99.34 kB / 0.8612 GB, free: 23.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=559): time 1.058e-05/3.328, allocations: 0 / 0.8612 GB, free: 23.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=643): time 0.2975/3.626, allocations: 63.69 MB / 0.9234 GB, free: 13.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002022/3.626, allocations: 328.8 kB / 0.9237 GB, free: 13.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02733/3.654, allocations: 10.18 MB / 0.9336 GB, free: 12.51 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002129/3.656, allocations: 123 kB / 0.9337 GB, free: 12.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00753/3.663, allocations: 7.294 MB / 0.9408 GB, free: 8.328 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005146/3.669, allocations: 2.342 MB / 0.9431 GB, free: 6.582 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003425/3.672, allocations: 295.6 kB / 0.9434 GB, free: 6.355 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001613/3.674, allocations: 0.9106 MB / 0.9443 GB, free: 5.785 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02072/3.694, allocations: 6.528 MB / 0.9507 GB, free: 440 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06384/3.758, allocations: 16.17 MB / 0.9665 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02814/3.787, allocations: 9.513 MB / 0.9758 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003659/3.787, allocations: 79.95 kB / 0.9758 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.07711/3.864, allocations: 23.01 MB / 0.9983 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002614/3.864, allocations: 119.6 kB / 0.9984 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005455/3.865, allocations: 264 kB / 0.9987 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01523/3.88, allocations: 3.205 MB / 1.002 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02583/3.906, allocations: 3.49 MB / 1.005 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4398/4.346, allocations: 23.3 MB / 1.028 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01951/4.365, allocations: 0.8571 MB / 1.029 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004232/4.37, allocations: 0.8181 MB / 1.03 GB, free: 113.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1741): * Single equations (assignments): 1734 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01749/4.387, allocations: 5.326 MB / 1.035 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004106/4.391, allocations: 0.9462 MB / 1.036 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06408/4.456, allocations: 14.52 MB / 1.05 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001402/4.456, allocations: 64.22 kB / 1.05 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001258/4.456, allocations: 22.53 kB / 1.05 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000189/4.456, allocations: 32.22 kB / 1.05 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1067/4.563, allocations: 31.16 MB / 1.08 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001664/4.563, allocations: 6.688 kB / 1.08 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01302/4.576, allocations: 1.219 MB / 1.082 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/4.589, allocations: 2.768 MB / 1.084 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002025/4.592, allocations: 119.6 kB / 1.084 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04492/4.637, allocations: 21.69 MB / 1.106 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.878e-06/4.637, allocations: 11.66 kB / 1.106 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06484/4.701, allocations: 22.32 MB / 1.127 GB, free: 87.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008958/4.71, allocations: 2.044 MB / 1.129 GB, free: 86.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005213/4.716, allocations: 106.6 kB / 1.13 GB, free: 86.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01175/4.727, allocations: 480.6 kB / 1.13 GB, free: 86.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002596/4.73, allocations: 391.2 kB / 1.13 GB, free: 86.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001851/4.732, allocations: 165.2 kB / 1.131 GB, free: 86.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01815/4.75, allocations: 6.524 MB / 1.137 GB, free: 84.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.81e-07/4.75, allocations: 0 / 1.137 GB, free: 84.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01966/4.77, allocations: 2.924 MB / 1.14 GB, free: 82.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (554): * Single equations (assignments): 547 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(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.002382/4.772, allocations: 303.2 kB / 1.14 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03785/4.81, allocations: 16.27 MB / 1.156 GB, free: 68.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/4.81, allocations: 3.859 kB / 1.156 GB, free: 68.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02013/4.83, allocations: 7.153 MB / 1.163 GB, free: 62.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01111/4.842, allocations: 1.203 MB / 1.164 GB, free: 61.35 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4555/5.297, allocations: 34.32 MB / 1.198 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.026/5.323, allocations: 8.309 MB / 1.206 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006913/5.33, allocations: 0.7679 MB / 1.206 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of SimCode: time 2.535e-06/5.33, allocations: 0 / 1.206 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of Templates: time 1.101/6.431, allocations: 346.5 MB / 1.545 GB, free: 11.98 MB / 0.5261 GB