Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 118.9 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1962/0.1962, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 79.88 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2886, allocations: 62.42 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009591/0.2982, allocations: 9.051 MB / 0.5405 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.3051, allocations: 3.575 MB / 0.544 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.3065, allocations: 48.22 kB / 0.544 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003785/0.3103, allocations: 1.91 MB / 0.5459 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003978/0.3143, allocations: 1.574 MB / 0.5474 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001366/0.3157, allocations: 0.5727 MB / 0.548 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004918/0.3207, allocations: 3.651 MB / 0.5516 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003184/0.3239, allocations: 2.427 MB / 0.5539 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.3257, allocations: 1.156 MB / 0.5551 GB, free: 9.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002381/0.3281, allocations: 1.643 MB / 0.5567 GB, free: 8.012 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006918/0.3288, allocations: 240 kB / 0.5569 GB, free: 7.777 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002288/0.3311, allocations: 1.123 MB / 0.558 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.3329, allocations: 1.512 MB / 0.5595 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.3351, allocations: 1.716 MB / 0.5611 GB, free: 3.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005505/0.3406, allocations: 5.684 MB / 0.5667 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3406, allocations: 0 / 0.5667 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3406, allocations: 0 / 0.5667 GB, free: 13.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.383e-05/0.3407, allocations: 0 / 0.5667 GB, free: 13.71 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.006508/0.3472, allocations: 3.834 MB / 0.5704 GB, free: 9.805 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3473, allocations: 8.031 kB / 0.5704 GB, free: 9.797 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01397/0.3612, allocations: 2.344 MB / 0.5727 GB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00467/0.3659, allocations: 2.249 MB / 0.5749 GB, free: 5.145 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.3661, allocations: 176.8 kB / 0.5751 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007628/0.3669, allocations: 243.9 kB / 0.5753 GB, free: 4.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.3784, allocations: 7.783 MB / 0.5829 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.3786, allocations: 35.66 kB / 0.583 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004801/0.3791, allocations: 123.9 kB / 0.5831 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002408/0.3815, allocations: 1.582 MB / 0.5846 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/0.3929, allocations: 6.593 MB / 0.5911 GB, free: 3.953 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03578/0.4287, allocations: 31.61 MB / 0.6219 GB, free: 3.359 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004746/0.4335, allocations: 2.478 MB / 0.6243 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.435, allocations: 1.127 MB / 0.6254 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003343/0.4353, allocations: 335.2 kB / 0.6258 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.4354, allocations: 50.5 kB / 0.6258 GB, free: 15.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.138e-06/0.4354, allocations: 0 / 0.6258 GB, free: 15.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02276/0.4581, allocations: 9.139 MB / 0.6347 GB, free: 5.906 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.4582, allocations: 188.5 kB / 0.6349 GB, free: 5.676 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/0.4633, allocations: 3.751 MB / 0.6386 GB, free: 1.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.4634, allocations: 41.7 kB / 0.6386 GB, free: 1.883 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.4652, allocations: 2.7 MB / 0.6413 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004468/0.4657, allocations: 0.4902 MB / 0.6417 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001367/0.467, allocations: 1.122 MB / 0.6428 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4671, allocations: 305.1 kB / 0.6431 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.4696, allocations: 1.689 MB / 0.6448 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004611/0.4742, allocations: 5.263 MB / 0.6499 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007506/0.4817, allocations: 7.508 MB / 0.6572 GB, free: 11.18 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.218e-05/0.4818, allocations: 36 kB / 0.6573 GB, free: 11.14 MB / 0.5138 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01108/0.4929, allocations: 7.118 MB / 0.6642 GB, free: 4.012 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.493, allocations: 63.94 kB / 0.6643 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/0.4932, allocations: 124 kB / 0.6644 GB, free: 3.828 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/0.4947, allocations: 0.6604 MB / 0.6651 GB, free: 3.164 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/0.4981, allocations: 1.251 MB / 0.6663 GB, free: 1.91 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00452/0.5027, allocations: 4.07 MB / 0.6703 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/0.5061, allocations: 303.5 kB / 0.6705 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006427/0.5067, allocations: 344.4 kB / 0.6709 GB, free: 13.07 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (682): * Single equations (assignments): 678 * 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.00265/0.5094, allocations: 1.775 MB / 0.6726 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005754/0.51, allocations: 300.1 kB / 0.6729 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.5134, allocations: 1.848 MB / 0.6747 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.5134, allocations: 7.922 kB / 0.6747 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5135, allocations: 0 / 0.6747 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/0.5141, allocations: 361 kB / 0.675 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/0.5146, allocations: 20.05 kB / 0.6751 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.5157, allocations: 67.84 kB / 0.6751 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.5159, allocations: 72.44 kB / 0.6752 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003918/0.5199, allocations: 2.421 MB / 0.6776 GB, free: 6.148 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003855/0.5237, allocations: 3.342 MB / 0.6808 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009722/0.5247, allocations: 0.7774 MB / 0.6816 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003677/0.5284, allocations: 2.337 MB / 0.6839 GB, free: 15.68 MB / 0.545 GB Notification: Performance of Backend: time 4.41e-07/0.5284, allocations: 0 / 0.6839 GB, free: 15.68 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007225/0.5356, allocations: 3.551 MB / 0.6873 GB, free: 12.14 MB / 0.545 GB Notification: Performance of SimCode: time 0.01189/0.5476, allocations: 7.466 MB / 0.6946 GB, free: 4.625 MB / 0.545 GB Notification: Performance of Templates: time 0.06294/0.6105, allocations: 35.68 MB / 0.7295 GB, free: 1.004 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches