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.001623/0.001623, allocations: 105.6 kB / 17.03 MB, free: 6.098 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.001751/0.001751, allocations: 196.1 kB / 17.96 MB, free: 5.195 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.507/1.507, allocations: 205.1 MB / 223.8 MB, free: 12.24 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.2057/0.2057, allocations: 43.53 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.001537/0.001538, allocations: 74.16 kB / 384.2 MB, free: 56.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.1005, allocations: 57.8 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01027/0.1109, allocations: 9.989 MB / 452 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007649/0.1185, allocations: 3.703 MB / 455.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.1202, allocations: 51.88 kB / 455.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004005/0.1243, allocations: 1.958 MB / 457.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004433/0.1288, allocations: 1.735 MB / 459.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.1303, allocations: 0.5653 MB / 460 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005367/0.1357, allocations: 3.75 MB / 463.7 MB, free: 312 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004871/0.1406, allocations: 2.558 MB / 466.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003103/0.1438, allocations: 1.277 MB / 467.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003089/0.1469, allocations: 1.826 MB / 469.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007058/0.1476, allocations: 276 kB / 469.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.1496, allocations: 1.143 MB / 470.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00148/0.1511, allocations: 1.695 MB / 472.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.1532, allocations: 1.926 MB / 474.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006398/0.1596, allocations: 6.408 MB / 480.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1596, allocations: 4 kB / 480.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1596, allocations: 0 / 480.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001691/0.1598, allocations: 4 kB / 480.8 MB, free: 15.09 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.009425/0.1692, allocations: 4.199 MB / 485 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.1693, allocations: 11.89 kB / 485 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.1849, allocations: 2.445 MB / 487.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006909/0.1919, allocations: 2.444 MB / 489.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.1922, allocations: 197.3 kB / 490.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001039/0.1932, allocations: 260 kB / 490.4 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0139/0.2071, allocations: 8.756 MB / 499.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-05/0.2072, allocations: 39.69 kB / 499.2 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000402/0.2077, allocations: 127.9 kB / 499.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00289/0.2106, allocations: 1.833 MB / 0.4894 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/0.224, allocations: 7.483 MB / 0.4967 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2231/0.4471, allocations: 34.13 MB / 0.53 GB, free: 78.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004698/0.4519, allocations: 2.58 MB / 0.5325 GB, free: 78.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.4534, allocations: 1.184 MB / 0.5337 GB, free: 77.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/0.4537, allocations: 327.5 kB / 0.534 GB, free: 77.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.4538, allocations: 49.98 kB / 0.5341 GB, free: 77.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 3.596e-06/0.4538, allocations: 0 / 0.5341 GB, free: 77.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02236/0.4762, allocations: 9.809 MB / 0.5436 GB, free: 75.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.4763, allocations: 197.8 kB / 0.5438 GB, free: 75.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0049/0.4812, allocations: 3.968 MB / 0.5477 GB, free: 74.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001767/0.4814, allocations: 48.08 kB / 0.5477 GB, free: 74.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.4827, allocations: 2.943 MB / 0.5506 GB, free: 71.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003945/0.4831, allocations: 0.5497 MB / 0.5512 GB, free: 71.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.4841, allocations: 1.2 MB / 0.5523 GB, free: 70.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.986e-05/0.4842, allocations: 302.6 kB / 0.5526 GB, free: 70.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.4862, allocations: 1.805 MB / 0.5544 GB, free: 69.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003156/0.4894, allocations: 5.634 MB / 0.5599 GB, free: 64.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006166/0.4956, allocations: 8.046 MB / 0.5677 GB, free: 57.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.587e-05/0.4957, allocations: 37.88 kB / 0.5678 GB, free: 57.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01111/0.5068, allocations: 7.603 MB / 0.5752 GB, free: 51.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.212e-05/0.5069, allocations: 64 kB / 0.5753 GB, free: 51.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.507, allocations: 136 kB / 0.5754 GB, free: 51.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/0.5084, allocations: 0.6717 MB / 0.576 GB, free: 50.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003567/0.512, allocations: 1.353 MB / 0.5774 GB, free: 49.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.5156, allocations: 4.09 MB / 0.5814 GB, free: 45.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/0.5199, allocations: 311.5 kB / 0.5817 GB, free: 44.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006845/0.5206, allocations: 376 kB / 0.582 GB, free: 44.42 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.002314/0.5229, allocations: 1.944 MB / 0.5839 GB, free: 42.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005129/0.5234, allocations: 327.4 kB / 0.5842 GB, free: 42.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/0.5265, allocations: 2.065 MB / 0.5862 GB, free: 40.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.5266, allocations: 19.94 kB / 0.5863 GB, free: 40.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.5266, allocations: 0 / 0.5863 GB, free: 40.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.5266, allocations: 13.83 kB / 0.5863 GB, free: 40.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008713/0.5353, allocations: 5.798 MB / 0.5919 GB, free: 34.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.5354, allocations: 0 / 0.5919 GB, free: 34.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/0.5362, allocations: 191.8 kB / 0.5921 GB, free: 34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.5374, allocations: 488.2 kB / 0.5926 GB, free: 33.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.754e-05/0.5375, allocations: 28.69 kB / 0.5926 GB, free: 33.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.5404, allocations: 3.446 MB / 0.596 GB, free: 29.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5404, allocations: 0 / 0.596 GB, free: 29.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00504/0.5455, allocations: 4 MB / 0.5999 GB, free: 25.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.5471, allocations: 0.5358 MB / 0.6004 GB, free: 25.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003826/0.5475, allocations: 24 kB / 0.6004 GB, free: 25.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.5486, allocations: 67.91 kB / 0.6005 GB, free: 25.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.5488, allocations: 68.41 kB / 0.6006 GB, free: 25.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.542e-05/0.5489, allocations: 40.06 kB / 0.6006 GB, free: 25.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002921/0.5518, allocations: 2.472 MB / 0.603 GB, free: 22.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5519, allocations: 4.219 kB / 0.603 GB, free: 22.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004158/0.556, allocations: 0.8777 MB / 0.6039 GB, free: 21.79 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.0003236/0.5564, allocations: 144.7 kB / 0.604 GB, free: 21.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006014/0.5624, allocations: 4.314 MB / 0.6082 GB, free: 17.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.5624, allocations: 4 kB / 0.6082 GB, free: 17.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.5636, allocations: 1.08 MB / 0.6093 GB, free: 16.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.5657, allocations: 368.6 kB / 0.6096 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009612/0.5753, allocations: 7.857 MB / 0.6173 GB, free: 8.031 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/0.5776, allocations: 2.96 MB / 0.6202 GB, free: 5.051 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003158/0.5808, allocations: 1.811 MB / 0.622 GB, free: 3.234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004519/0.5812, allocations: 227.4 kB / 0.6222 GB, free: 3.012 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5812, allocations: 0 / 0.6222 GB, free: 3.012 MB / 414.1 MB Notification: Performance of Templates: time 0.04959/0.6308, allocations: 25.77 MB / 0.6473 GB, free: 9.461 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 gbode -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