Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.009516/0.009516, allocations: 166.3 kB / 15.11 MB, free: 5.934 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 1.821/1.821, allocations: 170.8 MB / 186.6 MB, free: 1.133 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001956/0.001955, allocations: 107 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4547/0.4547, allocations: 38.05 MB / 303.7 MB, free: 42.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004883, allocations: 12 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1153, allocations: 48.71 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.556, allocations: 92.18 MB / 0.4921 GB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5563, allocations: 82.58 kB / 0.4921 GB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3339/0.8902, allocations: 72.91 MB / 0.5633 GB, free: 7.523 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.8903, allocations: 0 / 0.5633 GB, free: 7.523 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002275/0.8905, allocations: 60 kB / 0.5634 GB, free: 7.465 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01489/0.9054, allocations: 3.499 MB / 0.5668 GB, free: 3.898 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.9055, allocations: 12.03 kB / 0.5668 GB, free: 3.887 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00295/0.9084, allocations: 0.6143 MB / 0.5674 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03317/0.9417, allocations: 4.249 MB / 0.5716 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/0.96, allocations: 4.224 MB / 0.5757 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000437/0.9605, allocations: 242.5 kB / 0.5759 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/0.9625, allocations: 331.8 kB / 0.5763 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/0.9878, allocations: 8.282 MB / 0.5843 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002719/0.9882, allocations: 60.48 kB / 0.5844 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001652/0.9898, allocations: 159.9 kB / 0.5845 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2984/1.288, allocations: 0.8127 MB / 0.5853 GB, free: 84.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02032/1.309, allocations: 6.701 MB / 0.5919 GB, free: 84.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0578/1.366, allocations: 39.76 MB / 0.6307 GB, free: 58.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007805/1.374, allocations: 2.277 MB / 0.6329 GB, free: 57.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005653/1.375, allocations: 330.4 kB / 0.6333 GB, free: 57.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/1.375, allocations: 45.09 kB / 0.6333 GB, free: 57.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.549e-06/1.375, allocations: 0 / 0.6333 GB, free: 57.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.06271/1.438, allocations: 11.39 MB / 0.6444 GB, free: 54.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.953e-05/1.438, allocations: 192.3 kB / 0.6446 GB, free: 54.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009387/1.447, allocations: 3.289 MB / 0.6478 GB, free: 53.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003403/1.448, allocations: 43.03 kB / 0.6479 GB, free: 53.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002937/1.451, allocations: 2.69 MB / 0.6505 GB, free: 51.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001/1.452, allocations: 0.5571 MB / 0.651 GB, free: 50.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008217/1.453, allocations: 105.1 kB / 0.6511 GB, free: 50.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006016/1.453, allocations: 0.5299 MB / 0.6516 GB, free: 50.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005308/1.459, allocations: 1.641 MB / 0.6532 GB, free: 49.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0077/1.466, allocations: 5.049 MB / 0.6582 GB, free: 44.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007038/1.473, allocations: 2.847 MB / 0.661 GB, free: 43.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001614/1.474, allocations: 37.09 kB / 0.661 GB, free: 43.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01869/1.492, allocations: 6.636 MB / 0.6675 GB, free: 40.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/1.492, allocations: 57.78 kB / 0.6675 GB, free: 40.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002087/1.493, allocations: 121.2 kB / 0.6676 GB, free: 40.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/1.494, allocations: 351.7 kB / 0.668 GB, free: 40.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01177/1.506, allocations: 1.238 MB / 0.6692 GB, free: 40.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005234/1.511, allocations: 2.751 MB / 0.6719 GB, free: 38.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006292/1.517, allocations: 289.3 kB / 0.6721 GB, free: 38.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.519, allocations: 336.3 kB / 0.6725 GB, free: 38.67 MB / 426.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.005192/1.524, allocations: 1.778 MB / 0.6742 GB, free: 37.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009194/1.525, allocations: 309.4 kB / 0.6745 GB, free: 37.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00544/1.53, allocations: 1.737 MB / 0.6762 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.167e-05/1.53, allocations: 21.02 kB / 0.6762 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/1.53, allocations: 3.375 kB / 0.6762 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/1.531, allocations: 10.28 kB / 0.6762 GB, free: 36.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/1.547, allocations: 5.402 MB / 0.6815 GB, free: 34.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.547, allocations: 0 / 0.6815 GB, free: 34.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.549, allocations: 220 kB / 0.6817 GB, free: 34.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008577/1.55, allocations: 161 kB / 0.6819 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002934/1.551, allocations: 27.41 kB / 0.6819 GB, free: 34.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/1.554, allocations: 2.185 MB / 0.684 GB, free: 33.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.554, allocations: 2.625 kB / 0.684 GB, free: 33.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008866/1.563, allocations: 3.837 MB / 0.6878 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001964/1.565, allocations: 0.5253 MB / 0.6883 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.566, allocations: 26.67 kB / 0.6883 GB, free: 30.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.569, allocations: 74.02 kB / 0.6884 GB, free: 30.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004654/1.569, allocations: 68.97 kB / 0.6885 GB, free: 30.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/1.569, allocations: 40.06 kB / 0.6885 GB, free: 30.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006292/1.576, allocations: 2.299 MB / 0.6907 GB, free: 30.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.576, allocations: 0 / 0.6907 GB, free: 30.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006253/1.582, allocations: 0.8077 MB / 0.6915 GB, free: 29.93 MB / 426.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.009597/1.592, allocations: 4.746 MB / 0.6962 GB, free: 27.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009804/1.602, allocations: 3.988 MB / 0.7001 GB, free: 25.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.602, allocations: 4 kB / 0.7001 GB, free: 25.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003059/1.605, allocations: 1.081 MB / 0.7011 GB, free: 25.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/1.609, allocations: 348.9 kB / 0.7014 GB, free: 25.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4098/2.019, allocations: 111.1 MB / 0.8099 GB, free: 34.42 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0064/2.025, allocations: 2.832 MB / 0.8127 GB, free: 33.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008353/2.034, allocations: 1.741 MB / 0.8144 GB, free: 33.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003959/2.038, allocations: 1.497 MB / 0.8159 GB, free: 33.62 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/2.038, allocations: 0 / 0.8159 GB, free: 33.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1511/2.189, allocations: 62.81 MB / 0.8772 GB, free: 20 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005522/2.189, allocations: 188 kB / 0.8774 GB, free: 19.76 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.79/6.98, allocations: 0 / 0.8774 GB, free: 19.76 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat