Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_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.001407/0.001407, allocations: 108.3 kB / 17.04 MB, free: 5.797 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.001331/0.001332, allocations: 195 kB / 17.98 MB, free: 5.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2222/0.2222, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 64.77 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1122, allocations: 57.79 MB / 442 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009114/0.1213, allocations: 10 MB / 452 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008705/0.1301, allocations: 3.703 MB / 455.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.1319, allocations: 51.88 kB / 455.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003642/0.1356, allocations: 1.954 MB / 457.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004622/0.1403, allocations: 1.743 MB / 459.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.1416, allocations: 0.5614 MB / 460 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005275/0.1469, allocations: 3.751 MB / 463.7 MB, free: 316 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002869/0.1498, allocations: 2.546 MB / 466.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.1516, allocations: 1.277 MB / 467.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00214/0.1537, allocations: 1.826 MB / 469.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004489/0.1542, allocations: 276 kB / 469.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.1562, allocations: 1.151 MB / 470.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001488/0.1577, allocations: 1.687 MB / 472.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.1595, allocations: 1.941 MB / 474.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006082/0.1656, allocations: 6.4 MB / 480.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1657, allocations: 4 kB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1657, allocations: 0 / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.1658, allocations: 4 kB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.00775/0.1735, allocations: 4.195 MB / 485 MB, free: 10.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1736, allocations: 15.89 kB / 485.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01442/0.188, allocations: 2.437 MB / 487.5 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005378/0.1934, allocations: 2.448 MB / 489.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1936, allocations: 193.3 kB / 490.1 MB, free: 5.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005369/0.1941, allocations: 263.9 kB / 490.4 MB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.2064, allocations: 8.76 MB / 499.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.617e-05/0.2066, allocations: 35.69 kB / 499.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003457/0.2069, allocations: 127.9 kB / 499.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002895/0.2098, allocations: 1.837 MB / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/0.223, allocations: 7.473 MB / 0.4967 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3145/0.5375, allocations: 34.14 MB / 0.53 GB, free: 78.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00501/0.5426, allocations: 2.582 MB / 0.5325 GB, free: 77.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.5444, allocations: 1.187 MB / 0.5337 GB, free: 77.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003655/0.5448, allocations: 325.7 kB / 0.534 GB, free: 77.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.5448, allocations: 44.92 kB / 0.5341 GB, free: 77.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 3.977e-06/0.5448, allocations: 4.531 kB / 0.5341 GB, free: 77.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02772/0.5726, allocations: 9.811 MB / 0.5436 GB, free: 74.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.5727, allocations: 203.3 kB / 0.5438 GB, free: 74.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008471/0.5812, allocations: 3.963 MB / 0.5477 GB, free: 73.97 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000432/0.5817, allocations: 44.7 kB / 0.5478 GB, free: 73.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002538/0.5842, allocations: 2.953 MB / 0.5506 GB, free: 71.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009464/0.5852, allocations: 0.5409 MB / 0.5512 GB, free: 71.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001498/0.5867, allocations: 1.2 MB / 0.5523 GB, free: 70.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.352e-05/0.5868, allocations: 305.1 kB / 0.5526 GB, free: 70.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002325/0.5891, allocations: 1.806 MB / 0.5544 GB, free: 69.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004039/0.5932, allocations: 5.632 MB / 0.5599 GB, free: 64.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006758/0.6, allocations: 8.046 MB / 0.5677 GB, free: 57.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.335e-05/0.6001, allocations: 38.53 kB / 0.5678 GB, free: 57.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01238/0.6125, allocations: 7.594 MB / 0.5752 GB, free: 51.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.981e-05/0.6126, allocations: 64 kB / 0.5753 GB, free: 51.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.6127, allocations: 140 kB / 0.5754 GB, free: 51.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.6141, allocations: 0.6647 MB / 0.576 GB, free: 50.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0037/0.6178, allocations: 1.353 MB / 0.5774 GB, free: 49.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003851/0.6217, allocations: 4.098 MB / 0.5814 GB, free: 44.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004825/0.6265, allocations: 311.5 kB / 0.5817 GB, free: 44.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007742/0.6273, allocations: 368 kB / 0.582 GB, free: 44.17 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.00303/0.6304, allocations: 1.954 MB / 0.5839 GB, free: 42.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007839/0.6312, allocations: 323.8 kB / 0.5842 GB, free: 41.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003247/0.6344, allocations: 2.071 MB / 0.5863 GB, free: 39.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/0.6345, allocations: 15.94 kB / 0.5863 GB, free: 39.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.6345, allocations: 5.188 kB / 0.5863 GB, free: 39.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.6345, allocations: 3.984 kB / 0.5863 GB, free: 39.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.645, allocations: 5.799 MB / 0.5919 GB, free: 33.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.645, allocations: 4 kB / 0.5919 GB, free: 33.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000868/0.6459, allocations: 183.9 kB / 0.5921 GB, free: 33.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.6471, allocations: 489 kB / 0.5926 GB, free: 33.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.6472, allocations: 26.92 kB / 0.5926 GB, free: 33.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/0.6504, allocations: 3.453 MB / 0.596 GB, free: 29.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6504, allocations: 0 / 0.596 GB, free: 29.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005312/0.6557, allocations: 3.996 MB / 0.5999 GB, free: 25.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.6575, allocations: 0.5396 MB / 0.6004 GB, free: 25.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/0.6579, allocations: 20 kB / 0.6004 GB, free: 25.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.659, allocations: 63.92 kB / 0.6005 GB, free: 24.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.6592, allocations: 76.41 kB / 0.6006 GB, free: 24.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.6593, allocations: 47.45 kB / 0.6006 GB, free: 24.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003377/0.6627, allocations: 2.472 MB / 0.603 GB, free: 22.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6627, allocations: 0 / 0.603 GB, free: 22.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00537/0.6681, allocations: 0.8744 MB / 0.6039 GB, free: 21.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * 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.000423/0.6686, allocations: 149.7 kB / 0.604 GB, free: 21.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006579/0.6751, allocations: 4.31 MB / 0.6082 GB, free: 17.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6752, allocations: 0 / 0.6082 GB, free: 17.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.6764, allocations: 1.082 MB / 0.6093 GB, free: 16.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/0.679, allocations: 388.3 kB / 0.6097 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.6924, allocations: 7.852 MB / 0.6173 GB, free: 7.773 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/0.695, allocations: 2.956 MB / 0.6202 GB, free: 4.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003744/0.6988, allocations: 1.811 MB / 0.622 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005528/0.6993, allocations: 231.4 kB / 0.6222 GB, free: 2.754 MB / 414.1 MB Notification: Performance of SimCode: time 1.964e-06/0.6994, allocations: 0 / 0.6222 GB, free: 2.754 MB / 414.1 MB Notification: Performance of Templates: time 0.05504/0.7544, allocations: 25.76 MB / 0.6474 GB, free: 9.195 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches