Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 106.1 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00181/0.001811, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 242.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2221/0.2221, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 62.69 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1217, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01047/0.1322, allocations: 9.23 MB / 479.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007611/0.1399, allocations: 3.594 MB / 482.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.1416, allocations: 47.88 kB / 482.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003816/0.1454, allocations: 1.935 MB / 484.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00451/0.15, allocations: 1.646 MB / 486.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.1515, allocations: 0.5692 MB / 486.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005243/0.1568, allocations: 3.703 MB / 490.7 MB, free: 9.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002976/0.1598, allocations: 2.472 MB / 493.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.1617, allocations: 1.195 MB / 494.3 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002144/0.1639, allocations: 1.674 MB / 496 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005547/0.1644, allocations: 252 kB / 496.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001974/0.1664, allocations: 1.139 MB / 497.4 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001502/0.1679, allocations: 1.578 MB / 499 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.17, allocations: 1.79 MB / 0.489 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006239/0.1762, allocations: 5.736 MB / 0.4946 GB, free: 9.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1763, allocations: 0 / 0.4946 GB, free: 9.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1763, allocations: 0 / 0.4946 GB, free: 9.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001642/0.1764, allocations: 0 / 0.4946 GB, free: 9.629 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007936/0.1844, allocations: 3.967 MB / 0.4985 GB, free: 5.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1845, allocations: 12.02 kB / 0.4985 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/0.2013, allocations: 2.398 MB / 0.5008 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006129/0.2075, allocations: 2.288 MB / 0.5031 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.2077, allocations: 177 kB / 0.5032 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009819/0.2087, allocations: 251.9 kB / 0.5035 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2196/0.4283, allocations: 8.152 MB / 0.5114 GB, free: 42.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/0.4285, allocations: 35.62 kB / 0.5115 GB, free: 42.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005071/0.429, allocations: 117.7 kB / 0.5116 GB, free: 42.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003416/0.4324, allocations: 1.711 MB / 0.5133 GB, free: 42.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01418/0.4466, allocations: 6.9 MB / 0.52 GB, free: 40.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03244/0.4791, allocations: 32.5 MB / 0.5517 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004116/0.4833, allocations: 2.473 MB / 0.5541 GB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.4844, allocations: 1.116 MB / 0.5552 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002678/0.4847, allocations: 323.2 kB / 0.5555 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.4847, allocations: 54.44 kB / 0.5556 GB, free: 5.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 4.558e-06/0.4848, allocations: 0 / 0.5556 GB, free: 5.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.02191/0.5067, allocations: 9.249 MB / 0.5646 GB, free: 12.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.5068, allocations: 200.4 kB / 0.5648 GB, free: 12.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005378/0.5122, allocations: 3.812 MB / 0.5685 GB, free: 8.508 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002774/0.5125, allocations: 43.66 kB / 0.5686 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.5147, allocations: 2.782 MB / 0.5713 GB, free: 5.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006627/0.5154, allocations: 0.4893 MB / 0.5718 GB, free: 5.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.5169, allocations: 1.146 MB / 0.5729 GB, free: 4.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.517, allocations: 301.1 kB / 0.5732 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.5196, allocations: 1.705 MB / 0.5749 GB, free: 2.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005317/0.525, allocations: 5.322 MB / 0.5801 GB, free: 10.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009187/0.5342, allocations: 7.603 MB / 0.5875 GB, free: 1.469 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/0.5343, allocations: 39.94 kB / 0.5875 GB, free: 1.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01543/0.5498, allocations: 7.202 MB / 0.5945 GB, free: 10.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.55, allocations: 63 kB / 0.5946 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002321/0.5502, allocations: 132 kB / 0.5947 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001843/0.5521, allocations: 0.6564 MB / 0.5954 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004124/0.5562, allocations: 1.267 MB / 0.5966 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005606/0.5619, allocations: 4.077 MB / 0.6006 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004054/0.5659, allocations: 303.3 kB / 0.6009 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009362/0.5669, allocations: 349 kB / 0.6012 GB, free: 3.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 687 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003643/0.5706, allocations: 1.838 MB / 0.603 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/0.5713, allocations: 308 kB / 0.6033 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/0.5754, allocations: 1.845 MB / 0.6051 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4e-05/0.5755, allocations: 16 kB / 0.6051 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.5755, allocations: 0 / 0.6051 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.5755, allocations: 7.984 kB / 0.6051 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.5874, allocations: 5.348 MB / 0.6103 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/0.5875, allocations: 4 kB / 0.6104 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008837/0.5884, allocations: 168.1 kB / 0.6105 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/0.5899, allocations: 488.2 kB / 0.611 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001384/0.59, allocations: 19.94 kB / 0.611 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004384/0.5944, allocations: 3.433 MB / 0.6144 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5945, allocations: 3.984 kB / 0.6144 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006154/0.6006, allocations: 3.74 MB / 0.618 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.6017, allocations: 360.9 kB / 0.6184 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007236/0.6024, allocations: 20 kB / 0.6184 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.6039, allocations: 55.92 kB / 0.6184 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.6042, allocations: 72.34 kB / 0.6185 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.284e-05/0.6043, allocations: 28 kB / 0.6185 GB, free: 1.238 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004711/0.609, allocations: 2.366 MB / 0.6208 GB, free: 14.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.82e-07/0.609, allocations: 64 / 0.6208 GB, free: 14.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005261/0.6143, allocations: 0.8306 MB / 0.6216 GB, free: 14.05 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005517/0.6149, allocations: 148.7 kB / 0.6218 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007968/0.6229, allocations: 4.349 MB / 0.626 GB, free: 9.582 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.6229, allocations: 0 / 0.626 GB, free: 9.582 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.6246, allocations: 1.002 MB / 0.627 GB, free: 8.566 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/0.6277, allocations: 377.4 kB / 0.6274 GB, free: 8.203 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/0.6439, allocations: 7.81 MB / 0.635 GB, free: 352 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004448/0.6484, allocations: 2.794 MB / 0.6377 GB, free: 13.53 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009184/0.6494, allocations: 251.4 kB / 0.638 GB, free: 13.29 MB / 478.1 MB Notification: Performance of SimCode: time 1.453e-06/0.6494, allocations: 3.938 kB / 0.638 GB, free: 13.28 MB / 478.1 MB Notification: Performance of Templates: time 0.3038/0.9532, allocations: 63.43 MB / 0.6999 GB, free: 168.2 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches