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.001551/0.001551, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001625/0.001625, allocations: 188 kB / 18.71 MB, free: 4.387 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.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.2138/0.2138, allocations: 44.19 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 63.84 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4123, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009959/0.4223, allocations: 9.246 MB / 0.5279 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008516/0.4308, allocations: 3.587 MB / 0.5314 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.4328, allocations: 53.91 kB / 0.5315 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.4365, allocations: 1.926 MB / 0.5334 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004699/0.4413, allocations: 1.648 MB / 0.535 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.4426, allocations: 0.5674 MB / 0.5355 GB, free: 7.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005353/0.4479, allocations: 3.708 MB / 0.5391 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003336/0.4513, allocations: 2.459 MB / 0.5415 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.4539, allocations: 1.201 MB / 0.5427 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/0.4567, allocations: 1.68 MB / 0.5444 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006841/0.4574, allocations: 248 kB / 0.5446 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002533/0.46, allocations: 1.139 MB / 0.5457 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001993/0.462, allocations: 1.594 MB / 0.5473 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.4642, allocations: 1.794 MB / 0.549 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009104/0.4733, allocations: 5.944 MB / 0.5548 GB, free: 7.156 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.4734, allocations: 4 kB / 0.5548 GB, free: 7.152 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4734, allocations: 0 / 0.5548 GB, free: 7.152 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002056/0.4736, allocations: 0 / 0.5548 GB, free: 7.152 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.009619/0.4832, allocations: 3.967 MB / 0.5587 GB, free: 3.117 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4833, allocations: 8.031 kB / 0.5587 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01664/0.4999, allocations: 2.402 MB / 0.561 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007208/0.5072, allocations: 2.319 MB / 0.5633 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.5074, allocations: 181 kB / 0.5635 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.5087, allocations: 247.9 kB / 0.5637 GB, free: 13.9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/0.5225, allocations: 8.161 MB / 0.5717 GB, free: 5.102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-05/0.5226, allocations: 35.66 kB / 0.5717 GB, free: 5.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004277/0.5231, allocations: 115.9 kB / 0.5718 GB, free: 4.953 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002657/0.5257, allocations: 1.707 MB / 0.5735 GB, free: 3.246 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.5375, allocations: 6.9 MB / 0.5802 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03829/0.5758, allocations: 32.34 MB / 0.6118 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004654/0.5805, allocations: 2.473 MB / 0.6142 GB, free: 8.367 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.5819, allocations: 1.124 MB / 0.6153 GB, free: 7.23 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003654/0.5823, allocations: 323.3 kB / 0.6156 GB, free: 6.859 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/0.5824, allocations: 46.62 kB / 0.6157 GB, free: 6.805 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 2.966e-06/0.5824, allocations: 3.938 kB / 0.6157 GB, free: 6.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02341/0.6058, allocations: 9.256 MB / 0.6247 GB, free: 13.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.316e-05/0.6059, allocations: 200.4 kB / 0.6249 GB, free: 13.19 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004711/0.6107, allocations: 3.804 MB / 0.6286 GB, free: 9.391 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.6109, allocations: 41.7 kB / 0.6287 GB, free: 9.344 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.6129, allocations: 2.789 MB / 0.6314 GB, free: 6.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005506/0.6134, allocations: 0.4942 MB / 0.6319 GB, free: 6.016 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.6148, allocations: 1.138 MB / 0.633 GB, free: 4.867 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.615, allocations: 301.1 kB / 0.6333 GB, free: 4.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/0.6173, allocations: 1.709 MB / 0.635 GB, free: 2.855 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004727/0.6221, allocations: 5.334 MB / 0.6402 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00993/0.632, allocations: 7.589 MB / 0.6476 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001568/0.6322, allocations: 36 kB / 0.6476 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02015/0.6524, allocations: 7.195 MB / 0.6546 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.6526, allocations: 60 kB / 0.6547 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002329/0.6529, allocations: 132.3 kB / 0.6548 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/0.6549, allocations: 0.6564 MB / 0.6555 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/0.6593, allocations: 1.271 MB / 0.6567 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005059/0.6644, allocations: 4.078 MB / 0.6607 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004279/0.6687, allocations: 307.4 kB / 0.661 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/0.6697, allocations: 352 kB / 0.6613 GB, free: 4.082 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.00379/0.6735, allocations: 1.83 MB / 0.6631 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007425/0.6743, allocations: 312 kB / 0.6634 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/0.6783, allocations: 1.845 MB / 0.6652 GB, free: 72 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.084e-05/0.6783, allocations: 12 kB / 0.6652 GB, free: 60 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.6783, allocations: 4 kB / 0.6652 GB, free: 56 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.6784, allocations: 11.97 kB / 0.6652 GB, free: 44 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/0.6905, allocations: 5.333 MB / 0.6704 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.6906, allocations: 0 / 0.6704 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008306/0.6914, allocations: 163.7 kB / 0.6706 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/0.6928, allocations: 484.3 kB / 0.6711 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.693, allocations: 27.92 kB / 0.6711 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/0.697, allocations: 3.426 MB / 0.6744 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.6971, allocations: 4.062 kB / 0.6744 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005869/0.7029, allocations: 3.751 MB / 0.6781 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.7041, allocations: 357 kB / 0.6784 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006642/0.7047, allocations: 20 kB / 0.6785 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/0.7062, allocations: 55.92 kB / 0.6785 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.7064, allocations: 68.36 kB / 0.6786 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.543e-05/0.7065, allocations: 39.97 kB / 0.6786 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0046/0.7111, allocations: 2.366 MB / 0.6809 GB, free: 15.72 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7112, allocations: 0 / 0.6809 GB, free: 15.72 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005037/0.7162, allocations: 0.8242 MB / 0.6817 GB, free: 14.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005046/0.7167, allocations: 151 kB / 0.6819 GB, free: 14.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006994/0.7237, allocations: 4.063 MB / 0.6858 GB, free: 10.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.7238, allocations: 0 / 0.6858 GB, free: 10.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.7255, allocations: 1.006 MB / 0.6868 GB, free: 9.676 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/0.7289, allocations: 370.6 kB / 0.6872 GB, free: 9.312 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.7455, allocations: 7.366 MB / 0.6944 GB, free: 1.914 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004778/0.7503, allocations: 2.805 MB / 0.6971 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004488/0.7548, allocations: 1.727 MB / 0.6988 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008392/0.7557, allocations: 211.4 kB / 0.699 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of SimCode: time 8.71e-07/0.7557, allocations: 0 / 0.699 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of Templates: time 0.05513/0.8109, allocations: 25.96 MB / 0.7243 GB, free: 3.285 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/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