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.001217/0.001217, allocations: 119.9 kB / 18.41 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 80.2 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1285, allocations: 62.44 MB / 481.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01056/0.1391, allocations: 8.914 MB / 490.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007926/0.1471, allocations: 3.551 MB / 493.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001522/0.1486, allocations: 47.88 kB / 494 MB, free: 7.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.1519, allocations: 1.666 MB / 495.6 MB, free: 6.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004062/0.156, allocations: 1.545 MB / 497.2 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.1573, allocations: 0.5575 MB / 497.7 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005108/0.1624, allocations: 3.564 MB / 0.4896 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/0.1652, allocations: 2.189 MB / 0.4917 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.1669, allocations: 1.09 MB / 0.4928 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.1689, allocations: 1.53 MB / 0.4943 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004522/0.1694, allocations: 220 kB / 0.4945 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.1713, allocations: 1.104 MB / 0.4955 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001444/0.1728, allocations: 1.406 MB / 0.4969 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/0.1745, allocations: 1.611 MB / 0.4985 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.1802, allocations: 5.388 MB / 0.5037 GB, free: 2.004 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1802, allocations: 4 kB / 0.5038 GB, free: 2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1802, allocations: 0 / 0.5038 GB, free: 2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.866e-05/0.1803, allocations: 4 kB / 0.5038 GB, free: 1.996 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.232/0.4123, allocations: 3.655 MB / 0.5073 GB, free: 39.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.4124, allocations: 13.52 kB / 0.5073 GB, free: 39.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0148/0.4272, allocations: 2.324 MB / 0.5096 GB, free: 39.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007046/0.4343, allocations: 2.179 MB / 0.5117 GB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.4345, allocations: 160.6 kB / 0.5119 GB, free: 38.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005776/0.4351, allocations: 221.2 kB / 0.5121 GB, free: 38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/0.4473, allocations: 7.41 MB / 0.5193 GB, free: 34.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.418e-05/0.4474, allocations: 40.89 kB / 0.5194 GB, free: 34.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002715/0.4476, allocations: 111.4 kB / 0.5195 GB, free: 34.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002357/0.45, allocations: 1.534 MB / 0.521 GB, free: 33.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009517/0.4595, allocations: 6.318 MB / 0.5271 GB, free: 31.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02636/0.4859, allocations: 30.17 MB / 0.5566 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004335/0.4903, allocations: 2.248 MB / 0.5588 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.4918, allocations: 1.129 MB / 0.5599 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004314/0.4922, allocations: 319.6 kB / 0.5602 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.4923, allocations: 46.94 kB / 0.5603 GB, free: 12.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.307e-06/0.4923, allocations: 0 / 0.5603 GB, free: 12.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03268/0.525, allocations: 11.8 MB / 0.5718 GB, free: 300 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.5251, allocations: 200.5 kB / 0.572 GB, free: 56 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004803/0.5299, allocations: 3.599 MB / 0.5755 GB, free: 12.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001962/0.5301, allocations: 45.69 kB / 0.5755 GB, free: 12.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001802/0.532, allocations: 2.545 MB / 0.578 GB, free: 9.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005563/0.5325, allocations: 0.5209 MB / 0.5785 GB, free: 9.293 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001288/0.5338, allocations: 1.083 MB / 0.5796 GB, free: 8.199 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5339, allocations: 309.1 kB / 0.5799 GB, free: 7.895 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.5362, allocations: 1.732 MB / 0.5816 GB, free: 6.156 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004529/0.5407, allocations: 5.088 MB / 0.5865 GB, free: 15.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008255/0.549, allocations: 7.378 MB / 0.5937 GB, free: 6.344 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-05/0.5491, allocations: 33.12 kB / 0.5938 GB, free: 6.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01146/0.5606, allocations: 7.051 MB / 0.6007 GB, free: 15.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.874e-05/0.5607, allocations: 56 kB / 0.6007 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/0.5608, allocations: 125.1 kB / 0.6008 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/0.5623, allocations: 0.6369 MB / 0.6015 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/0.5655, allocations: 1.216 MB / 0.6026 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.5702, allocations: 4.063 MB / 0.6066 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/0.5734, allocations: 307.4 kB / 0.6069 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/0.5738, allocations: 324 kB / 0.6072 GB, free: 8.406 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.002369/0.5762, allocations: 1.701 MB / 0.6089 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.5767, allocations: 296.2 kB / 0.6092 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003606/0.5803, allocations: 2.091 MB / 0.6112 GB, free: 4.293 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.5803, allocations: 16 kB / 0.6112 GB, free: 4.277 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.5803, allocations: 4 kB / 0.6112 GB, free: 4.273 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.5803, allocations: 3.984 kB / 0.6112 GB, free: 4.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009551/0.5899, allocations: 5.639 MB / 0.6167 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.5899, allocations: 7.922 kB / 0.6167 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/0.5908, allocations: 199.8 kB / 0.6169 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.5921, allocations: 488.5 kB / 0.6174 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.863e-05/0.5922, allocations: 24 kB / 0.6174 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003854/0.5961, allocations: 3.429 MB / 0.6208 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5961, allocations: 3.938 kB / 0.6208 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005814/0.6019, allocations: 4.171 MB / 0.6248 GB, free: 6.059 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008972/0.6028, allocations: 357.2 kB / 0.6252 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.6031, allocations: 27.94 kB / 0.6252 GB, free: 5.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.6042, allocations: 67.91 kB / 0.6253 GB, free: 5.594 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.6044, allocations: 64.56 kB / 0.6253 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/0.6045, allocations: 39.98 kB / 0.6254 GB, free: 5.488 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003228/0.6077, allocations: 2.252 MB / 0.6276 GB, free: 3.246 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6077, allocations: 0 / 0.6276 GB, free: 3.246 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003916/0.6116, allocations: 0.78 MB / 0.6283 GB, free: 2.469 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.0003651/0.612, allocations: 156.2 kB / 0.6285 GB, free: 2.312 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007844/0.6199, allocations: 4.137 MB / 0.6325 GB, free: 14.19 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.6199, allocations: 1.125 kB / 0.6325 GB, free: 14.19 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.6217, allocations: 1.136 MB / 0.6336 GB, free: 13.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.6241, allocations: 359.4 kB / 0.634 GB, free: 12.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.6355, allocations: 7.075 MB / 0.6409 GB, free: 5.586 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002659/0.6382, allocations: 2.635 MB / 0.6435 GB, free: 2.922 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003681/0.6419, allocations: 1.674 MB / 0.6451 GB, free: 1.246 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005848/0.6425, allocations: 203.4 kB / 0.6453 GB, free: 1.047 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6425, allocations: 0 / 0.6453 GB, free: 1.047 MB / 478.1 MB Notification: Performance of Templates: time 0.05038/0.6929, allocations: 24.58 MB / 0.6693 GB, free: 8.543 MB / 0.4981 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 -s cvode -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