Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002483/0.002483, allocations: 176.9 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.621/2.621, allocations: 205.4 MB / 223.6 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008205/0.0008203, allocations: 93.02 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3652/0.3652, allocations: 43.56 MB / 363.8 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003436, allocations: 23.94 kB / 432.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1264, allocations: 58.84 MB / 491.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.475, allocations: 105.3 MB / 0.5828 GB, free: 13.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.4753, allocations: 87.89 kB / 0.5828 GB, free: 12.97 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1876/0.663, allocations: 72.23 MB / 0.6534 GB, free: 4.293 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.663, allocations: 0 / 0.6534 GB, free: 4.293 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.6632, allocations: 60 kB / 0.6534 GB, free: 4.234 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.00934/0.6726, allocations: 3.416 MB / 0.6568 GB, free: 0.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.6726, allocations: 8.031 kB / 0.6568 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0137/0.6863, allocations: 3.436 MB / 0.6601 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007113/0.6935, allocations: 3.171 MB / 0.6632 GB, free: 10.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/0.6937, allocations: 246.8 kB / 0.6635 GB, free: 9.816 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.695, allocations: 332.2 kB / 0.6638 GB, free: 9.492 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.7093, allocations: 8.287 MB / 0.6719 GB, free: 248 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001382/0.7094, allocations: 51.66 kB / 0.6719 GB, free: 196 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005348/0.71, allocations: 167.8 kB / 0.6721 GB, free: 28 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2114/0.9213, allocations: 0.8126 MB / 0.6729 GB, free: 96.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.9331, allocations: 6.671 MB / 0.6794 GB, free: 96.66 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02944/0.9626, allocations: 39.85 MB / 0.7183 GB, free: 70.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003804/0.9665, allocations: 2.275 MB / 0.7205 GB, free: 69.79 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.9676, allocations: 1.079 MB / 0.7216 GB, free: 69.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002697/0.9679, allocations: 317.5 kB / 0.7219 GB, free: 69.47 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.9679, allocations: 47.06 kB / 0.7219 GB, free: 69.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 3.526e-06/0.9679, allocations: 3.312 kB / 0.7219 GB, free: 69.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=141): time 0.04357/1.011, allocations: 11.13 MB / 0.7328 GB, free: 65.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/1.012, allocations: 193.2 kB / 0.733 GB, free: 65.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005513/1.017, allocations: 3.715 MB / 0.7366 GB, free: 64.13 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/1.017, allocations: 46.69 kB / 0.7367 GB, free: 64.08 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/1.019, allocations: 2.702 MB / 0.7393 GB, free: 62.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005448/1.019, allocations: 0.558 MB / 0.7399 GB, free: 61.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/1.02, allocations: 105.8 kB / 0.74 GB, free: 61.66 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002869/1.02, allocations: 0.5288 MB / 0.7405 GB, free: 61.26 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/1.023, allocations: 1.647 MB / 0.7421 GB, free: 60.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003713/1.026, allocations: 5.093 MB / 0.7471 GB, free: 55.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007187/1.033, allocations: 7.356 MB / 0.7542 GB, free: 49.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.299e-05/1.034, allocations: 38.22 kB / 0.7543 GB, free: 49.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.009348/1.043, allocations: 6.659 MB / 0.7608 GB, free: 46.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.583e-05/1.043, allocations: 59.53 kB / 0.7608 GB, free: 46.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.828e-05/1.043, allocations: 120.9 kB / 0.761 GB, free: 46.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006068/1.044, allocations: 338.4 kB / 0.7613 GB, free: 46.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002908/1.047, allocations: 1.242 MB / 0.7625 GB, free: 46.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/1.049, allocations: 2.713 MB / 0.7651 GB, free: 44.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/1.053, allocations: 287 kB / 0.7654 GB, free: 44.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/1.053, allocations: 342.1 kB / 0.7657 GB, free: 44.18 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 27 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (667): * Single equations (assignments): 663 * 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.002412/1.055, allocations: 1.782 MB / 0.7675 GB, free: 43.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004804/1.056, allocations: 315.4 kB / 0.7678 GB, free: 43.15 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002627/1.058, allocations: 1.736 MB / 0.7695 GB, free: 42.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/1.058, allocations: 14.16 kB / 0.7695 GB, free: 42.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/1.058, allocations: 7.562 kB / 0.7695 GB, free: 42.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/1.058, allocations: 11.66 kB / 0.7695 GB, free: 42.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007654/1.066, allocations: 5.414 MB / 0.7748 GB, free: 40.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/1.066, allocations: 0 / 0.7748 GB, free: 40.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009459/1.067, allocations: 222 kB / 0.775 GB, free: 40.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004164/1.068, allocations: 154.4 kB / 0.7752 GB, free: 40.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/1.068, allocations: 31.95 kB / 0.7752 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/1.069, allocations: 2.151 MB / 0.7773 GB, free: 38.55 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.069, allocations: 0 / 0.7773 GB, free: 38.55 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/1.074, allocations: 3.719 MB / 0.7809 GB, free: 36.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/1.075, allocations: 0.528 MB / 0.7814 GB, free: 36.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/1.075, allocations: 22.25 kB / 0.7814 GB, free: 36.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000987/1.076, allocations: 68.12 kB / 0.7815 GB, free: 36.49 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/1.076, allocations: 74.55 kB / 0.7816 GB, free: 36.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.904e-05/1.076, allocations: 39.08 kB / 0.7816 GB, free: 36.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00292/1.079, allocations: 2.319 MB / 0.7839 GB, free: 35.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.079, allocations: 0 / 0.7839 GB, free: 35.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003727/1.083, allocations: 0.8091 MB / 0.7847 GB, free: 35.59 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.0003288/1.083, allocations: 157 kB / 0.7848 GB, free: 35.46 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005133/1.088, allocations: 3.988 MB / 0.7887 GB, free: 34.04 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/1.088, allocations: 6.438 kB / 0.7887 GB, free: 34.04 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/1.09, allocations: 1.085 MB / 0.7898 GB, free: 33.58 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/1.092, allocations: 359.5 kB / 0.7901 GB, free: 33.41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/1.103, allocations: 8.999 MB / 0.7989 GB, free: 28.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/1.105, allocations: 2.76 MB / 0.8016 GB, free: 26.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008603/1.106, allocations: 260.4 kB / 0.8019 GB, free: 26.58 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/1.106, allocations: 0 / 0.8019 GB, free: 26.58 MB / 490.7 MB Notification: Performance of Templates: time 0.3266/1.432, allocations: 62.79 MB / 0.8632 GB, free: 4.301 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches