Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 106.6 kB / 18.45 MB, free: 4.637 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.001162/0.001162, allocations: 187.2 kB / 19.39 MB, free: 3.711 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.454/1.454, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.2141/0.2141, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3371, allocations: 60.82 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009363/0.3465, allocations: 9.038 MB / 0.5284 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007199/0.3537, allocations: 3.553 MB / 0.5319 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.3553, allocations: 48.75 kB / 0.5319 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003273/0.3586, allocations: 1.672 MB / 0.5335 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004241/0.3629, allocations: 1.626 MB / 0.5351 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.3642, allocations: 0.5574 MB / 0.5357 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005269/0.3695, allocations: 3.594 MB / 0.5392 GB, free: 6.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.3722, allocations: 2.208 MB / 0.5413 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002007/0.3742, allocations: 1.119 MB / 0.5424 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.3764, allocations: 1.564 MB / 0.544 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000554/0.377, allocations: 224 kB / 0.5442 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002037/0.379, allocations: 1.116 MB / 0.5453 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001388/0.3804, allocations: 1.457 MB / 0.5467 GB, free: 204 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.3821, allocations: 1.666 MB / 0.5483 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006442/0.3886, allocations: 5.552 MB / 0.5537 GB, free: 8.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.759e-06/0.3886, allocations: 3.984 kB / 0.5537 GB, free: 8.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3886, allocations: 0 / 0.5537 GB, free: 8.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.3888, allocations: 8 kB / 0.5537 GB, free: 8.938 MB / 414.1 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.008064/0.3969, allocations: 3.827 MB / 0.5575 GB, free: 5.035 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3969, allocations: 12.03 kB / 0.5575 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01635/0.4133, allocations: 2.378 MB / 0.5598 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005411/0.4188, allocations: 2.241 MB / 0.562 GB, free: 356 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001574/0.419, allocations: 176.5 kB / 0.5622 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008106/0.4198, allocations: 216 kB / 0.5624 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.4338, allocations: 7.595 MB / 0.5698 GB, free: 7.742 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001648/0.434, allocations: 27.75 kB / 0.5698 GB, free: 7.715 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000813/0.4348, allocations: 111.9 kB / 0.5699 GB, free: 7.605 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002962/0.4378, allocations: 1.601 MB / 0.5715 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.4506, allocations: 6.468 MB / 0.5778 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.4897, allocations: 30.6 MB / 0.6077 GB, free: 15.99 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004826/0.4946, allocations: 2.237 MB / 0.6099 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.4961, allocations: 1.141 MB / 0.611 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004019/0.4965, allocations: 323.5 kB / 0.6113 GB, free: 12.08 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.4966, allocations: 50.94 kB / 0.6113 GB, free: 12.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.558e-06/0.4966, allocations: 0 / 0.6113 GB, free: 12.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03825/0.5349, allocations: 12.06 MB / 0.6231 GB, free: 15.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.535, allocations: 192.6 kB / 0.6233 GB, free: 15.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006688/0.5417, allocations: 3.669 MB / 0.6269 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.542, allocations: 41.7 kB / 0.6269 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.5439, allocations: 2.698 MB / 0.6296 GB, free: 9.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006626/0.5446, allocations: 0.5545 MB / 0.6301 GB, free: 8.602 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001812/0.5464, allocations: 1.099 MB / 0.6312 GB, free: 7.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.651e-05/0.5465, allocations: 301.1 kB / 0.6315 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002721/0.5493, allocations: 1.74 MB / 0.6332 GB, free: 5.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005013/0.5543, allocations: 5.107 MB / 0.6382 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008178/0.5625, allocations: 7.396 MB / 0.6454 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.243e-05/0.5626, allocations: 36 kB / 0.6454 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01165/0.5742, allocations: 7.094 MB / 0.6523 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.955e-05/0.5744, allocations: 58.5 kB / 0.6524 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001482/0.5745, allocations: 120 kB / 0.6525 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/0.5761, allocations: 0.6447 MB / 0.6531 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/0.5797, allocations: 1.224 MB / 0.6543 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004739/0.5844, allocations: 4.056 MB / 0.6583 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003679/0.5881, allocations: 295.6 kB / 0.6586 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006081/0.5888, allocations: 335.9 kB / 0.6589 GB, free: 7.586 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002626/0.5914, allocations: 1.728 MB / 0.6606 GB, free: 5.844 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006049/0.592, allocations: 321.8 kB / 0.6609 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.596, allocations: 2.092 MB / 0.6629 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/0.596, allocations: 15.86 kB / 0.6629 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.596, allocations: 0 / 0.6629 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007575/0.5968, allocations: 378.8 kB / 0.6633 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005655/0.5974, allocations: 20 kB / 0.6633 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.5987, allocations: 83.89 kB / 0.6634 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.5989, allocations: 72.48 kB / 0.6635 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004812/0.6038, allocations: 2.678 MB / 0.6661 GB, free: 156 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004803/0.6086, allocations: 3.731 MB / 0.6697 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001281/0.6099, allocations: 0.9097 MB / 0.6706 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004112/0.614, allocations: 2.284 MB / 0.6729 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of Backend: time 5.31e-07/0.614, allocations: 0 / 0.6729 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008005/0.622, allocations: 3.562 MB / 0.6763 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01231/0.6343, allocations: 7.451 MB / 0.6836 GB, free: 14.15 MB / 0.545 GB Notification: Performance of Templates: time 0.06893/0.7033, allocations: 37.5 MB / 0.7202 GB, free: 8.723 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches