Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque2,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_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002607/0.002612, allocations: 348 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.552/3.552, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003411/0.003411, allocations: 226.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5035/0.5035, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000725/0.0007253, allocations: 12 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1186, allocations: 48.71 MB / 0.6067 GB, free: 4.656 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.495/0.6137, allocations: 98.6 MB / 0.703 GB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.614, allocations: 87.02 kB / 0.7031 GB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964/2.578, allocations: 237.8 MB / 0.9353 GB, free: 25.64 MB / 426.8 MB Notification: Performance of FrontEnd: time 3.005e-06/2.578, allocations: 0 / 0.9353 GB, free: 25.64 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.001058/2.58, allocations: 256.6 kB / 0.9356 GB, free: 25.64 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.06082/2.64, allocations: 12.86 MB / 0.9481 GB, free: 20.67 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.877e-05/2.641, allocations: 9 kB / 0.9481 GB, free: 20.67 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08148/2.722, allocations: 9.524 MB / 0.9574 GB, free: 19.8 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04103/2.763, allocations: 11.87 MB / 0.969 GB, free: 18.39 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001433/2.765, allocations: 0.9575 MB / 0.97 GB, free: 18.36 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007677/2.772, allocations: 1.268 MB / 0.9712 GB, free: 18.35 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1002/2.873, allocations: 29.81 MB / 1 GB, free: 12.2 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001198/2.874, allocations: 145.1 kB / 1 GB, free: 12.18 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006794/2.881, allocations: 0.59 MB / 1.001 GB, free: 12.18 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007218/2.888, allocations: 2.858 MB / 1.004 GB, free: 12.15 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0814/2.969, allocations: 24.24 MB / 1.027 GB, free: 9.766 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7048/3.674, allocations: 127.4 MB / 1.152 GB, free: 13.82 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0678/3.742, allocations: 13.82 MB / 1.165 GB, free: 13.07 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0177/3.76, allocations: 8.051 MB / 1.173 GB, free: 12.99 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05526/3.815, allocations: 19.68 MB / 1.192 GB, free: 25.79 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001122/3.815, allocations: 96.38 kB / 1.193 GB, free: 25.75 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=562): time 1.015e-05/3.815, allocations: 2.344 kB / 1.193 GB, free: 25.75 MB / 0.4949 GB Notification: Performance of matching and sorting (n=646): time 0.3112/4.127, allocations: 67.98 MB / 1.259 GB, free: 1.887 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002976/4.127, allocations: 387 kB / 1.259 GB, free: 1.449 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03985/4.167, allocations: 12.19 MB / 1.271 GB, free: 8.102 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001813/4.169, allocations: 128.3 kB / 1.271 GB, free: 7.973 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01178/4.18, allocations: 8.538 MB / 1.28 GB, free: 316 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005041/4.185, allocations: 2.38 MB / 1.282 GB, free: 14.2 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003541/4.189, allocations: 316 kB / 1.282 GB, free: 13.89 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001812/4.191, allocations: 0.9578 MB / 1.283 GB, free: 13.11 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02105/4.212, allocations: 6.768 MB / 1.29 GB, free: 7.398 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4027/4.615, allocations: 15.25 MB / 1.305 GB, free: 112.9 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02657/4.641, allocations: 9.93 MB / 1.314 GB, free: 112.9 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000571/4.642, allocations: 84.41 kB / 1.315 GB, free: 112.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.112/4.754, allocations: 24.75 MB / 1.339 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000611/4.755, allocations: 132 kB / 1.339 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001036/4.756, allocations: 293.6 kB / 1.339 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02061/4.777, allocations: 3.242 MB / 1.342 GB, free: 111.9 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02774/4.804, allocations: 3.759 MB / 1.346 GB, free: 111.6 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04404/4.848, allocations: 22.63 MB / 1.368 GB, free: 106 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02074/4.869, allocations: 0.9267 MB / 1.369 GB, free: 106 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004495/4.874, allocations: 0.8879 MB / 1.37 GB, free: 106 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * Number of states: 0 () * Number of discrete variables: 117 (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],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1897): * Single equations (assignments): 1890 * 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.01948/4.893, allocations: 5.739 MB / 1.375 GB, free: 105.3 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004736/4.898, allocations: 1.076 MB / 1.376 GB, free: 105.3 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1115/5.01, allocations: 14.66 MB / 1.391 GB, free: 99.96 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001397/5.01, allocations: 70.17 kB / 1.391 GB, free: 99.96 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001501/5.01, allocations: 17.09 kB / 1.391 GB, free: 99.96 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002073/5.01, allocations: 35.39 kB / 1.391 GB, free: 99.96 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1017/5.112, allocations: 32.42 MB / 1.423 GB, free: 88.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001229/5.112, allocations: 14.47 kB / 1.423 GB, free: 88.46 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01306/5.125, allocations: 1.279 MB / 1.424 GB, free: 88.12 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01283/5.138, allocations: 2.771 MB / 1.427 GB, free: 86.18 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001867/5.14, allocations: 125.8 kB / 1.427 GB, free: 86.07 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04574/5.186, allocations: 21.11 MB / 1.447 GB, free: 67.36 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.957e-05/5.186, allocations: 15.94 kB / 1.447 GB, free: 67.34 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06104/5.247, allocations: 22.68 MB / 1.469 GB, free: 47.48 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009044/5.256, allocations: 2.182 MB / 1.472 GB, free: 45.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005401/5.261, allocations: 122.6 kB / 1.472 GB, free: 45.38 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0124/5.274, allocations: 434.6 kB / 1.472 GB, free: 45.11 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002774/5.277, allocations: 409.2 kB / 1.472 GB, free: 44.85 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001946/5.279, allocations: 174.3 kB / 1.473 GB, free: 44.68 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.482/5.761, allocations: 9.363 MB / 1.482 GB, free: 110.6 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5.21e-07/5.761, allocations: 0.9844 kB / 1.482 GB, free: 110.6 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02314/5.784, allocations: 3.097 MB / 1.485 GB, free: 110.6 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (553): * Single equations (assignments): 546 * 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.002457/5.787, allocations: 293.9 kB / 1.485 GB, free: 110.5 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.04458/5.831, allocations: 16.84 MB / 1.502 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.108e-05/5.831, allocations: 5.344 kB / 1.502 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02077/5.852, allocations: 7.108 MB / 1.508 GB, free: 109.4 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02072/5.873, allocations: 1.444 MB / 1.51 GB, free: 109.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1209/5.994, allocations: 35.21 MB / 1.544 GB, free: 96.67 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0364/6.03, allocations: 8.878 MB / 1.553 GB, free: 95.6 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.03778/6.068, allocations: 5.151 MB / 1.558 GB, free: 95.21 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009807/6.078, allocations: 0.7252 MB / 1.559 GB, free: 95.2 MB / 0.5262 GB Notification: Performance of SimCode: time 2.434e-06/6.078, allocations: 4 kB / 1.559 GB, free: 95.2 MB / 0.5262 GB Notification: Performance of Templates: time 0.8347/6.913, allocations: 115.4 MB / 1.671 GB, free: 113.9 MB / 0.5262 GB