Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.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.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance",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.009833/0.009833, allocations: 175.9 kB / 15.12 MB, free: 5.934 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.964/1.964, allocations: 194.5 MB / 210.3 MB, free: 7.801 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.00203/0.00203, allocations: 116.7 kB / 255.6 MB, free: 10.43 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.2668/0.2668, allocations: 40.01 MB / 340.8 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006666/0.0006669, allocations: 12.06 kB / 406.3 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1126, allocations: 54.87 MB / 461.1 MB, free: 3.234 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5294/0.6421, allocations: 99.01 MB / 0.547 GB, free: 21.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.6425, allocations: 81.36 kB / 0.5471 GB, free: 21.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3034/0.9458, allocations: 72.93 MB / 0.6183 GB, free: 7.648 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.9459, allocations: 0 / 0.6183 GB, free: 7.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002421/0.9462, allocations: 60 kB / 0.6184 GB, free: 7.59 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01581/0.962, allocations: 3.494 MB / 0.6218 GB, free: 4.324 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.9621, allocations: 8.031 kB / 0.6218 GB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003179/0.9653, allocations: 0.6179 MB / 0.6224 GB, free: 3.941 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03331/0.9986, allocations: 4.249 MB / 0.6265 GB, free: 8 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01815/1.017, allocations: 4.234 MB / 0.6307 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003944/1.017, allocations: 240.6 kB / 0.6309 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002137/1.019, allocations: 332.3 kB / 0.6312 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02626/1.046, allocations: 8.286 MB / 0.6393 GB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002927/1.046, allocations: 55.47 kB / 0.6394 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001939/1.048, allocations: 163.9 kB / 0.6395 GB, free: 3.102 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002146/1.05, allocations: 0.8056 MB / 0.6403 GB, free: 2.293 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02214/1.072, allocations: 6.71 MB / 0.6469 GB, free: 11.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06575/1.138, allocations: 39.77 MB / 0.6857 GB, free: 2.441 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/1.147, allocations: 2.266 MB / 0.6879 GB, free: 32 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007288/1.148, allocations: 328 kB / 0.6882 GB, free: 15.65 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.636e-05/1.148, allocations: 47.06 kB / 0.6883 GB, free: 15.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=117): time 4.378e-06/1.148, allocations: 0 / 0.6883 GB, free: 15.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=141): time 0.06618/1.214, allocations: 11.39 MB / 0.6994 GB, free: 4.012 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/1.214, allocations: 192.7 kB / 0.6996 GB, free: 3.781 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/1.225, allocations: 3.288 MB / 0.7028 GB, free: 0.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004057/1.225, allocations: 45.7 kB / 0.7028 GB, free: 460 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004085/1.229, allocations: 2.69 MB / 0.7055 GB, free: 13.72 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/1.231, allocations: 0.5594 MB / 0.706 GB, free: 13.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008871/1.232, allocations: 108 kB / 0.7061 GB, free: 13.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006258/1.232, allocations: 0.5293 MB / 0.7066 GB, free: 12.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005441/1.238, allocations: 1.638 MB / 0.7082 GB, free: 10.87 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009287/1.247, allocations: 5.047 MB / 0.7131 GB, free: 4.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007999/1.255, allocations: 2.85 MB / 0.7159 GB, free: 1.242 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/1.255, allocations: 32 kB / 0.716 GB, free: 1.211 MB / 490.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.3699/1.625, allocations: 6.628 MB / 0.7224 GB, free: 123.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/1.625, allocations: 60.81 kB / 0.7225 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002512/1.626, allocations: 122.1 kB / 0.7226 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/1.627, allocations: 340.8 kB / 0.7229 GB, free: 123.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00786/1.635, allocations: 1.243 MB / 0.7241 GB, free: 123.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004736/1.64, allocations: 2.751 MB / 0.7268 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005906/1.646, allocations: 287.8 kB / 0.7271 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/1.647, allocations: 334.5 kB / 0.7274 GB, free: 121.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005334/1.652, allocations: 1.771 MB / 0.7292 GB, free: 121.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008102/1.653, allocations: 309.2 kB / 0.7295 GB, free: 121.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005826/1.659, allocations: 1.738 MB / 0.7312 GB, free: 121.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.311e-05/1.659, allocations: 20.5 kB / 0.7312 GB, free: 121.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/1.659, allocations: 5.094 kB / 0.7312 GB, free: 121.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/1.659, allocations: 7.609 kB / 0.7312 GB, free: 121.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/1.674, allocations: 5.401 MB / 0.7365 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/1.674, allocations: 3.875 kB / 0.7365 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00204/1.676, allocations: 224.4 kB / 0.7367 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007595/1.677, allocations: 158 kB / 0.7368 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/1.677, allocations: 22 kB / 0.7368 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/1.68, allocations: 2.191 MB / 0.739 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.68, allocations: 0 / 0.739 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007689/1.688, allocations: 3.837 MB / 0.7427 GB, free: 118.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/1.69, allocations: 0.5317 MB / 0.7433 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005811/1.69, allocations: 21.12 kB / 0.7433 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001974/1.692, allocations: 63.11 kB / 0.7433 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/1.693, allocations: 77.62 kB / 0.7434 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.693, allocations: 40.67 kB / 0.7434 GB, free: 118.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004996/1.698, allocations: 2.302 MB / 0.7457 GB, free: 118.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.698, allocations: 3.844 kB / 0.7457 GB, free: 118.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005632/1.703, allocations: 0.804 MB / 0.7465 GB, free: 118.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (112): * Single equations (assignments): 108 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008367/1.712, allocations: 4.747 MB / 0.7511 GB, free: 116.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009202/1.721, allocations: 3.985 MB / 0.755 GB, free: 115.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.721, allocations: 0 / 0.755 GB, free: 115.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/1.723, allocations: 1.089 MB / 0.7561 GB, free: 115.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/1.726, allocations: 339.8 kB / 0.7564 GB, free: 115.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07845/1.805, allocations: 111.1 MB / 0.8649 GB, free: 29.32 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005278/1.81, allocations: 2.817 MB / 0.8677 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007525/1.818, allocations: 1.749 MB / 0.8694 GB, free: 28.01 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003759/1.821, allocations: 1.494 MB / 0.8708 GB, free: 26.81 MB / 0.4948 GB Notification: Performance of SimCode: time 1.493e-06/1.821, allocations: 0 / 0.8708 GB, free: 26.81 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5231/2.345, allocations: 62.81 MB / 0.9322 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/2.345, allocations: 200 kB / 0.9324 GB, free: 130 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.624/6.969, allocations: 3.938 kB / 0.9324 GB, free: 130 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat