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.0009426/0.0009427, allocations: 176 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.000745/0.0007446, allocations: 85.92 kB / 271.3 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.3422/0.3422, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003972, allocations: 12 kB / 432.6 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1295, allocations: 58.85 MB / 491.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4793, allocations: 105.3 MB / 0.5828 GB, free: 12.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.4796, allocations: 84.41 kB / 0.5829 GB, free: 12.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1917/0.6713, allocations: 72.23 MB / 0.6534 GB, free: 3.875 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6713, allocations: 0 / 0.6534 GB, free: 3.875 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002291/0.6716, allocations: 71.92 kB / 0.6535 GB, free: 3.805 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.01136/0.683, allocations: 3.416 MB / 0.6568 GB, free: 328 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.683, allocations: 12.03 kB / 0.6568 GB, free: 316 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01479/0.6978, allocations: 3.42 MB / 0.6602 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008637/0.7065, allocations: 3.171 MB / 0.6633 GB, free: 9.641 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003331/0.7069, allocations: 250.8 kB / 0.6635 GB, free: 9.395 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001833/0.7088, allocations: 332.2 kB / 0.6638 GB, free: 9.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2681/0.9769, allocations: 8.28 MB / 0.6719 GB, free: 94.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002513/0.9772, allocations: 57.12 kB / 0.672 GB, free: 94.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/0.9784, allocations: 163.9 kB / 0.6721 GB, free: 94.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001349/0.9797, allocations: 0.8149 MB / 0.6729 GB, free: 94.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.9928, allocations: 6.665 MB / 0.6794 GB, free: 94.57 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03314/1.026, allocations: 39.86 MB / 0.7183 GB, free: 68.35 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0039/1.03, allocations: 2.269 MB / 0.7206 GB, free: 67.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/1.031, allocations: 1.077 MB / 0.7216 GB, free: 67.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/1.031, allocations: 321.7 kB / 0.7219 GB, free: 67.36 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/1.031, allocations: 44.19 kB / 0.722 GB, free: 67.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 3.677e-06/1.031, allocations: 1.75 kB / 0.722 GB, free: 67.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=141): time 0.02866/1.06, allocations: 11.14 MB / 0.7328 GB, free: 63.35 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.289e-05/1.06, allocations: 199.9 kB / 0.733 GB, free: 63.13 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006789/1.067, allocations: 3.704 MB / 0.7366 GB, free: 61.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003068/1.067, allocations: 45.8 kB / 0.7367 GB, free: 61.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00188/1.069, allocations: 2.706 MB / 0.7393 GB, free: 59.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006566/1.07, allocations: 0.5593 MB / 0.7399 GB, free: 59.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/1.07, allocations: 106.8 kB / 0.74 GB, free: 59.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003046/1.07, allocations: 0.5342 MB / 0.7405 GB, free: 59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00269/1.073, allocations: 1.639 MB / 0.7421 GB, free: 58.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/1.077, allocations: 5.098 MB / 0.7471 GB, free: 53.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007785/1.085, allocations: 7.352 MB / 0.7543 GB, free: 46.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/1.085, allocations: 34.25 kB / 0.7543 GB, free: 46.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.0124/1.098, allocations: 6.656 MB / 0.7608 GB, free: 44.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-05/1.098, allocations: 63.97 kB / 0.7609 GB, free: 44.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.098, allocations: 119.9 kB / 0.761 GB, free: 44.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000627/1.099, allocations: 340.8 kB / 0.7613 GB, free: 44.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/1.102, allocations: 1.241 MB / 0.7625 GB, free: 43.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002493/1.105, allocations: 2.72 MB / 0.7652 GB, free: 42.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/1.109, allocations: 288.4 kB / 0.7654 GB, free: 41.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008242/1.11, allocations: 337.7 kB / 0.7658 GB, free: 41.89 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.003124/1.113, allocations: 1.791 MB / 0.7675 GB, free: 41.03 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007197/1.114, allocations: 308.6 kB / 0.7678 GB, free: 40.86 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00309/1.117, allocations: 1.732 MB / 0.7695 GB, free: 40.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/1.117, allocations: 21.7 kB / 0.7695 GB, free: 40.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/1.117, allocations: 0 / 0.7695 GB, free: 40.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/1.117, allocations: 17.75 kB / 0.7695 GB, free: 40.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/1.128, allocations: 5.407 MB / 0.7748 GB, free: 37.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.128, allocations: 7.469 kB / 0.7748 GB, free: 37.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/1.13, allocations: 222.6 kB / 0.775 GB, free: 37.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004652/1.13, allocations: 149 kB / 0.7752 GB, free: 37.93 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001362/1.13, allocations: 34.33 kB / 0.7752 GB, free: 37.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001918/1.132, allocations: 2.149 MB / 0.7773 GB, free: 36.26 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.132, allocations: 3.25 kB / 0.7773 GB, free: 36.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/1.137, allocations: 3.713 MB / 0.7809 GB, free: 34.58 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.138, allocations: 0.527 MB / 0.7814 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008132/1.139, allocations: 27.28 kB / 0.7815 GB, free: 34.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.141, allocations: 68.56 kB / 0.7815 GB, free: 34.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/1.141, allocations: 73.94 kB / 0.7816 GB, free: 34.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/1.141, allocations: 41.94 kB / 0.7816 GB, free: 34.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004163/1.145, allocations: 2.315 MB / 0.7839 GB, free: 33.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.145, allocations: 0 / 0.7839 GB, free: 33.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005434/1.151, allocations: 0.8102 MB / 0.7847 GB, free: 33.3 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.0005179/1.151, allocations: 154.9 kB / 0.7848 GB, free: 33.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006335/1.158, allocations: 3.991 MB / 0.7887 GB, free: 31.75 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.158, allocations: 0 / 0.7887 GB, free: 31.75 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/1.159, allocations: 1.087 MB / 0.7898 GB, free: 31.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/1.163, allocations: 371.7 kB / 0.7902 GB, free: 31.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/1.176, allocations: 8.591 MB / 0.7986 GB, free: 26.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003809/1.18, allocations: 2.756 MB / 0.8012 GB, free: 25.55 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004764/1.185, allocations: 1.735 MB / 0.8029 GB, free: 25.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008031/1.186, allocations: 214.2 kB / 0.8031 GB, free: 25.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/1.186, allocations: 0 / 0.8031 GB, free: 25.14 MB / 490.7 MB Notification: Performance of Templates: time 0.05114/1.237, allocations: 27.07 MB / 0.8296 GB, free: 6.289 MB / 490.7 MB 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/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_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches