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.001335/0.001335, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2457/0.2457, allocations: 46.12 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 85.44 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1404, allocations: 62.44 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01138/0.1518, allocations: 8.916 MB / 489 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008291/0.1601, allocations: 3.551 MB / 492.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.162, allocations: 47.88 kB / 492.6 MB, free: 8.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.1656, allocations: 1.662 MB / 494.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007411/0.1731, allocations: 1.549 MB / 495.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.175, allocations: 0.5458 MB / 496.4 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006177/0.1812, allocations: 3.564 MB / 499.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002967/0.1842, allocations: 2.197 MB / 0.4904 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001868/0.1861, allocations: 1.086 MB / 0.4914 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.1885, allocations: 1.538 MB / 0.4929 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006172/0.1891, allocations: 220 kB / 0.4931 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002218/0.1914, allocations: 1.096 MB / 0.4942 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001598/0.193, allocations: 1.406 MB / 0.4956 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002051/0.195, allocations: 1.619 MB / 0.4972 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006802/0.2019, allocations: 5.183 MB / 0.5022 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2019, allocations: 3.938 kB / 0.5022 GB, free: 2.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2019, allocations: 0 / 0.5022 GB, free: 2.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001645/0.2021, allocations: 0 / 0.5022 GB, free: 2.871 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.2438/0.4458, allocations: 3.658 MB / 0.5058 GB, free: 39.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.418e-05/0.4459, allocations: 9.453 kB / 0.5058 GB, free: 39.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01692/0.4629, allocations: 2.325 MB / 0.5081 GB, free: 39.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005537/0.4684, allocations: 2.148 MB / 0.5102 GB, free: 38.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.4686, allocations: 164.5 kB / 0.5103 GB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007907/0.4694, allocations: 221.2 kB / 0.5106 GB, free: 38.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.4831, allocations: 7.409 MB / 0.5178 GB, free: 34.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.4833, allocations: 49.2 kB / 0.5178 GB, free: 34.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/0.4836, allocations: 103.3 kB / 0.5179 GB, free: 34.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002824/0.4865, allocations: 1.547 MB / 0.5194 GB, free: 34.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/0.4988, allocations: 6.313 MB / 0.5256 GB, free: 31.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02879/0.5276, allocations: 30.29 MB / 0.5552 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004637/0.5323, allocations: 2.242 MB / 0.5574 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.5341, allocations: 1.135 MB / 0.5585 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004524/0.5346, allocations: 323.6 kB / 0.5588 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.5346, allocations: 43 kB / 0.5588 GB, free: 12.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 4.198e-06/0.5347, allocations: 0 / 0.5588 GB, free: 12.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03796/0.5726, allocations: 11.81 MB / 0.5704 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001925/0.5729, allocations: 196.6 kB / 0.5706 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/0.58, allocations: 3.607 MB / 0.5741 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004039/0.5805, allocations: 41.7 kB / 0.5741 GB, free: 12.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002215/0.5827, allocations: 2.542 MB / 0.5766 GB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008274/0.5835, allocations: 0.5287 MB / 0.5771 GB, free: 9.758 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.585, allocations: 1.075 MB / 0.5782 GB, free: 8.672 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.5852, allocations: 301.1 kB / 0.5785 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002862/0.5881, allocations: 1.742 MB / 0.5802 GB, free: 6.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00618/0.5943, allocations: 5.088 MB / 0.5851 GB, free: 15.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/0.6052, allocations: 7.374 MB / 0.5923 GB, free: 6.824 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000131/0.6054, allocations: 36 kB / 0.5924 GB, free: 6.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01662/0.622, allocations: 7.053 MB / 0.5992 GB, free: 15.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.6222, allocations: 56 kB / 0.5993 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/0.6225, allocations: 116 kB / 0.5994 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001944/0.6245, allocations: 0.6504 MB / 0.6 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004429/0.6289, allocations: 1.213 MB / 0.6012 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005612/0.6346, allocations: 4.069 MB / 0.6052 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004409/0.639, allocations: 299.5 kB / 0.6055 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/0.6401, allocations: 328 kB / 0.6058 GB, free: 8.871 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.003873/0.644, allocations: 1.697 MB / 0.6075 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008761/0.6449, allocations: 300.1 kB / 0.6077 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/0.6498, allocations: 2.084 MB / 0.6098 GB, free: 4.766 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.245e-05/0.6499, allocations: 16 kB / 0.6098 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.034e-05/0.6499, allocations: 11.98 kB / 0.6098 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.6499, allocations: 3.984 kB / 0.6098 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.6643, allocations: 5.656 MB / 0.6153 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.839e-05/0.6643, allocations: 64 / 0.6153 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.6654, allocations: 203.7 kB / 0.6155 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.667, allocations: 492.2 kB / 0.616 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.6671, allocations: 27.97 kB / 0.616 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004474/0.6716, allocations: 3.433 MB / 0.6194 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6716, allocations: 0 / 0.6194 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007408/0.6791, allocations: 4.163 MB / 0.6234 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.6802, allocations: 361.1 kB / 0.6238 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008273/0.6811, allocations: 27.92 kB / 0.6238 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.6827, allocations: 71.91 kB / 0.6239 GB, free: 6.039 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.683, allocations: 76.5 kB / 0.624 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6831, allocations: 43.97 kB / 0.624 GB, free: 5.922 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005215/0.6884, allocations: 2.252 MB / 0.6262 GB, free: 3.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6884, allocations: 0 / 0.6262 GB, free: 3.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00609/0.6945, allocations: 0.7864 MB / 0.627 GB, free: 2.898 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.0007107/0.6952, allocations: 144.7 kB / 0.6271 GB, free: 2.754 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008647/0.7039, allocations: 4.506 MB / 0.6315 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.7039, allocations: 0 / 0.6315 GB, free: 14.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.7058, allocations: 1.133 MB / 0.6326 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/0.7089, allocations: 354 kB / 0.6329 GB, free: 12.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.7221, allocations: 7.16 MB / 0.6399 GB, free: 5.578 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003205/0.7253, allocations: 2.627 MB / 0.6425 GB, free: 2.922 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004315/0.7296, allocations: 1.667 MB / 0.6441 GB, free: 1.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007055/0.7304, allocations: 215.3 kB / 0.6443 GB, free: 1.039 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7304, allocations: 0 / 0.6443 GB, free: 1.039 MB / 478.1 MB Notification: Performance of Templates: time 0.06634/0.7967, allocations: 29.15 MB / 0.6728 GB, free: 3.957 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 -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/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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches