Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001374/0.001374, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2249/0.2249, allocations: 46.1 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001519, allocations: 74.58 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1267, allocations: 62.45 MB / 480.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01212/0.1389, allocations: 8.915 MB / 489.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007586/0.1465, allocations: 3.551 MB / 493.2 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.1481, allocations: 47.88 kB / 493.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003685/0.1518, allocations: 1.658 MB / 494.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004564/0.1564, allocations: 1.553 MB / 496.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001633/0.1581, allocations: 0.5497 MB / 497 MB, free: 4.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005527/0.1636, allocations: 3.572 MB / 0.4888 GB, free: 1.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003373/0.167, allocations: 2.193 MB / 0.4909 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.1693, allocations: 1.078 MB / 0.492 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0028/0.1721, allocations: 1.542 MB / 0.4935 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009027/0.1731, allocations: 220 kB / 0.4937 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002524/0.1756, allocations: 1.088 MB / 0.4948 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001991/0.1776, allocations: 1.41 MB / 0.4962 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002732/0.1804, allocations: 1.623 MB / 0.4977 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006957/0.1873, allocations: 5.183 MB / 0.5028 GB, free: 2.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1874, allocations: 3.938 kB / 0.5028 GB, free: 2.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1874, allocations: 4 kB / 0.5028 GB, free: 2.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000181/0.1876, allocations: 0 / 0.5028 GB, free: 2.961 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.2298/0.4173, allocations: 3.654 MB / 0.5064 GB, free: 39.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.4174, allocations: 9.031 kB / 0.5064 GB, free: 39.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01734/0.4348, allocations: 2.329 MB / 0.5087 GB, free: 39.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005998/0.4408, allocations: 2.151 MB / 0.5108 GB, free: 38.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.441, allocations: 159.9 kB / 0.5109 GB, free: 38.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.4422, allocations: 222.9 kB / 0.5111 GB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01393/0.4561, allocations: 7.405 MB / 0.5184 GB, free: 34.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.4563, allocations: 39.66 kB / 0.5184 GB, free: 34.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003589/0.4567, allocations: 107.8 kB / 0.5185 GB, free: 34.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002893/0.4596, allocations: 1.543 MB / 0.52 GB, free: 33.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01163/0.4712, allocations: 6.324 MB / 0.5262 GB, free: 31.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02682/0.4981, allocations: 30.29 MB / 0.5558 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004228/0.5023, allocations: 2.244 MB / 0.5579 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.5038, allocations: 1.141 MB / 0.5591 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003625/0.5042, allocations: 319.6 kB / 0.5594 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.5042, allocations: 43 kB / 0.5594 GB, free: 12.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.677e-06/0.5042, allocations: 0 / 0.5594 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03529/0.5395, allocations: 11.8 MB / 0.5709 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.5397, allocations: 188.6 kB / 0.5711 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004729/0.5444, allocations: 3.611 MB / 0.5746 GB, free: 12.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002498/0.5447, allocations: 41.7 kB / 0.5747 GB, free: 12.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/0.5463, allocations: 2.549 MB / 0.5772 GB, free: 10.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006199/0.547, allocations: 0.5248 MB / 0.5777 GB, free: 9.715 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/0.5483, allocations: 1.079 MB / 0.5787 GB, free: 8.625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.47e-05/0.5484, allocations: 301.1 kB / 0.579 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002504/0.5509, allocations: 1.74 MB / 0.5807 GB, free: 6.582 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004626/0.5556, allocations: 5.088 MB / 0.5857 GB, free: 15.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008426/0.564, allocations: 7.366 MB / 0.5929 GB, free: 6.785 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-05/0.5642, allocations: 36 kB / 0.5929 GB, free: 6.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.0125/0.5767, allocations: 7.058 MB / 0.5998 GB, free: 15.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.5768, allocations: 59.98 kB / 0.5999 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/0.577, allocations: 116 kB / 0.6 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.5788, allocations: 0.6452 MB / 0.6006 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003826/0.5826, allocations: 1.22 MB / 0.6018 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004685/0.5873, allocations: 4.062 MB / 0.6058 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/0.591, allocations: 299.5 kB / 0.6061 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007166/0.5917, allocations: 324 kB / 0.6064 GB, free: 8.836 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (659): * Single equations (assignments): 655 * 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.002901/0.5946, allocations: 1.701 MB / 0.608 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006837/0.5953, allocations: 292.2 kB / 0.6083 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004029/0.5994, allocations: 2.095 MB / 0.6103 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.275e-05/0.5994, allocations: 19.98 kB / 0.6104 GB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.5994, allocations: 8 kB / 0.6104 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.5995, allocations: 8.078 kB / 0.6104 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.6102, allocations: 5.649 MB / 0.6159 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.6103, allocations: 0 / 0.6159 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.6113, allocations: 207.7 kB / 0.6161 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.6128, allocations: 488.2 kB / 0.6166 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001589/0.613, allocations: 27.98 kB / 0.6166 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004257/0.6172, allocations: 3.43 MB / 0.6199 GB, free: 10.67 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.6173, allocations: 0 / 0.6199 GB, free: 10.67 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006307/0.6236, allocations: 4.163 MB / 0.624 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.6246, allocations: 349.2 kB / 0.6243 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006864/0.6253, allocations: 35.83 kB / 0.6244 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.6268, allocations: 71.84 kB / 0.6244 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.627, allocations: 76.56 kB / 0.6245 GB, free: 5.934 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.6272, allocations: 41.67 kB / 0.6246 GB, free: 5.895 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004101/0.6313, allocations: 2.248 MB / 0.6267 GB, free: 3.656 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6313, allocations: 288 / 0.6267 GB, free: 3.656 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004429/0.6357, allocations: 0.7877 MB / 0.6275 GB, free: 2.871 MB / 462.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.0004623/0.6362, allocations: 157.2 kB / 0.6277 GB, free: 2.715 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007708/0.6439, allocations: 4.503 MB / 0.6321 GB, free: 14.24 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/0.644, allocations: 0 / 0.6321 GB, free: 14.24 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.6458, allocations: 1.135 MB / 0.6332 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.6487, allocations: 360.3 kB / 0.6335 GB, free: 12.74 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/0.6654, allocations: 7.485 MB / 0.6408 GB, free: 5.211 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004293/0.6698, allocations: 2.623 MB / 0.6434 GB, free: 2.559 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.6709, allocations: 251.4 kB / 0.6436 GB, free: 2.312 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6709, allocations: 0 / 0.6436 GB, free: 2.312 MB / 478.1 MB Notification: Performance of Templates: time 0.09181/0.7628, allocations: 60.35 MB / 0.7026 GB, free: 5.988 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches