Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002435/0.002435, allocations: 182.1 kB / 13.66 MB, free: 1.664 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.177/2.177, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001587/0.001586, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2704/0.2704, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.184e-05, allocations: 7.984 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1185, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5093/0.6279, allocations: 104.5 MB / 0.5748 GB, free: 15.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.6282, allocations: 82.95 kB / 0.5749 GB, free: 15.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3601/0.9883, allocations: 79.25 MB / 0.6523 GB, free: 7.996 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.9884, allocations: 3.938 kB / 0.6523 GB, free: 7.992 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002306/0.9886, allocations: 68 kB / 0.6524 GB, free: 7.926 MB / 458.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.01406/1.003, allocations: 3.546 MB / 0.6558 GB, free: 4.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/1.003, allocations: 8.031 kB / 0.6558 GB, free: 4.312 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03307/1.036, allocations: 4.328 MB / 0.6601 GB, free: 15.97 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0229/1.059, allocations: 4.377 MB / 0.6643 GB, free: 11.53 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006233/1.059, allocations: 275.3 kB / 0.6646 GB, free: 11.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002761/1.062, allocations: 375.8 kB / 0.665 GB, free: 10.89 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03601/1.098, allocations: 9.051 MB / 0.6738 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002956/1.099, allocations: 55.45 kB / 0.6738 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00197/1.101, allocations: 187.8 kB / 0.674 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002404/1.103, allocations: 0.9039 MB / 0.6749 GB, free: 15.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02229/1.125, allocations: 7.249 MB / 0.682 GB, free: 8.461 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4119/1.537, allocations: 42.76 MB / 0.7237 GB, free: 94.65 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008189/1.546, allocations: 2.501 MB / 0.7262 GB, free: 93.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/1.548, allocations: 1.06 MB / 0.7272 GB, free: 93.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005175/1.549, allocations: 326.8 kB / 0.7275 GB, free: 93.67 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/1.549, allocations: 50.94 kB / 0.7276 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=119): time 4.599e-06/1.549, allocations: 0 / 0.7276 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=133): time 0.03235/1.581, allocations: 7.49 MB / 0.7349 GB, free: 91.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/1.581, allocations: 196.7 kB / 0.7351 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008658/1.59, allocations: 3.486 MB / 0.7385 GB, free: 90.69 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003224/1.59, allocations: 46.78 kB / 0.7385 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002604/1.593, allocations: 2.924 MB / 0.7414 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008587/1.594, allocations: 0.5343 MB / 0.7419 GB, free: 88.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005794/1.594, allocations: 114.9 kB / 0.742 GB, free: 88.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003601/1.595, allocations: 0.5542 MB / 0.7426 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003996/1.599, allocations: 1.595 MB / 0.7441 GB, free: 88.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006368/1.605, allocations: 5.403 MB / 0.7494 GB, free: 83.59 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006277/1.611, allocations: 2.947 MB / 0.7523 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/1.612, allocations: 40.03 kB / 0.7523 GB, free: 83.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01729/1.629, allocations: 6.766 MB / 0.7589 GB, free: 83.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/1.629, allocations: 63.22 kB / 0.759 GB, free: 83.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001771/1.629, allocations: 134.9 kB / 0.7591 GB, free: 83.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.63, allocations: 369.8 kB / 0.7595 GB, free: 83.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007789/1.638, allocations: 1.33 MB / 0.7608 GB, free: 82.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004124/1.642, allocations: 2.726 MB / 0.7634 GB, free: 81.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006376/1.649, allocations: 307.3 kB / 0.7637 GB, free: 81.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/1.65, allocations: 362.2 kB / 0.7641 GB, free: 81.54 MB / 0.4948 GB 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.001066/1.651, allocations: 0.5617 MB / 0.7646 GB, free: 81.22 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008275/1.652, allocations: 325.1 kB / 0.7649 GB, free: 81.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/1.656, allocations: 1.562 MB / 0.7664 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.25e-05/1.656, allocations: 15.38 kB / 0.7665 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/1.656, allocations: 9.812 kB / 0.7665 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/1.656, allocations: 6.75 kB / 0.7665 GB, free: 80.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/1.671, allocations: 5.21 MB / 0.7716 GB, free: 79.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/1.671, allocations: 0 / 0.7716 GB, free: 79.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001821/1.673, allocations: 198.4 kB / 0.7718 GB, free: 79.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007598/1.674, allocations: 160.9 kB / 0.7719 GB, free: 79.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/1.674, allocations: 18.84 kB / 0.7719 GB, free: 79.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003103/1.677, allocations: 2.158 MB / 0.774 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/1.677, allocations: 3.938 kB / 0.774 GB, free: 77.58 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006725/1.684, allocations: 3.527 MB / 0.7775 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/1.686, allocations: 0.5229 MB / 0.778 GB, free: 75.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000671/1.687, allocations: 22.97 kB / 0.778 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.688, allocations: 57.88 kB / 0.7781 GB, free: 75.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/1.689, allocations: 66.73 kB / 0.7781 GB, free: 75.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/1.689, allocations: 43.66 kB / 0.7782 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005563/1.695, allocations: 2.417 MB / 0.7805 GB, free: 74.59 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.11e-07/1.695, allocations: 0 / 0.7805 GB, free: 74.59 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006479/1.701, allocations: 0.8463 MB / 0.7814 GB, free: 74.48 MB / 0.4948 GB 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.0005321/1.702, allocations: 160.3 kB / 0.7815 GB, free: 74.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008615/1.71, allocations: 3.93 MB / 0.7853 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.71, allocations: 1.188 kB / 0.7854 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001955/1.712, allocations: 0.9574 MB / 0.7863 GB, free: 72.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/1.715, allocations: 364.5 kB / 0.7866 GB, free: 72.36 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/1.732, allocations: 6.654 MB / 0.7931 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005183/1.737, allocations: 3.036 MB / 0.7961 GB, free: 68.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/1.738, allocations: 272.6 kB / 0.7964 GB, free: 68.53 MB / 0.4948 GB Notification: Performance of SimCode: time 1.303e-06/1.738, allocations: 0 / 0.7964 GB, free: 68.53 MB / 0.4948 GB Notification: Performance of Templates: time 0.1174/1.856, allocations: 64.63 MB / 0.8595 GB, free: 15.3 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches