Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque.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.Torque,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_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003726/0.003732, allocations: 353.9 kB / 15.95 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.396/3.396, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003471/0.003471, allocations: 225.2 kB / 397.9 MB, free: 4.977 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.4493/0.4493, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007449/0.0007453, allocations: 8 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08931/0.09013, allocations: 48.71 MB / 0.6067 GB, free: 4.648 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3544/0.4446, allocations: 78.69 MB / 0.6836 GB, free: 33.94 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05256/0.4972, allocations: 15.83 MB / 0.6991 GB, free: 18.19 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0208/0.5181, allocations: 367.2 kB / 0.6994 GB, free: 17.83 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0169/0.5351, allocations: 3.85 MB / 0.7032 GB, free: 13.96 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03885/0.574, allocations: 13.1 MB / 0.716 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006572/0.5806, allocations: 0.8889 MB / 0.7168 GB, free: 15.92 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0642/0.6449, allocations: 29.71 MB / 0.7459 GB, free: 2.16 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02304/0.668, allocations: 7.42 MB / 0.7531 GB, free: 10.84 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005036/0.6731, allocations: 1.985 MB / 0.755 GB, free: 8.852 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007191/0.6803, allocations: 3.189 MB / 0.7581 GB, free: 5.652 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0017/0.6821, allocations: 232 kB / 0.7584 GB, free: 5.426 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.6864, allocations: 1.061 MB / 0.7594 GB, free: 4.363 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005323/0.6918, allocations: 2.813 MB / 0.7622 GB, free: 1.543 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3516/1.043, allocations: 1.33 MB / 0.7635 GB, free: 35.37 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02055/1.064, allocations: 8.759 MB / 0.772 GB, free: 34.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.956e-06/1.064, allocations: 0 / 0.772 GB, free: 34.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.627e-06/1.064, allocations: 0 / 0.772 GB, free: 34.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005168/1.065, allocations: 0 / 0.772 GB, free: 34.82 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.03998/1.105, allocations: 6.976 MB / 0.7788 GB, free: 31.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.342e-05/1.105, allocations: 8.969 kB / 0.7788 GB, free: 31.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04066/1.145, allocations: 3.363 MB / 0.7821 GB, free: 31.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02308/1.169, allocations: 4.445 MB / 0.7865 GB, free: 30.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007645/1.169, allocations: 384.9 kB / 0.7868 GB, free: 30.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004209/1.174, allocations: 0.4945 MB / 0.7873 GB, free: 30.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05524/1.229, allocations: 15.92 MB / 0.8029 GB, free: 27.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003814/1.229, allocations: 70.31 kB / 0.8029 GB, free: 27.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002507/1.232, allocations: 241.3 kB / 0.8031 GB, free: 27.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006751/1.239, allocations: 2.843 MB / 0.8059 GB, free: 26.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04199/1.281, allocations: 13.41 MB / 0.819 GB, free: 22.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1351/1.416, allocations: 61.45 MB / 0.879 GB, free: 3.711 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03157/1.448, allocations: 6.857 MB / 0.8857 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009291/1.457, allocations: 4.011 MB / 0.8896 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0267/1.484, allocations: 9.484 MB / 0.8989 GB, free: 4.293 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.02e-05/1.484, allocations: 60.56 kB / 0.899 GB, free: 4.227 MB / 458.7 MB Notification: Performance of pre-optimization done (n=269): time 9.277e-06/1.484, allocations: 0 / 0.899 GB, free: 4.227 MB / 458.7 MB Notification: Performance of matching and sorting (n=311): time 0.1625/1.646, allocations: 33.38 MB / 0.9316 GB, free: 2.699 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/1.647, allocations: 247.3 kB / 0.9318 GB, free: 2.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02612/1.673, allocations: 6.927 MB / 0.9386 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001353/1.674, allocations: 76.44 kB / 0.9386 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007907/1.682, allocations: 4.744 MB / 0.9433 GB, free: 6.707 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003184/1.685, allocations: 1.187 MB / 0.9444 GB, free: 5.527 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/1.688, allocations: 185.8 kB / 0.9446 GB, free: 5.348 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001285/1.689, allocations: 0.7027 MB / 0.9453 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01633/1.705, allocations: 3.879 MB / 0.9491 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3339/2.039, allocations: 9.189 MB / 0.9581 GB, free: 197.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0162/2.056, allocations: 5.82 MB / 0.9637 GB, free: 196.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003902/2.056, allocations: 53.34 kB / 0.9638 GB, free: 196.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.0486/2.105, allocations: 14.88 MB / 0.9783 GB, free: 191.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/2.105, allocations: 84.91 kB / 0.9784 GB, free: 191.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003263/2.105, allocations: 185.5 kB / 0.9786 GB, free: 191.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/2.116, allocations: 2.325 MB / 0.9809 GB, free: 191.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01426/2.13, allocations: 2.163 MB / 0.983 GB, free: 190.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02713/2.157, allocations: 13.46 MB / 0.9961 GB, free: 183.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/2.17, allocations: 0.5488 MB / 0.9966 GB, free: 182.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002568/2.172, allocations: 0.5395 MB / 0.9972 GB, free: 182.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 845 * Number of states: 0 () * Number of discrete variables: 60 (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 (1137): * Single equations (assignments): 1130 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01003/2.182, allocations: 3.23 MB / 1 GB, free: 179.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/2.184, allocations: 0.585 MB / 1.001 GB, free: 179.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02383/2.208, allocations: 7.691 MB / 1.008 GB, free: 173 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-05/2.208, allocations: 19.38 kB / 1.008 GB, free: 173 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/2.208, allocations: 4 kB / 1.008 GB, free: 173 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004541/2.212, allocations: 1.198 MB / 1.01 GB, free: 172.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002464/2.215, allocations: 53.61 kB / 1.01 GB, free: 172 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006177/2.221, allocations: 219.5 kB / 1.01 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001439/2.223, allocations: 206 kB / 1.01 GB, free: 171.8 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02764/2.25, allocations: 7.998 MB / 1.018 GB, free: 164.2 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02459/2.275, allocations: 10.21 MB / 1.028 GB, free: 154 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006165/2.281, allocations: 2.769 MB / 1.031 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01177/2.293, allocations: 4.395 MB / 1.035 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of Backend: time 1.472e-06/2.293, allocations: 0 / 1.035 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02462/2.318, allocations: 7.14 MB / 1.042 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of SimCode: time 0.04223/2.36, allocations: 17.44 MB / 1.059 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.228/2.588, allocations: 78.75 MB / 1.136 GB, free: 44.17 MB / 0.4948 GB