Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01045/0.01045, allocations: 176 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.95/1.95, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002047/0.002047, allocations: 124.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2665/0.2665, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004797, allocations: 11.09 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1011, allocations: 54.88 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.603, allocations: 101.5 MB / 0.5494 GB, free: 21.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.6034, allocations: 79.44 kB / 0.5495 GB, free: 21.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5286/1.132, allocations: 131.9 MB / 0.6783 GB, free: 12.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.458e-06/1.132, allocations: 0 / 0.6783 GB, free: 12.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005593/1.133, allocations: 139.9 kB / 0.6785 GB, free: 11.92 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.0342/1.167, allocations: 7.185 MB / 0.6855 GB, free: 4.652 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/1.167, allocations: 8.031 kB / 0.6855 GB, free: 4.645 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006228/1.173, allocations: 1.183 MB / 0.6866 GB, free: 3.449 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05606/1.229, allocations: 7.14 MB / 0.6936 GB, free: 12.29 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03161/1.261, allocations: 7.465 MB / 0.7009 GB, free: 4.738 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/1.262, allocations: 0.5053 MB / 0.7014 GB, free: 4.23 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004744/1.267, allocations: 0.6676 MB / 0.702 GB, free: 3.562 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06897/1.336, allocations: 16.19 MB / 0.7179 GB, free: 1.875 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005448/1.336, allocations: 91.2 kB / 0.7179 GB, free: 1.785 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003548/1.34, allocations: 327.8 kB / 0.7183 GB, free: 1.465 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3935/1.734, allocations: 1.545 MB / 0.7198 GB, free: 85.51 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05095/1.785, allocations: 13.13 MB / 0.7326 GB, free: 85.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1108/1.895, allocations: 73 MB / 0.8039 GB, free: 43.81 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03379/1.929, allocations: 6.508 MB / 0.8102 GB, free: 41.63 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03055/1.96, allocations: 9.273 MB / 0.8193 GB, free: 37.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.547e-05/1.96, allocations: 64.28 kB / 0.8193 GB, free: 37.34 MB / 490.7 MB Notification: Performance of pre-optimization done (n=269): time 1.041e-05/1.96, allocations: 3.781 kB / 0.8193 GB, free: 37.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=311): time 0.142/2.102, allocations: 30.1 MB / 0.8487 GB, free: 25.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/2.102, allocations: 235.7 kB / 0.849 GB, free: 25.47 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/2.119, allocations: 6.167 MB / 0.855 GB, free: 23.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009978/2.12, allocations: 72.05 kB / 0.8551 GB, free: 23.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005124/2.125, allocations: 4.845 MB / 0.8598 GB, free: 19.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002143/2.127, allocations: 1.173 MB / 0.8609 GB, free: 18.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/2.129, allocations: 180 kB / 0.8611 GB, free: 17.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006199/2.129, allocations: 0.6913 MB / 0.8618 GB, free: 17.39 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009517/2.139, allocations: 3.565 MB / 0.8653 GB, free: 14.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/2.152, allocations: 8.849 MB / 0.8739 GB, free: 3.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01406/2.166, allocations: 5.534 MB / 0.8793 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000208/2.167, allocations: 52 kB / 0.8794 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04498/2.212, allocations: 13.69 MB / 0.8927 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002059/2.212, allocations: 88 kB / 0.8928 GB, free: 3.238 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004473/2.212, allocations: 184.8 kB / 0.893 GB, free: 3.059 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007774/2.22, allocations: 1.709 MB / 0.8947 GB, free: 1.789 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01486/2.235, allocations: 2.139 MB / 0.8967 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02634/2.261, allocations: 11.68 MB / 0.9081 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01205/2.274, allocations: 0.5282 MB / 0.9087 GB, free: 5.098 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002866/2.276, allocations: 0.5397 MB / 0.9092 GB, free: 4.578 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * 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 (1104): * Single equations (assignments): 1099 * 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: 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.01212/2.289, allocations: 3.221 MB / 0.9123 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002087/2.291, allocations: 0.5901 MB / 0.9129 GB, free: 1.148 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4158/2.707, allocations: 6.985 MB / 0.9197 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.412e-05/2.707, allocations: 34.72 kB / 0.9198 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.287e-05/2.707, allocations: 8.781 kB / 0.9198 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-05/2.707, allocations: 17.94 kB / 0.9198 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05376/2.761, allocations: 15.19 MB / 0.9346 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.262e-05/2.761, allocations: 5.719 kB / 0.9346 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005752/2.767, allocations: 0.5616 MB / 0.9352 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006599/2.773, allocations: 1.413 MB / 0.9366 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009244/2.774, allocations: 59.38 kB / 0.9366 GB, free: 109 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/2.796, allocations: 10.82 MB / 0.9472 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/2.796, allocations: 6.969 kB / 0.9472 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0296/2.826, allocations: 11.84 MB / 0.9587 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005305/2.831, allocations: 1.148 MB / 0.9599 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002566/2.834, allocations: 59.16 kB / 0.9599 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006348/2.84, allocations: 212.4 kB / 0.9601 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001432/2.842, allocations: 197.7 kB / 0.9603 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004389/2.842, allocations: 75.47 kB / 0.9604 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0136/2.856, allocations: 4.417 MB / 0.9647 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.263e-06/2.856, allocations: 0 / 0.9647 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.013/2.869, allocations: 1.66 MB / 0.9663 GB, free: 104.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.0313/2.9, allocations: 13.2 MB / 0.9792 GB, free: 98.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02195/2.922, allocations: 8.812 MB / 0.9878 GB, free: 95.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/2.922, allocations: 0 / 0.9878 GB, free: 95.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009532/2.932, allocations: 3.381 MB / 0.9911 GB, free: 94.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006875/2.939, allocations: 0.7056 MB / 0.9918 GB, free: 94.28 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6044/3.543, allocations: 194.1 MB / 1.181 GB, free: 83.08 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01262/3.556, allocations: 5.032 MB / 1.186 GB, free: 82.22 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01461/3.571, allocations: 2.973 MB / 1.189 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008995/3.58, allocations: 3.22 MB / 1.192 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of SimCode: time 1.713e-06/3.58, allocations: 2.812 kB / 1.192 GB, free: 82.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6999/4.28, allocations: 132.4 MB / 1.322 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002166/4.28, allocations: 184.5 kB / 1.322 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.074/12.35, allocations: 0 / 1.322 GB, free: 123.9 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat