Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_Torque3",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.009813/0.009813, allocations: 175.9 kB / 15.12 MB, free: 5.984 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.124/2.124, allocations: 194.5 MB / 210.3 MB, free: 8.785 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.002155/0.002155, allocations: 120.6 kB / 255.6 MB, free: 11.4 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.2908/0.2908, allocations: 40 MB / 340.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005123/0.0005125, allocations: 11.25 kB / 406.3 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1236, allocations: 54.88 MB / 461.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.541/0.6647, allocations: 104 MB / 0.5519 GB, free: 21.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/0.6651, allocations: 79.72 kB / 0.5519 GB, free: 21.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.242/1.907, allocations: 223.4 MB / 0.7701 GB, free: 58.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.348e-06/1.907, allocations: 0 / 0.7701 GB, free: 58.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000851/1.908, allocations: 239.5 kB / 0.7704 GB, free: 58.56 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: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.05432/1.963, allocations: 12.28 MB / 0.7823 GB, free: 54.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/1.963, allocations: 13.16 kB / 0.7824 GB, free: 54.01 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01016/1.973, allocations: 2.072 MB / 0.7844 GB, free: 53.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09319/2.066, allocations: 12.62 MB / 0.7967 GB, free: 53.06 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04504/2.111, allocations: 12.6 MB / 0.809 GB, free: 51.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001252/2.113, allocations: 0.9015 MB / 0.8099 GB, free: 51.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007331/2.12, allocations: 1.203 MB / 0.8111 GB, free: 51.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09424/2.214, allocations: 28.39 MB / 0.8388 GB, free: 43.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001098/2.215, allocations: 139.5 kB / 0.8389 GB, free: 43.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006804/2.222, allocations: 0.5526 MB / 0.8395 GB, free: 43.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00617/2.228, allocations: 2.675 MB / 0.8421 GB, free: 43.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07724/2.306, allocations: 23.57 MB / 0.8651 GB, free: 24.69 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7591/3.065, allocations: 116.9 MB / 0.9792 GB, free: 42.42 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08315/3.148, allocations: 13.74 MB / 0.9926 GB, free: 41.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004093/3.152, allocations: 2.35 MB / 0.9949 GB, free: 39.71 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/3.152, allocations: 92.22 kB / 0.995 GB, free: 39.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=559): time 1.014e-05/3.153, allocations: 0 / 0.995 GB, free: 39.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=643): time 0.3317/3.484, allocations: 62.12 MB / 1.056 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000212/3.485, allocations: 331.6 kB / 1.056 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02624/3.511, allocations: 9.057 MB / 1.065 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001997/3.513, allocations: 125.7 kB / 1.065 GB, free: 28.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008435/3.521, allocations: 7.736 MB / 1.073 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004449/3.526, allocations: 2.348 MB / 1.075 GB, free: 21.31 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003499/3.529, allocations: 287.2 kB / 1.075 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002069/3.532, allocations: 0.9065 MB / 1.076 GB, free: 20.52 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01854/3.55, allocations: 6.527 MB / 1.082 GB, free: 18.28 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03054/3.581, allocations: 14.09 MB / 1.096 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03462/3.615, allocations: 9.415 MB / 1.105 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004232/3.616, allocations: 79.47 kB / 1.105 GB, free: 1.707 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.5091/4.125, allocations: 24.15 MB / 1.129 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002181/4.125, allocations: 117.7 kB / 1.129 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005034/4.126, allocations: 262.8 kB / 1.129 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01488/4.141, allocations: 3.268 MB / 1.133 GB, free: 103.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02439/4.165, allocations: 3.498 MB / 1.136 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04446/4.21, allocations: 23.23 MB / 1.159 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01898/4.229, allocations: 0.8671 MB / 1.159 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004275/4.233, allocations: 0.8115 MB / 1.16 GB, free: 97.77 MB / 0.5417 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.0172/4.25, allocations: 5.335 MB / 1.165 GB, free: 97.37 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00415/4.254, allocations: 0.9415 MB / 1.166 GB, free: 97.37 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04765/4.302, allocations: 14.6 MB / 1.181 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001301/4.302, allocations: 64.47 kB / 1.181 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.445e-05/4.302, allocations: 17.06 kB / 1.181 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000198/4.303, allocations: 36.45 kB / 1.181 GB, free: 96.14 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1038/4.407, allocations: 31.28 MB / 1.211 GB, free: 85.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001475/4.407, allocations: 7.812 kB / 1.211 GB, free: 85.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01948/4.426, allocations: 1.226 MB / 1.213 GB, free: 85.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/4.445, allocations: 2.833 MB / 1.215 GB, free: 84.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002044/4.447, allocations: 124.3 kB / 1.215 GB, free: 84.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04355/4.49, allocations: 21.71 MB / 1.237 GB, free: 68.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/4.49, allocations: 7.938 kB / 1.237 GB, free: 68.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06091/4.551, allocations: 24.01 MB / 1.26 GB, free: 47.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008251/4.56, allocations: 2.033 MB / 1.262 GB, free: 45.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00413/4.564, allocations: 115.5 kB / 1.262 GB, free: 45.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01126/4.575, allocations: 494 kB / 1.263 GB, free: 45.14 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002749/4.578, allocations: 396.7 kB / 1.263 GB, free: 44.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001539/4.58, allocations: 163.9 kB / 1.263 GB, free: 44.74 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01813/4.598, allocations: 6.51 MB / 1.27 GB, free: 39.42 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.71e-07/4.598, allocations: 0 / 1.27 GB, free: 39.42 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02027/4.618, allocations: 2.933 MB / 1.272 GB, free: 36.49 MB / 0.5417 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.06692/4.685, allocations: 25.21 MB / 1.297 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.4329/5.118, allocations: 16.49 MB / 1.313 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.899e-05/5.118, allocations: 4 kB / 1.313 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02409/5.142, allocations: 7.168 MB / 1.32 GB, free: 101.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01156/5.154, allocations: 1.187 MB / 1.321 GB, free: 101.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8401/5.994, allocations: 307.5 MB / 1.622 GB, free: 110.9 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02266/6.017, allocations: 8.313 MB / 1.63 GB, free: 109.9 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.02332/6.04, allocations: 4.714 MB / 1.634 GB, free: 109.8 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01577/6.056, allocations: 5.873 MB / 1.64 GB, free: 109.6 MB / 0.6355 GB Notification: Performance of SimCode: time 1.683e-06/6.056, allocations: 0 / 1.64 GB, free: 109.6 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9542/7.01, allocations: 222.2 MB / 1.857 GB, free: 144.4 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/7.01, allocations: 198.4 kB / 1.857 GB, free: 144.2 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/19.77, allocations: 3.938 kB / 1.857 GB, free: 144.1 MB / 0.6355 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat