Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001381/0.001381, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 86.67 kB / 261.7 MB, free: 1.688 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.2091/0.2091, allocations: 43.5 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.559e-05/1.562e-05, allocations: 4 kB / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1353, allocations: 58.85 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.513/0.6484, allocations: 104.4 MB / 0.5679 GB, free: 7.324 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.6487, allocations: 81.42 kB / 0.568 GB, free: 7.285 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1917/0.8404, allocations: 71.95 MB / 0.6382 GB, free: 7.438 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.8405, allocations: 0 / 0.6382 GB, free: 7.438 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001885/0.8407, allocations: 60 kB / 0.6383 GB, free: 7.379 MB / 442.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.01477/0.8555, allocations: 3.259 MB / 0.6415 GB, free: 4.062 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.8556, allocations: 8.031 kB / 0.6415 GB, free: 4.055 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01762/0.8732, allocations: 4.25 MB / 0.6456 GB, free: 15.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.886, allocations: 4.224 MB / 0.6497 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.8862, allocations: 104 kB / 0.6498 GB, free: 11.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001828/0.888, allocations: 195.9 kB / 0.65 GB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009972/0.898, allocations: 4.666 MB / 0.6546 GB, free: 6.539 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01946/0.9175, allocations: 7.595 MB / 0.662 GB, free: 13.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00022/0.9178, allocations: 55.47 kB / 0.6621 GB, free: 13.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007694/0.9186, allocations: 31.95 kB / 0.6621 GB, free: 13.9 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001154/0.9197, allocations: 0.8174 MB / 0.6629 GB, free: 13.08 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04801/0.9678, allocations: 38.21 MB / 0.7002 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.9713, allocations: 2.338 MB / 0.7025 GB, free: 3.137 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.9729, allocations: 1.059 MB / 0.7035 GB, free: 2.066 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005006/0.9734, allocations: 327.9 kB / 0.7038 GB, free: 1.691 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.541e-05/0.9735, allocations: 47.06 kB / 0.7039 GB, free: 1.637 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=120): time 4.298e-06/0.9735, allocations: 0 / 0.7039 GB, free: 1.637 MB / 0.4948 GB Notification: Performance of matching and sorting (n=150): time 0.3856/1.359, allocations: 10.5 MB / 0.7141 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/1.359, allocations: 193.6 kB / 0.7143 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00566/1.365, allocations: 2.811 MB / 0.7171 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003581/1.365, allocations: 26.83 kB / 0.7171 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002321/1.368, allocations: 2.752 MB / 0.7198 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001062/1.369, allocations: 0.5772 MB / 0.7203 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/1.369, allocations: 1.469 kB / 0.7203 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003599/1.369, allocations: 0.549 MB / 0.7209 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/1.372, allocations: 1.564 MB / 0.7224 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004797/1.377, allocations: 5.128 MB / 0.7274 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004871/1.382, allocations: 2.828 MB / 0.7302 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001924/1.382, allocations: 36.03 kB / 0.7302 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01401/1.396, allocations: 6.02 MB / 0.7361 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.396, allocations: 61.97 kB / 0.7361 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.396, allocations: 127.4 kB / 0.7363 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007314/1.397, allocations: 353.7 kB / 0.7366 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004421/1.401, allocations: 1.303 MB / 0.7379 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/1.404, allocations: 2.61 MB / 0.7404 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00521/1.409, allocations: 188.9 kB / 0.7406 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/1.411, allocations: 351.3 kB / 0.7409 GB, free: 124.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * 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.001369/1.412, allocations: 422.8 kB / 0.7413 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008743/1.413, allocations: 286.3 kB / 0.7416 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/1.416, allocations: 1.659 MB / 0.7432 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.94e-05/1.416, allocations: 19.02 kB / 0.7433 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/1.416, allocations: 5.281 kB / 0.7433 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/1.416, allocations: 10.59 kB / 0.7433 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009942/1.426, allocations: 5.138 MB / 0.7483 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/1.426, allocations: 0 / 0.7483 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/1.427, allocations: 231.8 kB / 0.7485 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004454/1.428, allocations: 157.4 kB / 0.7487 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.428, allocations: 11.62 kB / 0.7487 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/1.43, allocations: 2.058 MB / 0.7507 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.43, allocations: 0 / 0.7507 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004869/1.434, allocations: 3.755 MB / 0.7543 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.436, allocations: 0.5055 MB / 0.7548 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/1.437, allocations: 0 / 0.7548 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/1.438, allocations: 47.31 kB / 0.7549 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/1.438, allocations: 85.67 kB / 0.755 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.777e-05/1.438, allocations: 36.28 kB / 0.755 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003129/1.441, allocations: 1.872 MB / 0.7568 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.1e-07/1.441, allocations: 0 / 0.7568 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006072/1.447, allocations: 0.6912 MB / 0.7575 GB, free: 117.9 MB / 0.4948 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.000508/1.448, allocations: 143.3 kB / 0.7576 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006394/1.454, allocations: 3.78 MB / 0.7613 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.454, allocations: 3.75 kB / 0.7613 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001237/1.455, allocations: 1.064 MB / 0.7624 GB, free: 116 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/1.458, allocations: 276.4 kB / 0.7626 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/1.47, allocations: 5.918 MB / 0.7684 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00293/1.473, allocations: 2.839 MB / 0.7712 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004348/1.477, allocations: 1.777 MB / 0.7729 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007117/1.478, allocations: 214.4 kB / 0.7731 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.212e-06/1.478, allocations: 0 / 0.7731 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.04693/1.525, allocations: 24.02 MB / 0.7966 GB, free: 100 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches