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.001141/0.001141, allocations: 112.9 kB / 18.45 MB, free: 4.598 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.001268/0.001268, allocations: 183 kB / 19.39 MB, free: 3.672 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.298/1.298, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2024/0.2024, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3347, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01017/0.3449, allocations: 9.032 MB / 0.5284 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008252/0.3532, allocations: 3.551 MB / 0.5319 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002797/0.356, allocations: 49.25 kB / 0.5319 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00403/0.3601, allocations: 1.675 MB / 0.5335 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00574/0.3659, allocations: 1.629 MB / 0.5351 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.3678, allocations: 0.5491 MB / 0.5357 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006073/0.3739, allocations: 3.591 MB / 0.5392 GB, free: 6.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003497/0.3774, allocations: 2.212 MB / 0.5413 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.3798, allocations: 1.119 MB / 0.5424 GB, free: 4.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002671/0.3825, allocations: 1.563 MB / 0.544 GB, free: 3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007961/0.3833, allocations: 227.9 kB / 0.5442 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.3858, allocations: 1.119 MB / 0.5453 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.3876, allocations: 1.461 MB / 0.5467 GB, free: 196 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002625/0.3902, allocations: 1.658 MB / 0.5483 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007102/0.3973, allocations: 5.556 MB / 0.5537 GB, free: 8.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3974, allocations: 0 / 0.5537 GB, free: 8.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3974, allocations: 0 / 0.5537 GB, free: 8.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.3975, allocations: 4 kB / 0.5537 GB, free: 8.941 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.008378/0.4059, allocations: 3.835 MB / 0.5575 GB, free: 5.031 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.406, allocations: 12.03 kB / 0.5575 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01448/0.4205, allocations: 2.382 MB / 0.5598 GB, free: 2.633 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/0.4257, allocations: 2.238 MB / 0.562 GB, free: 352 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.4259, allocations: 164.5 kB / 0.5622 GB, free: 184 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000888/0.4268, allocations: 216 kB / 0.5624 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.4399, allocations: 7.595 MB / 0.5698 GB, free: 7.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.4402, allocations: 31.75 kB / 0.5698 GB, free: 7.719 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007216/0.4409, allocations: 111.9 kB / 0.5699 GB, free: 7.609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002642/0.4436, allocations: 1.605 MB / 0.5715 GB, free: 6.004 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.4552, allocations: 6.48 MB / 0.5778 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03737/0.4926, allocations: 30.59 MB / 0.6077 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004493/0.4971, allocations: 2.233 MB / 0.6099 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.4986, allocations: 1.137 MB / 0.611 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003935/0.499, allocations: 323.5 kB / 0.6113 GB, free: 12.08 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.4991, allocations: 46.94 kB / 0.6113 GB, free: 12.03 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 6.081e-06/0.4991, allocations: 0 / 0.6113 GB, free: 12.03 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03523/0.5344, allocations: 12.06 MB / 0.6231 GB, free: 15.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.5345, allocations: 204.5 kB / 0.6233 GB, free: 15.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004616/0.5391, allocations: 3.665 MB / 0.6269 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.5393, allocations: 41.7 kB / 0.6269 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001795/0.5411, allocations: 2.694 MB / 0.6296 GB, free: 9.156 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005562/0.5417, allocations: 0.5545 MB / 0.6301 GB, free: 8.598 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001306/0.543, allocations: 1.095 MB / 0.6312 GB, free: 7.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.5431, allocations: 301.1 kB / 0.6315 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002455/0.5456, allocations: 1.744 MB / 0.6332 GB, free: 5.445 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004625/0.5502, allocations: 5.107 MB / 0.6382 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/0.5586, allocations: 7.394 MB / 0.6454 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-05/0.5587, allocations: 36 kB / 0.6454 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01162/0.5703, allocations: 7.096 MB / 0.6523 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/0.5704, allocations: 56 kB / 0.6524 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/0.5706, allocations: 120 kB / 0.6525 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/0.5721, allocations: 0.6449 MB / 0.6531 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/0.5756, allocations: 1.224 MB / 0.6543 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/0.5802, allocations: 4.063 MB / 0.6583 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/0.5841, allocations: 291.6 kB / 0.6586 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005764/0.5847, allocations: 332 kB / 0.6589 GB, free: 7.582 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.002985/0.5877, allocations: 1.729 MB / 0.6606 GB, free: 5.84 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/0.5883, allocations: 322.2 kB / 0.6609 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004112/0.5925, allocations: 2.092 MB / 0.6629 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/0.5925, allocations: 15.86 kB / 0.6629 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5925, allocations: 0 / 0.6629 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009144/0.5934, allocations: 382.8 kB / 0.6633 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006748/0.5941, allocations: 20 kB / 0.6633 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.5956, allocations: 75.89 kB / 0.6634 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.5959, allocations: 72.53 kB / 0.6635 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004763/0.6006, allocations: 2.679 MB / 0.6661 GB, free: 160 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005062/0.6057, allocations: 3.728 MB / 0.6697 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001202/0.6069, allocations: 0.9068 MB / 0.6706 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004357/0.6113, allocations: 2.284 MB / 0.6728 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of Backend: time 6.31e-07/0.6113, allocations: 0 / 0.6728 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009267/0.6206, allocations: 3.567 MB / 0.6763 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01429/0.6349, allocations: 7.45 MB / 0.6836 GB, free: 14.15 MB / 0.545 GB Notification: Performance of Templates: time 0.07108/0.706, allocations: 37.5 MB / 0.7202 GB, free: 8.727 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