Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001909/0.001909, allocations: 114.3 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002435/0.002435, allocations: 214.8 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.917/2.917, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.442/0.442, allocations: 46.1 MB / 345 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 76.2 kB / 482 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7637/0.7661, allocations: 62.43 MB / 0.5317 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02413/0.7903, allocations: 8.935 MB / 0.5404 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.8037, allocations: 3.543 MB / 0.5438 GB, free: 3.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003482/0.8072, allocations: 51.19 kB / 0.5439 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006581/0.8138, allocations: 1.66 MB / 0.5455 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008724/0.8227, allocations: 1.579 MB / 0.547 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002939/0.8256, allocations: 0.5602 MB / 0.5476 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01025/0.8359, allocations: 3.573 MB / 0.5511 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006624/0.8427, allocations: 2.188 MB / 0.5532 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003665/0.8464, allocations: 1.098 MB / 0.5543 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003919/0.8504, allocations: 1.53 MB / 0.5558 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.8518, allocations: 223.9 kB / 0.556 GB, free: 8.738 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004564/0.8564, allocations: 1.1 MB / 0.5571 GB, free: 7.637 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002955/0.8594, allocations: 1.422 MB / 0.5585 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005859/0.8653, allocations: 1.611 MB / 0.56 GB, free: 4.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01253/0.8779, allocations: 5.404 MB / 0.5653 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.878, allocations: 0 / 0.5653 GB, free: 15.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.307e-06/0.878, allocations: 0 / 0.5653 GB, free: 15.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002695/0.8783, allocations: 0 / 0.5653 GB, free: 15.16 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.02045/0.8988, allocations: 3.761 MB / 0.569 GB, free: 11.33 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.424e-05/0.8989, allocations: 8.031 kB / 0.569 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03186/0.9308, allocations: 2.35 MB / 0.5713 GB, free: 8.965 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.9419, allocations: 2.187 MB / 0.5734 GB, free: 6.727 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004179/0.9424, allocations: 160.5 kB / 0.5736 GB, free: 6.566 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.9446, allocations: 223.9 kB / 0.5738 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04149/0.9861, allocations: 7.41 MB / 0.581 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003376/0.9866, allocations: 35.7 kB / 0.5811 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001704/0.9883, allocations: 107.9 kB / 0.5812 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005421/0.9938, allocations: 1.539 MB / 0.5827 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04881/1.043, allocations: 6.315 MB / 0.5888 GB, free: 6.305 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08489/1.128, allocations: 30.24 MB / 0.6184 GB, free: 7.145 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009635/1.137, allocations: 2.239 MB / 0.6206 GB, free: 4.758 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005501/1.143, allocations: 1.137 MB / 0.6217 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00081/1.144, allocations: 319.5 kB / 0.622 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.096e-05/1.144, allocations: 43 kB / 0.622 GB, free: 3.191 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 1.15e-05/1.144, allocations: 0 / 0.622 GB, free: 3.191 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.09801/1.242, allocations: 12 MB / 0.6337 GB, free: 7.066 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/1.242, allocations: 196.6 kB / 0.6339 GB, free: 6.832 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009006/1.251, allocations: 3.604 MB / 0.6374 GB, free: 3.227 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005466/1.252, allocations: 45.7 kB / 0.6375 GB, free: 3.176 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00816/1.26, allocations: 2.651 MB / 0.6401 GB, free: 0.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001397/1.261, allocations: 0.5622 MB / 0.6406 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002817/1.264, allocations: 1.091 MB / 0.6417 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000181/1.264, allocations: 309.1 kB / 0.642 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004618/1.269, allocations: 1.732 MB / 0.6437 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0106/1.28, allocations: 5.088 MB / 0.6486 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/1.295, allocations: 7.363 MB / 0.6558 GB, free: 12.99 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003187/1.295, allocations: 32 kB / 0.6559 GB, free: 12.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.03423/1.329, allocations: 7.071 MB / 0.6628 GB, free: 5.883 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002052/1.33, allocations: 62.41 kB / 0.6628 GB, free: 5.824 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002596/1.33, allocations: 124 kB / 0.6629 GB, free: 5.703 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006879/1.337, allocations: 0.6369 MB / 0.6636 GB, free: 5.062 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008353/1.345, allocations: 1.224 MB / 0.6648 GB, free: 3.836 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009804/1.355, allocations: 4.06 MB / 0.6687 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01579/1.371, allocations: 299.5 kB / 0.669 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/1.373, allocations: 327.9 kB / 0.6693 GB, free: 15.02 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (659): * Single equations (assignments): 655 * 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.006929/1.38, allocations: 1.709 MB / 0.671 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/1.382, allocations: 309.9 kB / 0.6713 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00851/1.39, allocations: 2.08 MB / 0.6733 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.779e-05/1.39, allocations: 7.984 kB / 0.6733 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/1.39, allocations: 4 kB / 0.6733 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/1.392, allocations: 374.8 kB / 0.6737 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001987/1.394, allocations: 19.94 kB / 0.6737 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003095/1.397, allocations: 75.89 kB / 0.6738 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004499/1.398, allocations: 72.55 kB / 0.6738 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01047/1.408, allocations: 2.67 MB / 0.6764 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0111/1.419, allocations: 3.734 MB / 0.6801 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002214/1.422, allocations: 0.903 MB / 0.681 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008688/1.43, allocations: 2.252 MB / 0.6832 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of Backend: time 2.024e-06/1.43, allocations: 0 / 0.6832 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01615/1.447, allocations: 3.549 MB / 0.6866 GB, free: 13.21 MB / 0.545 GB Notification: Performance of SimCode: time 0.02365/1.47, allocations: 7.322 MB / 0.6938 GB, free: 5.824 MB / 0.545 GB Notification: Performance of Templates: time 0.142/1.612, allocations: 37.01 MB / 0.7299 GB, free: 0.8789 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches