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.001365/0.001365, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.001438/0.001438, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.486/1.486, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.219/0.219, allocations: 43.52 MB / 314.6 MB, free: 0.5273 MB / 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.00174/0.00174, allocations: 70.56 kB / 383.4 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1025, allocations: 57.79 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009583/0.1122, allocations: 10.01 MB / 451.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008163/0.1204, allocations: 3.696 MB / 454.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.1225, allocations: 51.88 kB / 454.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004253/0.1268, allocations: 1.966 MB / 456.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005007/0.1319, allocations: 1.735 MB / 458.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.1335, allocations: 0.5653 MB / 459.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005722/0.1393, allocations: 3.735 MB / 462.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003968/0.1433, allocations: 2.55 MB / 465.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.1457, allocations: 1.273 MB / 466.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.1486, allocations: 1.842 MB / 468.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001178/0.1498, allocations: 272 kB / 468.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003947/0.1538, allocations: 1.143 MB / 470 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003097/0.1569, allocations: 1.699 MB / 471.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00364/0.1606, allocations: 1.926 MB / 473.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007615/0.1682, allocations: 6.172 MB / 479.8 MB, free: 104 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.1683, allocations: 4 kB / 479.8 MB, free: 100 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1683, allocations: 0 / 479.8 MB, free: 100 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001962/0.1685, allocations: 0 / 479.8 MB, free: 100 kB / 350.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.009228/0.1777, allocations: 4.199 MB / 484 MB, free: 11.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1778, allocations: 15.89 kB / 484 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01705/0.1949, allocations: 2.441 MB / 486.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.2008, allocations: 2.412 MB / 488.9 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.201, allocations: 197.3 kB / 489.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001015/0.202, allocations: 260 kB / 489.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/0.2165, allocations: 8.764 MB / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.2167, allocations: 35.73 kB / 498.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.2171, allocations: 127.9 kB / 498.3 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003066/0.2201, allocations: 1.844 MB / 0.4884 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.2341, allocations: 7.472 MB / 0.4957 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/0.2761, allocations: 34.29 MB / 0.5292 GB, free: 236 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2259/0.502, allocations: 2.573 MB / 0.5317 GB, free: 86.35 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.504, allocations: 1.186 MB / 0.5328 GB, free: 86.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003368/0.5043, allocations: 323.5 kB / 0.5331 GB, free: 86.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.5044, allocations: 48.19 kB / 0.5332 GB, free: 86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.238e-06/0.5044, allocations: 0 / 0.5332 GB, free: 86 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02493/0.5293, allocations: 9.814 MB / 0.5428 GB, free: 83.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.882e-05/0.5295, allocations: 193.2 kB / 0.543 GB, free: 82.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005779/0.5352, allocations: 3.971 MB / 0.5468 GB, free: 81.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002756/0.5356, allocations: 48.12 kB / 0.5469 GB, free: 81.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/0.5371, allocations: 2.948 MB / 0.5498 GB, free: 79.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004943/0.5376, allocations: 0.5413 MB / 0.5503 GB, free: 78.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001175/0.5387, allocations: 1.203 MB / 0.5515 GB, free: 78.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.789e-05/0.5388, allocations: 308.8 kB / 0.5518 GB, free: 77.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.541, allocations: 1.807 MB / 0.5535 GB, free: 77.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/0.5445, allocations: 5.631 MB / 0.559 GB, free: 71.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007076/0.5516, allocations: 8.05 MB / 0.5669 GB, free: 62.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/0.5518, allocations: 40 kB / 0.5669 GB, free: 62.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0125/0.5643, allocations: 7.599 MB / 0.5743 GB, free: 55.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.838e-05/0.5644, allocations: 64.94 kB / 0.5744 GB, free: 55.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001276/0.5645, allocations: 136 kB / 0.5745 GB, free: 54.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.5661, allocations: 0.6643 MB / 0.5752 GB, free: 54.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.57, allocations: 1.357 MB / 0.5765 GB, free: 52.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003847/0.5739, allocations: 4.094 MB / 0.5805 GB, free: 48.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004707/0.5786, allocations: 315.4 kB / 0.5808 GB, free: 48.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009946/0.5796, allocations: 371.9 kB / 0.5812 GB, free: 48.06 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.003218/0.5829, allocations: 1.946 MB / 0.5831 GB, free: 46.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/0.5837, allocations: 327.8 kB / 0.5834 GB, free: 45.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.5871, allocations: 2.073 MB / 0.5854 GB, free: 43.69 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-05/0.5872, allocations: 12 kB / 0.5854 GB, free: 43.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.5872, allocations: 8 kB / 0.5854 GB, free: 43.67 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.5872, allocations: 7.922 kB / 0.5854 GB, free: 43.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009699/0.5969, allocations: 5.804 MB / 0.5911 GB, free: 37.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/0.597, allocations: 4 kB / 0.5911 GB, free: 37.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.5979, allocations: 187.9 kB / 0.5913 GB, free: 37.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001227/0.5991, allocations: 484.2 kB / 0.5917 GB, free: 37.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.5992, allocations: 27.98 kB / 0.5918 GB, free: 37.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003071/0.6023, allocations: 3.457 MB / 0.5951 GB, free: 33.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6023, allocations: 64 / 0.5951 GB, free: 33.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005192/0.6075, allocations: 4 MB / 0.599 GB, free: 29.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/0.6089, allocations: 0.5358 MB / 0.5996 GB, free: 28.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004675/0.6093, allocations: 27.94 kB / 0.5996 GB, free: 28.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.6105, allocations: 63.98 kB / 0.5997 GB, free: 28.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.6107, allocations: 72.41 kB / 0.5997 GB, free: 28.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.259e-05/0.6108, allocations: 43.27 kB / 0.5998 GB, free: 28.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003172/0.614, allocations: 2.472 MB / 0.6022 GB, free: 26.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.614, allocations: 0 / 0.6022 GB, free: 26.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00483/0.6189, allocations: 0.8762 MB / 0.603 GB, free: 25.4 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.0004004/0.6193, allocations: 153.9 kB / 0.6032 GB, free: 25.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006526/0.6258, allocations: 4.661 MB / 0.6077 GB, free: 20.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.6259, allocations: 0 / 0.6077 GB, free: 20.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.6272, allocations: 1.079 MB / 0.6088 GB, free: 19.53 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00232/0.6295, allocations: 378.4 kB / 0.6092 GB, free: 19.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/0.6413, allocations: 8.332 MB / 0.6173 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002532/0.6439, allocations: 2.944 MB / 0.6202 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008473/0.6447, allocations: 271.4 kB / 0.6204 GB, free: 7.574 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6448, allocations: 0 / 0.6204 GB, free: 7.574 MB / 414.1 MB Notification: Performance of Templates: time 0.09674/0.7415, allocations: 67.51 MB / 0.6864 GB, free: 4.051 MB / 478.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 -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