Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001157, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 97.25 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3843/0.3843, allocations: 44.83 MB / 392.7 MB, free: 34.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 59.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3728, allocations: 62.02 MB / 0.5152 GB, free: 37.72 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02857/0.4014, allocations: 40.74 MB / 0.5549 GB, free: 8.598 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0217/0.4232, allocations: 8.878 MB / 0.5636 GB, free: 2.703 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009765/0.433, allocations: 173.2 kB / 0.5638 GB, free: 2.676 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004324/0.4373, allocations: 1.911 MB / 0.5656 GB, free: 1.797 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004995/0.4424, allocations: 1.515 MB / 0.5671 GB, free: 1.152 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.4443, allocations: 0.5291 MB / 0.5676 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008207/0.4525, allocations: 5.422 MB / 0.5729 GB, free: 14.27 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004139/0.4566, allocations: 2.452 MB / 0.5753 GB, free: 11.77 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002475/0.4591, allocations: 1.062 MB / 0.5764 GB, free: 10.71 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002903/0.4621, allocations: 1.807 MB / 0.5781 GB, free: 8.895 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007757/0.4629, allocations: 176 kB / 0.5783 GB, free: 8.723 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002808/0.4657, allocations: 1.115 MB / 0.5794 GB, free: 7.605 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002251/0.468, allocations: 1.543 MB / 0.5809 GB, free: 6.059 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.4708, allocations: 1.735 MB / 0.5826 GB, free: 4.312 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007335/0.4781, allocations: 5.685 MB / 0.5881 GB, free: 14.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4782, allocations: 0 / 0.5881 GB, free: 14.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4782, allocations: 0 / 0.5881 GB, free: 14.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001673/0.4783, allocations: 0 / 0.5881 GB, free: 14.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007858/0.4862, allocations: 3.975 MB / 0.592 GB, free: 10.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.4863, allocations: 8.031 kB / 0.592 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01641/0.5027, allocations: 2.402 MB / 0.5944 GB, free: 8.148 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006082/0.5088, allocations: 2.264 MB / 0.5966 GB, free: 5.832 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.509, allocations: 185 kB / 0.5968 GB, free: 5.648 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007163/0.5097, allocations: 244 kB / 0.597 GB, free: 5.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/0.523, allocations: 8.149 MB / 0.605 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.5232, allocations: 43.58 kB / 0.605 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003419/0.5236, allocations: 119.9 kB / 0.6051 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.5265, allocations: 1.699 MB / 0.6068 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/0.5395, allocations: 6.9 MB / 0.6135 GB, free: 3.848 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04047/0.58, allocations: 32.49 MB / 0.6452 GB, free: 2.359 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005543/0.5856, allocations: 2.473 MB / 0.6476 GB, free: 15.74 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.5876, allocations: 1.129 MB / 0.6488 GB, free: 14.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004298/0.588, allocations: 323.2 kB / 0.6491 GB, free: 14.23 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/0.5881, allocations: 42.56 kB / 0.6491 GB, free: 14.18 MB / 474.7 MB Notification: Performance of pre-optimization done (n=104): time 6.462e-06/0.5881, allocations: 0 / 0.6491 GB, free: 14.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=118): time 0.0222/0.6103, allocations: 9.264 MB / 0.6581 GB, free: 4.801 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.6104, allocations: 196.4 kB / 0.6583 GB, free: 4.562 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00521/0.6157, allocations: 3.808 MB / 0.6621 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.6159, allocations: 41.7 kB / 0.6621 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/0.6179, allocations: 2.789 MB / 0.6648 GB, free: 13.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006348/0.6185, allocations: 498 kB / 0.6653 GB, free: 13.39 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/0.6199, allocations: 1.142 MB / 0.6664 GB, free: 12.24 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.62, allocations: 301.1 kB / 0.6667 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/0.6224, allocations: 1.705 MB / 0.6684 GB, free: 10.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005104/0.6275, allocations: 5.334 MB / 0.6736 GB, free: 3.074 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2654/0.893, allocations: 7.602 MB / 0.681 GB, free: 123 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-05/0.8932, allocations: 37.66 kB / 0.681 GB, free: 123 MB / 490.7 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.009817/0.903, allocations: 7.188 MB / 0.688 GB, free: 120.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.038e-05/0.9031, allocations: 60.81 kB / 0.6881 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.9032, allocations: 128.9 kB / 0.6882 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.9046, allocations: 0.6669 MB / 0.6889 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/0.9075, allocations: 1.266 MB / 0.6901 GB, free: 120.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.9111, allocations: 3.788 MB / 0.6938 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/0.9141, allocations: 300 kB / 0.6941 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003302/0.9145, allocations: 356.1 kB / 0.6944 GB, free: 117.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (691): * Single equations (assignments): 687 * 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.001987/0.9165, allocations: 1.834 MB / 0.6962 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004244/0.9169, allocations: 306.9 kB / 0.6965 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003073/0.92, allocations: 1.848 MB / 0.6983 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.179e-05/0.92, allocations: 16.86 kB / 0.6983 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.92, allocations: 2.25 kB / 0.6983 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.9201, allocations: 4.359 kB / 0.6984 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008567/0.9286, allocations: 5.357 MB / 0.7036 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/0.9287, allocations: 1.688 kB / 0.7036 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007131/0.9294, allocations: 158.8 kB / 0.7037 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001326/0.9307, allocations: 486.7 kB / 0.7042 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.501e-05/0.9308, allocations: 24.98 kB / 0.7042 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003287/0.9341, allocations: 3.208 MB / 0.7074 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9341, allocations: 5.188 kB / 0.7074 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02634/0.9604, allocations: 18.04 MB / 0.725 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005132/0.961, allocations: 370.2 kB / 0.7253 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.9613, allocations: 23.81 kB / 0.7254 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009553/0.9622, allocations: 58.25 kB / 0.7254 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.9624, allocations: 64.73 kB / 0.7255 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.38e-05/0.9625, allocations: 31.61 kB / 0.7255 GB, free: 104.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002932/0.9655, allocations: 2.367 MB / 0.7278 GB, free: 102.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9655, allocations: 0 / 0.7278 GB, free: 102.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003867/0.9693, allocations: 1.065 MB / 0.7289 GB, free: 101.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003013/0.9697, allocations: 146.5 kB / 0.729 GB, free: 101.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004854/0.9745, allocations: 4.057 MB / 0.733 GB, free: 97.46 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.9745, allocations: 0 / 0.733 GB, free: 97.46 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.9756, allocations: 0.9934 MB / 0.7339 GB, free: 96.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.9775, allocations: 366.3 kB / 0.7343 GB, free: 96.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.9884, allocations: 9.937 MB / 0.744 GB, free: 86.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002028/0.9905, allocations: 2.848 MB / 0.7468 GB, free: 83.24 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003571/0.9941, allocations: 1.731 MB / 0.7484 GB, free: 81.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.9946, allocations: 219.3 kB / 0.7487 GB, free: 81.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.743e-06/0.9946, allocations: 0 / 0.7487 GB, free: 81.29 MB / 490.7 MB Notification: Performance of Templates: time 0.04296/1.038, allocations: 31.99 MB / 0.7799 GB, free: 49.44 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches