Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Torque2",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.01035/0.01035, allocations: 173.5 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 2.07/2.07, allocations: 194.5 MB / 210.3 MB, free: 8.582 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.002055/0.002055, allocations: 108.7 kB / 255.6 MB, free: 11.2 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.2675/0.2675, allocations: 40.01 MB / 340.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004781, allocations: 12.95 kB / 406.3 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09826, allocations: 54.87 MB / 461.1 MB, free: 3.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5215/0.6198, allocations: 105.4 MB / 0.5533 GB, free: 21.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.6202, allocations: 77.69 kB / 0.5533 GB, free: 21.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.464/2.084, allocations: 240 MB / 0.7877 GB, free: 57.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.286e-06/2.084, allocations: 0 / 0.7877 GB, free: 57.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009677/2.085, allocations: 256.2 kB / 0.788 GB, free: 57.55 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.06599/2.151, allocations: 13.35 MB / 0.801 GB, free: 52.56 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/2.151, allocations: 9.719 kB / 0.801 GB, free: 52.56 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01269/2.164, allocations: 2.196 MB / 0.8031 GB, free: 52.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09767/2.261, allocations: 12.81 MB / 0.8157 GB, free: 51.51 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05185/2.313, allocations: 13.34 MB / 0.8287 GB, free: 50.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001715/2.315, allocations: 0.9686 MB / 0.8296 GB, free: 49.99 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008439/2.324, allocations: 1.269 MB / 0.8309 GB, free: 49.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1082/2.432, allocations: 30.19 MB / 0.8604 GB, free: 31.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001311/2.433, allocations: 146 kB / 0.8605 GB, free: 31.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007924/2.441, allocations: 0.5912 MB / 0.8611 GB, free: 30.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006824/2.448, allocations: 2.854 MB / 0.8639 GB, free: 28.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08498/2.533, allocations: 24.69 MB / 0.888 GB, free: 8.062 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7152/3.248, allocations: 127.8 MB / 1.013 GB, free: 36.18 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06649/3.315, allocations: 14.08 MB / 1.026 GB, free: 35.41 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05846/3.374, allocations: 19.84 MB / 1.046 GB, free: 30.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/3.374, allocations: 100.5 kB / 1.046 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=562): time 1.13e-05/3.374, allocations: 0 / 1.046 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=646): time 0.7426/4.116, allocations: 67.89 MB / 1.112 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/4.117, allocations: 386.1 kB / 1.113 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03641/4.153, allocations: 10.72 MB / 1.123 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002133/4.155, allocations: 127.1 kB / 1.123 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.01088/4.166, allocations: 8.552 MB / 1.132 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004756/4.171, allocations: 2.377 MB / 1.134 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003687/4.175, allocations: 309.8 kB / 1.134 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002226/4.177, allocations: 0.9652 MB / 1.135 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02034/4.197, allocations: 6.768 MB / 1.142 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02614/4.224, allocations: 15.2 MB / 1.157 GB, free: 99.05 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0258/4.249, allocations: 9.931 MB / 1.166 GB, free: 98.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004749/4.25, allocations: 85.06 kB / 1.166 GB, free: 98.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07837/4.328, allocations: 24.83 MB / 1.191 GB, free: 93.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004504/4.329, allocations: 136.4 kB / 1.191 GB, free: 93.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007545/4.33, allocations: 291.3 kB / 1.191 GB, free: 93.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/4.345, allocations: 3.314 MB / 1.194 GB, free: 92.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02922/4.374, allocations: 3.757 MB / 1.198 GB, free: 92.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07239/4.447, allocations: 23.25 MB / 1.221 GB, free: 79.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03471/4.481, allocations: 0.9362 MB / 1.222 GB, free: 79.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006038/4.487, allocations: 0.8878 MB / 1.222 GB, free: 79.6 MB / 0.5417 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.02511/4.513, allocations: 5.741 MB / 1.228 GB, free: 76.98 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004689/4.517, allocations: 1.07 MB / 1.229 GB, free: 76.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04889/4.566, allocations: 14.75 MB / 1.243 GB, free: 67.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/4.566, allocations: 64 kB / 1.244 GB, free: 67.47 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001162/4.567, allocations: 27.27 kB / 1.244 GB, free: 67.45 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001903/4.567, allocations: 29.16 kB / 1.244 GB, free: 67.45 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1018/4.669, allocations: 32.55 MB / 1.275 GB, free: 41.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001207/4.669, allocations: 8 kB / 1.275 GB, free: 41.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01319/4.682, allocations: 1.283 MB / 1.277 GB, free: 40.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01365/4.696, allocations: 2.836 MB / 1.279 GB, free: 38.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0023/4.698, allocations: 129.1 kB / 1.28 GB, free: 38.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04445/4.743, allocations: 21.73 MB / 1.301 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/4.743, allocations: 19.94 kB / 1.301 GB, free: 18.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5454/5.288, allocations: 26.31 MB / 1.326 GB, free: 95.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009337/5.297, allocations: 2.179 MB / 1.329 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004251/5.302, allocations: 122.4 kB / 1.329 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01203/5.314, allocations: 448.1 kB / 1.329 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003015/5.317, allocations: 409.9 kB / 1.33 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008648/5.318, allocations: 169.7 kB / 1.33 GB, free: 95.11 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02161/5.339, allocations: 7.762 MB / 1.337 GB, free: 94.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.41e-07/5.339, allocations: 2.25 kB / 1.337 GB, free: 94.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02156/5.361, allocations: 3.103 MB / 1.34 GB, free: 94.79 MB / 0.5417 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.08157/5.443, allocations: 27.44 MB / 1.367 GB, free: 88.51 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04916/5.492, allocations: 16.83 MB / 1.384 GB, free: 83.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-05/5.492, allocations: 1.312 kB / 1.384 GB, free: 83.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02284/5.515, allocations: 7.122 MB / 1.39 GB, free: 81.16 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01298/5.528, allocations: 1.342 MB / 1.392 GB, free: 80.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9016/6.429, allocations: 348.8 MB / 1.732 GB, free: 17.37 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02611/6.456, allocations: 8.884 MB / 1.741 GB, free: 16.34 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.02682/6.483, allocations: 5.15 MB / 1.746 GB, free: 16.23 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01839/6.501, allocations: 6.424 MB / 1.752 GB, free: 16.23 MB / 0.6511 GB Notification: Performance of SimCode: time 1.393e-06/6.501, allocations: 0 / 1.752 GB, free: 16.23 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9714/7.472, allocations: 239.9 MB / 1.987 GB, free: 109.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/7.473, allocations: 186.5 kB / 1.987 GB, free: 109 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/21.61, allocations: 0 / 1.987 GB, free: 109 MB / 0.6511 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat