Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2417/0.2416, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 79.33 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1408, allocations: 62.45 MB / 480.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01105/0.1519, allocations: 8.91 MB / 489 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007744/0.1597, allocations: 3.555 MB / 492.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001393/0.1611, allocations: 47.88 kB / 492.6 MB, free: 8.688 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003444/0.1646, allocations: 1.654 MB / 494.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.1691, allocations: 1.545 MB / 495.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.1706, allocations: 0.5536 MB / 496.4 MB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00581/0.1764, allocations: 3.568 MB / 499.9 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.1801, allocations: 2.197 MB / 0.4904 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002114/0.1822, allocations: 1.086 MB / 0.4914 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002574/0.1848, allocations: 1.538 MB / 0.4929 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006993/0.1855, allocations: 220 kB / 0.4931 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.188, allocations: 1.092 MB / 0.4942 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001631/0.1897, allocations: 1.41 MB / 0.4956 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002307/0.192, allocations: 1.623 MB / 0.4972 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007266/0.1993, allocations: 5.183 MB / 0.5022 GB, free: 2.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.1993, allocations: 4 kB / 0.5022 GB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1993, allocations: 0 / 0.5022 GB, free: 2.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001451/0.1995, allocations: 0 / 0.5022 GB, free: 2.906 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.2439/0.4434, allocations: 3.656 MB / 0.5058 GB, free: 39.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.4435, allocations: 10.09 kB / 0.5058 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0174/0.4609, allocations: 2.328 MB / 0.5081 GB, free: 39.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005545/0.4665, allocations: 2.151 MB / 0.5102 GB, free: 38.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.4667, allocations: 156.5 kB / 0.5103 GB, free: 37.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009722/0.4677, allocations: 225.3 kB / 0.5105 GB, free: 37.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01293/0.4806, allocations: 7.402 MB / 0.5178 GB, free: 34.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.4807, allocations: 38.38 kB / 0.5178 GB, free: 34.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003502/0.4811, allocations: 110.8 kB / 0.5179 GB, free: 34.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002685/0.4838, allocations: 1.547 MB / 0.5194 GB, free: 33.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.4957, allocations: 6.318 MB / 0.5256 GB, free: 31.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03038/0.5261, allocations: 30.28 MB / 0.5552 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004537/0.5307, allocations: 2.248 MB / 0.5574 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.5323, allocations: 1.134 MB / 0.5585 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003976/0.5328, allocations: 323.6 kB / 0.5588 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.5328, allocations: 47 kB / 0.5588 GB, free: 12.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.145e-06/0.5328, allocations: 0 / 0.5588 GB, free: 12.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03795/0.5708, allocations: 11.8 MB / 0.5703 GB, free: 0.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.571, allocations: 192.6 kB / 0.5705 GB, free: 448 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005331/0.5763, allocations: 3.615 MB / 0.5741 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000275/0.5766, allocations: 41.7 kB / 0.5741 GB, free: 12.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/0.579, allocations: 2.545 MB / 0.5766 GB, free: 10.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008593/0.5798, allocations: 0.5209 MB / 0.5771 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001605/0.5815, allocations: 1.083 MB / 0.5782 GB, free: 8.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.5816, allocations: 301.1 kB / 0.5784 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002715/0.5843, allocations: 1.736 MB / 0.5801 GB, free: 6.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005718/0.5901, allocations: 5.092 MB / 0.5851 GB, free: 15.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009887/0.6, allocations: 7.366 MB / 0.5923 GB, free: 6.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.062e-05/0.6001, allocations: 32 kB / 0.5923 GB, free: 6.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01447/0.6145, allocations: 7.057 MB / 0.5992 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.308e-05/0.6147, allocations: 56 kB / 0.5993 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/0.6148, allocations: 120 kB / 0.5994 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001653/0.6164, allocations: 0.6448 MB / 0.6 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/0.6202, allocations: 1.22 MB / 0.6012 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.6253, allocations: 4.063 MB / 0.6052 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003683/0.629, allocations: 295.5 kB / 0.6055 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006368/0.6296, allocations: 336 kB / 0.6058 GB, free: 8.773 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.002655/0.6323, allocations: 1.697 MB / 0.6074 GB, free: 7.066 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006014/0.6329, allocations: 297.4 kB / 0.6077 GB, free: 6.773 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004019/0.6369, allocations: 2.095 MB / 0.6098 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.637, allocations: 12 kB / 0.6098 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.637, allocations: 4.109 kB / 0.6098 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.637, allocations: 11.91 kB / 0.6098 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/0.6479, allocations: 5.657 MB / 0.6153 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.648, allocations: 4 kB / 0.6153 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.649, allocations: 203.6 kB / 0.6155 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.6504, allocations: 484.3 kB / 0.616 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.6505, allocations: 24 kB / 0.616 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004359/0.6549, allocations: 3.433 MB / 0.6194 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.6549, allocations: 8.016 kB / 0.6194 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/0.6616, allocations: 4.163 MB / 0.6234 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.6627, allocations: 353.1 kB / 0.6238 GB, free: 6.043 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003252/0.663, allocations: 31.88 kB / 0.6238 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.6641, allocations: 79.73 kB / 0.6239 GB, free: 5.938 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.6644, allocations: 64.56 kB / 0.6239 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-05/0.6645, allocations: 36 kB / 0.624 GB, free: 5.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003665/0.6681, allocations: 2.252 MB / 0.6262 GB, free: 3.598 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6681, allocations: 4 kB / 0.6262 GB, free: 3.594 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00406/0.6722, allocations: 0.7876 MB / 0.6269 GB, free: 2.809 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.0003835/0.6726, allocations: 149.7 kB / 0.6271 GB, free: 2.656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007542/0.6802, allocations: 4.503 MB / 0.6315 GB, free: 14.18 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.6802, allocations: 4.062 kB / 0.6315 GB, free: 14.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001661/0.6819, allocations: 1.126 MB / 0.6326 GB, free: 13.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.6841, allocations: 369 kB / 0.6329 GB, free: 12.67 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.696, allocations: 7.15 MB / 0.6399 GB, free: 5.484 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/0.6989, allocations: 2.635 MB / 0.6425 GB, free: 2.82 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004131/0.703, allocations: 1.674 MB / 0.6441 GB, free: 1.145 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000603/0.7036, allocations: 203.4 kB / 0.6443 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7036, allocations: 4 kB / 0.6443 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of Templates: time 0.06002/0.7637, allocations: 29.15 MB / 0.6728 GB, free: 3.859 MB / 0.4981 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches