Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00209/0.00209, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009891/0.0009889, allocations: 98.14 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2123/0.2123, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.205e-05/1.2e-05, allocations: 4 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4257/0.5268, allocations: 106.5 MB / 0.6084 GB, free: 12.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.5271, allocations: 74.84 kB / 0.6084 GB, free: 12.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1788/0.7059, allocations: 71.61 MB / 0.6784 GB, free: 12.89 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.7059, allocations: 0 / 0.6784 GB, free: 12.89 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001738/0.7061, allocations: 56 kB / 0.6784 GB, free: 12.83 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.008756/0.7149, allocations: 3.206 MB / 0.6816 GB, free: 9.566 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.715, allocations: 11.97 kB / 0.6816 GB, free: 9.555 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01593/0.7309, allocations: 4.227 MB / 0.6857 GB, free: 5.316 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008761/0.7397, allocations: 3.49 MB / 0.6891 GB, free: 1.762 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.295e-05/0.7398, allocations: 100 kB / 0.6892 GB, free: 1.664 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005353/0.7404, allocations: 191.9 kB / 0.6894 GB, free: 1.477 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006225/0.7466, allocations: 4.459 MB / 0.6937 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00879/0.7554, allocations: 7.331 MB / 0.7009 GB, free: 4.73 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.7555, allocations: 59.47 kB / 0.701 GB, free: 4.672 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003258/0.7559, allocations: 31.95 kB / 0.701 GB, free: 4.641 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009148/0.7568, allocations: 0.7819 MB / 0.7018 GB, free: 3.855 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03368/0.7905, allocations: 37.48 MB / 0.7384 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.7929, allocations: 2.24 MB / 0.7405 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.794, allocations: 1.016 MB / 0.7415 GB, free: 9.719 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003721/0.7944, allocations: 319.8 kB / 0.7418 GB, free: 9.352 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.7944, allocations: 43 kB / 0.7419 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=111): time 4.118e-06/0.7945, allocations: 0 / 0.7419 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of matching and sorting (n=135): time 0.2868/1.081, allocations: 9.936 MB / 0.7516 GB, free: 147 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/1.081, allocations: 193.1 kB / 0.7518 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004209/1.086, allocations: 2.745 MB / 0.7544 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002133/1.086, allocations: 27.67 kB / 0.7545 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001514/1.087, allocations: 2.669 MB / 0.7571 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005518/1.088, allocations: 0.5284 MB / 0.7576 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/1.088, allocations: 3.844 kB / 0.7576 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003336/1.088, allocations: 0.5364 MB / 0.7581 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/1.091, allocations: 1.484 MB / 0.7596 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/1.094, allocations: 4.948 MB / 0.7644 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/1.098, allocations: 2.716 MB / 0.7671 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.931e-05/1.098, allocations: 35.53 kB / 0.7671 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.009536/1.108, allocations: 5.774 MB / 0.7727 GB, free: 140 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001371/1.108, allocations: 61.94 kB / 0.7728 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001647/1.108, allocations: 127.9 kB / 0.7729 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006302/1.109, allocations: 347.6 kB / 0.7732 GB, free: 140 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/1.112, allocations: 1.249 MB / 0.7745 GB, free: 139.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/1.114, allocations: 2.61 MB / 0.777 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/1.117, allocations: 180.5 kB / 0.7772 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004394/1.118, allocations: 348.9 kB / 0.7775 GB, free: 138.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (672): * Single equations (assignments): 668 * 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.0005339/1.118, allocations: 409.2 kB / 0.7779 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003104/1.119, allocations: 281.1 kB / 0.7782 GB, free: 138.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/1.121, allocations: 1.498 MB / 0.7796 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/1.121, allocations: 14.95 kB / 0.7796 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/1.121, allocations: 3.906 kB / 0.7797 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.121, allocations: 15.05 kB / 0.7797 GB, free: 138 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005955/1.127, allocations: 4.569 MB / 0.7841 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/1.127, allocations: 7.562 kB / 0.7841 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008786/1.128, allocations: 203.5 kB / 0.7843 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000381/1.128, allocations: 148.9 kB / 0.7845 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-05/1.128, allocations: 9.25 kB / 0.7845 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001562/1.13, allocations: 2.064 MB / 0.7865 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/1.13, allocations: 3.953 kB / 0.7865 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003412/1.133, allocations: 3.52 MB / 0.7899 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005488/1.134, allocations: 325.2 kB / 0.7902 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002551/1.134, allocations: 3.844 kB / 0.7903 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009082/1.135, allocations: 42.05 kB / 0.7903 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/1.135, allocations: 67.84 kB / 0.7904 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-05/1.135, allocations: 40.17 kB / 0.7904 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00229/1.138, allocations: 1.829 MB / 0.7922 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/1.138, allocations: 10.41 kB / 0.7922 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004403/1.142, allocations: 0.6614 MB / 0.7928 GB, free: 133.9 MB / 0.5261 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 (105): * Single equations (assignments): 101 * 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.0003813/1.142, allocations: 139.2 kB / 0.793 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004815/1.147, allocations: 3.605 MB / 0.7965 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.147, allocations: 4 kB / 0.7965 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009094/1.148, allocations: 0.9907 MB / 0.7975 GB, free: 132.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/1.149, allocations: 290.5 kB / 0.7977 GB, free: 132 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007459/1.157, allocations: 5.635 MB / 0.8032 GB, free: 129.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/1.159, allocations: 2.753 MB / 0.8059 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003438/1.162, allocations: 1.724 MB / 0.8076 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/1.163, allocations: 193.2 kB / 0.8078 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/1.163, allocations: 0 / 0.8078 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.03572/1.198, allocations: 22.93 MB / 0.8302 GB, free: 122.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches