Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001127/0.001128, allocations: 192 kB / 18.55 MB, free: 4.566 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.306/1.306, allocations: 222.9 MB / 242.2 MB, free: 15.18 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.2146/0.2146, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.8 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1152, allocations: 60.82 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0112/0.1265, allocations: 9.024 MB / 478.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007582/0.1341, allocations: 3.554 MB / 481.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.1359, allocations: 51.88 kB / 481.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.1391, allocations: 1.674 MB / 483.6 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004337/0.1435, allocations: 1.588 MB / 485.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.145, allocations: 0.5574 MB / 485.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005192/0.1502, allocations: 3.587 MB / 489.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003387/0.1536, allocations: 2.22 MB / 491.5 MB, free: 7.992 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.1557, allocations: 1.109 MB / 492.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002903/0.1586, allocations: 1.557 MB / 494.2 MB, free: 5.316 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.1596, allocations: 224 kB / 494.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.1623, allocations: 1.123 MB / 495.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001483/0.1638, allocations: 1.449 MB / 497 MB, free: 2.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/0.1655, allocations: 1.654 MB / 498.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005345/0.1709, allocations: 5.347 MB / 0.4922 GB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1709, allocations: 3.938 kB / 0.4922 GB, free: 11.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1709, allocations: 0 / 0.4922 GB, free: 11.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.628e-05/0.171, allocations: 0 / 0.4922 GB, free: 11.49 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.006476/0.1775, allocations: 3.732 MB / 0.4958 GB, free: 7.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1776, allocations: 8.031 kB / 0.4958 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/0.193, allocations: 2.352 MB / 0.4981 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005366/0.1984, allocations: 2.202 MB / 0.5003 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.1985, allocations: 164.5 kB / 0.5004 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004703/0.199, allocations: 224 kB / 0.5006 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2764/0.4754, allocations: 7.587 MB / 0.508 GB, free: 43.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/0.4756, allocations: 37.73 kB / 0.5081 GB, free: 43.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000347/0.4759, allocations: 111.6 kB / 0.5082 GB, free: 43.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003627/0.4795, allocations: 1.597 MB / 0.5097 GB, free: 43.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01513/0.4947, allocations: 6.467 MB / 0.5161 GB, free: 41.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03417/0.5289, allocations: 30.66 MB / 0.546 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/0.5327, allocations: 2.241 MB / 0.5482 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.5338, allocations: 1.137 MB / 0.5493 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002857/0.5341, allocations: 330.9 kB / 0.5496 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.5341, allocations: 39 kB / 0.5496 GB, free: 11.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.256e-06/0.5341, allocations: 0 / 0.5496 GB, free: 11.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03115/0.5653, allocations: 11.88 MB / 0.5612 GB, free: 15.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5654, allocations: 192.6 kB / 0.5614 GB, free: 15.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/0.5714, allocations: 3.661 MB / 0.565 GB, free: 11.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004297/0.5719, allocations: 41.7 kB / 0.565 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002678/0.5745, allocations: 2.594 MB / 0.5676 GB, free: 9.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/0.5757, allocations: 0.5364 MB / 0.5681 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001756/0.5774, allocations: 1.079 MB / 0.5692 GB, free: 7.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002273/0.5777, allocations: 305.1 kB / 0.5694 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00347/0.5811, allocations: 1.74 MB / 0.5711 GB, free: 5.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00639/0.5875, allocations: 5.111 MB / 0.5761 GB, free: 14.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/0.5979, allocations: 7.401 MB / 0.5834 GB, free: 5.715 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/0.5981, allocations: 36 kB / 0.5834 GB, free: 5.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01477/0.6128, allocations: 7.078 MB / 0.5903 GB, free: 14.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.741e-05/0.613, allocations: 57 kB / 0.5904 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/0.6131, allocations: 120 kB / 0.5905 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001639/0.6148, allocations: 0.6447 MB / 0.5911 GB, free: 13.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003566/0.6183, allocations: 1.22 MB / 0.5923 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00481/0.6232, allocations: 4.067 MB / 0.5963 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/0.627, allocations: 295.4 kB / 0.5966 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006874/0.6277, allocations: 336 kB / 0.5969 GB, free: 7.727 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003188/0.6309, allocations: 1.729 MB / 0.5986 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006877/0.6316, allocations: 300.1 kB / 0.5988 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004029/0.6356, allocations: 2.092 MB / 0.6009 GB, free: 3.578 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-05/0.6356, allocations: 16 kB / 0.6009 GB, free: 3.562 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.6357, allocations: 1.25 kB / 0.6009 GB, free: 3.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-05/0.6357, allocations: 11.97 kB / 0.6009 GB, free: 3.551 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/0.6482, allocations: 5.724 MB / 0.6065 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.6483, allocations: 4 kB / 0.6065 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6493, allocations: 195.7 kB / 0.6067 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/0.6508, allocations: 492.3 kB / 0.6072 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001608/0.651, allocations: 20 kB / 0.6072 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004163/0.6551, allocations: 3.444 MB / 0.6106 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.6552, allocations: 0 / 0.6106 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006354/0.6615, allocations: 4.166 MB / 0.6146 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009198/0.6625, allocations: 365 kB / 0.615 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003356/0.6628, allocations: 24.06 kB / 0.615 GB, free: 4.863 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.6639, allocations: 71.89 kB / 0.6151 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.6641, allocations: 76.44 kB / 0.6151 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.873e-05/0.6642, allocations: 32 kB / 0.6152 GB, free: 4.688 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003374/0.6676, allocations: 2.288 MB / 0.6174 GB, free: 2.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6676, allocations: 0 / 0.6174 GB, free: 2.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004414/0.6721, allocations: 0.8098 MB / 0.6182 GB, free: 1.605 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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.0003643/0.6724, allocations: 157.7 kB / 0.6183 GB, free: 1.441 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007131/0.6796, allocations: 4.509 MB / 0.6227 GB, free: 12.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.6796, allocations: 0 / 0.6227 GB, free: 12.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.6812, allocations: 1.14 MB / 0.6239 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.6834, allocations: 361.5 kB / 0.6242 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.6949, allocations: 7.264 MB / 0.6313 GB, free: 4.148 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002474/0.6974, allocations: 2.685 MB / 0.6339 GB, free: 1.441 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004025/0.7014, allocations: 1.679 MB / 0.6356 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000668/0.7021, allocations: 211.4 kB / 0.6358 GB, free: 15.55 MB / 478.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7021, allocations: 0 / 0.6358 GB, free: 15.55 MB / 478.1 MB Notification: Performance of Templates: time 0.05288/0.755, allocations: 29.59 MB / 0.6647 GB, free: 2.043 MB / 494.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches