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.001436/0.001436, allocations: 110.6 kB / 18.46 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.001828/0.001828, allocations: 187.1 kB / 19.38 MB, free: 3.68 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.436/1.436, allocations: 222.9 MB / 243.1 MB, free: 15.15 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.2189/0.2189, allocations: 44.17 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001458, allocations: 55.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3738, allocations: 60.82 MB / 0.5196 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01014/0.384, allocations: 9.243 MB / 0.5286 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009235/0.3932, allocations: 3.595 MB / 0.5321 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.3952, allocations: 50.16 kB / 0.5321 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003835/0.399, allocations: 1.926 MB / 0.534 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004708/0.4038, allocations: 1.688 MB / 0.5357 GB, free: 8.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.4054, allocations: 0.5663 MB / 0.5362 GB, free: 7.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006141/0.4116, allocations: 3.709 MB / 0.5399 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004093/0.4157, allocations: 2.458 MB / 0.5423 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0026/0.4183, allocations: 1.205 MB / 0.5434 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003126/0.4214, allocations: 1.676 MB / 0.5451 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008805/0.4223, allocations: 248 kB / 0.5453 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002628/0.425, allocations: 1.139 MB / 0.5464 GB, free: 484 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002037/0.427, allocations: 1.594 MB / 0.548 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002962/0.43, allocations: 1.794 MB / 0.5497 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006778/0.4368, allocations: 5.952 MB / 0.5555 GB, free: 7.098 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4368, allocations: 4 kB / 0.5555 GB, free: 7.094 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4368, allocations: 0 / 0.5555 GB, free: 7.094 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001637/0.437, allocations: 0 / 0.5555 GB, free: 7.094 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007465/0.4445, allocations: 3.963 MB / 0.5594 GB, free: 3.062 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4445, allocations: 8.031 kB / 0.5594 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01647/0.461, allocations: 2.406 MB / 0.5618 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006906/0.4679, allocations: 2.323 MB / 0.564 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.4681, allocations: 181 kB / 0.5642 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008924/0.4691, allocations: 243.9 kB / 0.5644 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.4825, allocations: 8.157 MB / 0.5724 GB, free: 5.051 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-05/0.4826, allocations: 39.64 kB / 0.5724 GB, free: 5.012 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003259/0.4829, allocations: 119.9 kB / 0.5726 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002794/0.4857, allocations: 1.699 MB / 0.5742 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01175/0.4975, allocations: 6.9 MB / 0.581 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04266/0.5402, allocations: 32.34 MB / 0.6125 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005496/0.5457, allocations: 2.461 MB / 0.6149 GB, free: 8.328 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.5474, allocations: 1.132 MB / 0.616 GB, free: 7.184 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003833/0.5478, allocations: 331.4 kB / 0.6164 GB, free: 6.805 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.5478, allocations: 46.45 kB / 0.6164 GB, free: 6.75 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 4.318e-06/0.5478, allocations: 0 / 0.6164 GB, free: 6.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.0258/0.5736, allocations: 9.257 MB / 0.6254 GB, free: 13.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.5738, allocations: 196.4 kB / 0.6256 GB, free: 13.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006412/0.5802, allocations: 3.804 MB / 0.6293 GB, free: 9.348 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/0.5804, allocations: 45.69 kB / 0.6294 GB, free: 9.297 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002278/0.5827, allocations: 2.789 MB / 0.6321 GB, free: 6.469 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006681/0.5834, allocations: 0.4902 MB / 0.6326 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001886/0.5853, allocations: 1.142 MB / 0.6337 GB, free: 4.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.5854, allocations: 301.3 kB / 0.634 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/0.588, allocations: 1.705 MB / 0.6357 GB, free: 2.812 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004873/0.5929, allocations: 5.342 MB / 0.6409 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009827/0.6027, allocations: 7.583 MB / 0.6483 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000144/0.6029, allocations: 36 kB / 0.6483 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01428/0.6172, allocations: 7.199 MB / 0.6554 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.6174, allocations: 64.25 kB / 0.6554 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/0.6175, allocations: 128 kB / 0.6555 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.6192, allocations: 0.6642 MB / 0.6562 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/0.6231, allocations: 1.263 MB / 0.6574 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004948/0.628, allocations: 4.07 MB / 0.6614 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004082/0.6321, allocations: 315.3 kB / 0.6617 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007505/0.6329, allocations: 348 kB / 0.662 GB, free: 4.035 MB / 0.5137 GB 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.002989/0.6359, allocations: 1.842 MB / 0.6638 GB, free: 2.18 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006253/0.6365, allocations: 304 kB / 0.6641 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003685/0.6402, allocations: 1.845 MB / 0.6659 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.6403, allocations: 7.984 kB / 0.6659 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.6403, allocations: 112 / 0.6659 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008829/0.6412, allocations: 364.9 kB / 0.6663 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000667/0.6418, allocations: 19.98 kB / 0.6663 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.6432, allocations: 67.91 kB / 0.6664 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.6434, allocations: 68.41 kB / 0.6664 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004394/0.6478, allocations: 2.422 MB / 0.6688 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00437/0.6522, allocations: 3.339 MB / 0.672 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001111/0.6533, allocations: 0.7855 MB / 0.6728 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004733/0.6581, allocations: 2.366 MB / 0.6751 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of Backend: time 9.12e-07/0.6581, allocations: 4 kB / 0.6751 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01034/0.6685, allocations: 3.587 MB / 0.6786 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01491/0.6834, allocations: 7.717 MB / 0.6862 GB, free: 11.2 MB / 0.545 GB Notification: Performance of Templates: time 0.06976/0.7532, allocations: 36.39 MB / 0.7217 GB, free: 6.891 MB / 0.5762 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