Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009916/0.0009916, allocations: 183.7 kB / 13.19 MB, free: 2.129 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.228/1.228, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0007447/0.0007447, allocations: 93.02 kB / 267.1 MB, free: 9.277 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.3156/0.3156, allocations: 43.47 MB / 358.6 MB, free: 52.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.203e-05/2.207e-05, allocations: 4 kB / 425.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09801, allocations: 58.85 MB / 484.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.4204, allocations: 104.5 MB / 0.5748 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4207, allocations: 75.95 kB / 0.5749 GB, free: 468 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.194/0.6147, allocations: 79.27 MB / 0.6523 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.6147, allocations: 0 / 0.6523 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001253/0.6149, allocations: 72 kB / 0.6524 GB, free: 0.6211 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.008671/0.6235, allocations: 3.544 MB / 0.6559 GB, free: 13.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.6236, allocations: 12.03 kB / 0.6559 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01675/0.6404, allocations: 4.32 MB / 0.6601 GB, free: 8.676 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.6513, allocations: 4.377 MB / 0.6644 GB, free: 4.234 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.6516, allocations: 279.3 kB / 0.6646 GB, free: 3.961 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001376/0.6529, allocations: 377.2 kB / 0.665 GB, free: 3.594 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2431/0.8961, allocations: 9.049 MB / 0.6738 GB, free: 90.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.8963, allocations: 57.44 kB / 0.6739 GB, free: 90.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004638/0.8967, allocations: 187.9 kB / 0.6741 GB, free: 90.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001178/0.8979, allocations: 0.8993 MB / 0.6749 GB, free: 90.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.9092, allocations: 7.25 MB / 0.682 GB, free: 90.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0317/0.9409, allocations: 42.75 MB / 0.7238 GB, free: 62.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003949/0.9449, allocations: 2.498 MB / 0.7262 GB, free: 61.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.946, allocations: 1.059 MB / 0.7272 GB, free: 61.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002597/0.9463, allocations: 330.8 kB / 0.7276 GB, free: 60.92 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.9463, allocations: 42.19 kB / 0.7276 GB, free: 60.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=119): time 3.276e-06/0.9463, allocations: 0 / 0.7276 GB, free: 60.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=133): time 0.0156/0.9619, allocations: 7.495 MB / 0.7349 GB, free: 57.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.962, allocations: 200.6 kB / 0.7351 GB, free: 57.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/0.9671, allocations: 3.479 MB / 0.7385 GB, free: 56.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.9673, allocations: 50.83 kB / 0.7385 GB, free: 56.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.9689, allocations: 2.981 MB / 0.7415 GB, free: 53.97 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/0.9694, allocations: 0.5414 MB / 0.742 GB, free: 53.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.9695, allocations: 112.2 kB / 0.7421 GB, free: 53.51 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002902/0.9698, allocations: 0.5471 MB / 0.7426 GB, free: 53.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.9722, allocations: 1.597 MB / 0.7442 GB, free: 52.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003568/0.9757, allocations: 5.407 MB / 0.7495 GB, free: 46.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/0.9793, allocations: 2.945 MB / 0.7523 GB, free: 45.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.57e-05/0.9794, allocations: 40.09 kB / 0.7524 GB, free: 45.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.008606/0.988, allocations: 6.863 MB / 0.7591 GB, free: 43.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.15e-05/0.9881, allocations: 64.16 kB / 0.7591 GB, free: 43.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/0.9882, allocations: 138.2 kB / 0.7593 GB, free: 43.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006258/0.9888, allocations: 369.3 kB / 0.7596 GB, free: 43.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003195/0.992, allocations: 1.334 MB / 0.7609 GB, free: 42.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/0.9944, allocations: 2.728 MB / 0.7636 GB, free: 41.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/0.998, allocations: 304.7 kB / 0.7639 GB, free: 40.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004147/0.9984, allocations: 370.6 kB / 0.7642 GB, free: 40.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (718): * Single equations (assignments): 714 * 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.0005525/0.999, allocations: 0.5587 MB / 0.7648 GB, free: 40.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/0.9995, allocations: 331.4 kB / 0.7651 GB, free: 40.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/1.002, allocations: 1.557 MB / 0.7666 GB, free: 39.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/1.002, allocations: 13.06 kB / 0.7666 GB, free: 39.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/1.002, allocations: 4.688 kB / 0.7666 GB, free: 39.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/1.002, allocations: 11.22 kB / 0.7667 GB, free: 39.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006839/1.009, allocations: 5.217 MB / 0.7717 GB, free: 37.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/1.009, allocations: 3.594 kB / 0.7717 GB, free: 37.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008235/1.009, allocations: 194.4 kB / 0.7719 GB, free: 37.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004065/1.01, allocations: 161.9 kB / 0.7721 GB, free: 37.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.851e-05/1.01, allocations: 25.53 kB / 0.7721 GB, free: 37.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/1.012, allocations: 2.154 MB / 0.7742 GB, free: 35.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/1.012, allocations: 7 kB / 0.7742 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003391/1.015, allocations: 3.525 MB / 0.7777 GB, free: 34.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/1.016, allocations: 0.5238 MB / 0.7782 GB, free: 33.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/1.016, allocations: 25.23 kB / 0.7782 GB, free: 33.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009407/1.017, allocations: 57.75 kB / 0.7783 GB, free: 33.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/1.017, allocations: 75.44 kB / 0.7783 GB, free: 33.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.099e-05/1.018, allocations: 38.27 kB / 0.7784 GB, free: 33.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002687/1.02, allocations: 2.411 MB / 0.7807 GB, free: 32.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.02, allocations: 3.125 kB / 0.7807 GB, free: 32.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003712/1.024, allocations: 0.8513 MB / 0.7816 GB, free: 32.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.0002631/1.024, allocations: 152.7 kB / 0.7817 GB, free: 32.72 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004577/1.029, allocations: 3.933 MB / 0.7855 GB, free: 31.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.029, allocations: 0 / 0.7855 GB, free: 31.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009393/1.03, allocations: 0.9544 MB / 0.7865 GB, free: 30.89 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/1.031, allocations: 361.5 kB / 0.7868 GB, free: 30.72 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009765/1.041, allocations: 6.23 MB / 0.7929 GB, free: 28.39 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/1.043, allocations: 3.031 MB / 0.7959 GB, free: 27.18 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003731/1.047, allocations: 1.8 MB / 0.7976 GB, free: 27.02 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005022/1.048, allocations: 236.3 kB / 0.7978 GB, free: 27 MB / 490.7 MB Notification: Performance of SimCode: time 6.91e-07/1.048, allocations: 0 / 0.7978 GB, free: 27 MB / 490.7 MB Notification: Performance of Templates: time 0.0417/1.089, allocations: 27.42 MB / 0.8246 GB, free: 10.17 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches