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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 84.25 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 166.9 kB / 25.61 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9908/0.9908, allocations: 177 MB / 205.9 MB, free: 4.414 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1688/0.1688, allocations: 34.87 MB / 297.4 MB, free: 13.32 MB / 282.7 MB " [Timeout remaining time 180] 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=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.063e-06/2.063e-06, allocations: 0 / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.358e-05/3.565e-05, allocations: 5.156 kB / 380 MB, free: 22.74 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007684/0.00772, allocations: 8.494 MB / 388.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006737/0.01446, allocations: 3.447 MB / 391.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.01625, allocations: 59.69 kB / 392 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.01855, allocations: 1.767 MB / 393.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003915/0.02247, allocations: 1.637 MB / 395.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.02368, allocations: 0.6118 MB / 396 MB, free: 6.664 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004524/0.0282, allocations: 3.966 MB / 400 MB, free: 2.691 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.03057, allocations: 2.161 MB / 402.1 MB, free: 492 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00336/0.03393, allocations: 2.171 MB / 404.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.03657, allocations: 1.707 MB / 406 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005645/0.03714, allocations: 228 kB / 406.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.03894, allocations: 1.049 MB / 407.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.04027, allocations: 1.515 MB / 408.8 MB, free: 9.793 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.04165, allocations: 0.9149 MB / 409.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004975/0.04662, allocations: 3.694 MB / 413.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.04663, allocations: 4 kB / 413.4 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.04663, allocations: 4 kB / 413.4 MB, free: 5.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.985e-05/0.04673, allocations: 0 / 413.4 MB, free: 5.16 MB / 330.7 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.006581/0.05331, allocations: 3.9 MB / 417.3 MB, free: 1.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.05336, allocations: 12.03 kB / 417.3 MB, free: 1.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009703/0.06306, allocations: 1.786 MB / 419.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/0.06666, allocations: 1.574 MB / 420.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001352/0.0668, allocations: 160.5 kB / 420.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004646/0.06726, allocations: 228.2 kB / 421.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00646/0.07372, allocations: 4.268 MB / 425.3 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.319e-05/0.07381, allocations: 35.64 kB / 425.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.07409, allocations: 107.9 kB / 425.5 MB, free: 8.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001622/0.07571, allocations: 1.34 MB / 426.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004778/0.08049, allocations: 1.808 MB / 428.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02759/0.1081, allocations: 34.82 MB / 463.5 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.1099, allocations: 0.7614 MB / 464.2 MB, free: 128 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.1102, allocations: 250.9 kB / 464.5 MB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003121/0.1133, allocations: 2.355 MB / 466.8 MB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1133, allocations: 49.33 kB / 466.9 MB, free: 13.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 2.554e-06/0.1133, allocations: 4 kB / 466.9 MB, free: 13.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=101): time 0.01038/0.1237, allocations: 3.785 MB / 470.7 MB, free: 9.562 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.1238, allocations: 188.4 kB / 470.8 MB, free: 9.336 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003017/0.1269, allocations: 3.167 MB / 474 MB, free: 6.137 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.433e-05/0.1269, allocations: 41.7 kB / 474 MB, free: 6.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001524/0.1285, allocations: 2.9 MB / 476.9 MB, free: 3.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000356/0.1288, allocations: 468.7 kB / 477.4 MB, free: 2.699 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009959/0.1298, allocations: 1.183 MB / 478.6 MB, free: 1.504 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1299, allocations: 476.8 kB / 479 MB, free: 1.035 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006741/0.1306, allocations: 458.1 kB / 479.5 MB, free: 0.582 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003637/0.1343, allocations: 5.657 MB / 485.2 MB, free: 8.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004823/0.1391, allocations: 6.623 MB / 491.8 MB, free: 15.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.013e-05/0.1391, allocations: 36 kB / 491.8 MB, free: 15.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.00495/0.1441, allocations: 4.182 MB / 496 MB, free: 11.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.1441, allocations: 56 kB / 496 MB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.238e-05/0.1442, allocations: 128 kB / 496.2 MB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.1445, allocations: 204.2 kB / 496.4 MB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.1463, allocations: 1.177 MB / 497.5 MB, free: 9.746 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.1473, allocations: 1.954 MB / 499.5 MB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.1495, allocations: 243.8 kB / 499.7 MB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002466/0.1497, allocations: 300 kB / 0.4883 GB, free: 7.148 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * 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 (656): * Single equations (assignments): 652 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008379/0.1506, allocations: 0.5991 MB / 0.4889 GB, free: 6.535 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003355/0.1509, allocations: 294.2 kB / 0.4892 GB, free: 6.246 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006404/0.1515, allocations: 0.5539 MB / 0.4897 GB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.1515, allocations: 15.94 kB / 0.4897 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1516, allocations: 0 / 0.4897 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1516, allocations: 3.984 kB / 0.4897 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003609/0.1552, allocations: 3.076 MB / 0.4927 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.1552, allocations: 7.938 kB / 0.4928 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.1555, allocations: 131.8 kB / 0.4929 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.1556, allocations: 44 kB / 0.4929 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.1557, allocations: 27.97 kB / 0.4929 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007436/0.1564, allocations: 1.73 MB / 0.4946 GB, free: 436 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1564, allocations: 4 kB / 0.4946 GB, free: 432 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1646/0.321, allocations: 1.519 MB / 0.4961 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004193/0.3214, allocations: 260.8 kB / 0.4964 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.3216, allocations: 17.97 kB / 0.4964 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000521/0.3222, allocations: 20.92 kB / 0.4964 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.099e-05/0.3222, allocations: 60.3 kB / 0.4965 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/0.3223, allocations: 27.09 kB / 0.4965 GB, free: 118.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001223/0.3235, allocations: 1.255 MB / 0.4977 GB, free: 118.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3235, allocations: 0 / 0.4977 GB, free: 118.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002629/0.3261, allocations: 0.7662 MB / 0.4985 GB, free: 118.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002986/0.3264, allocations: 157 kB / 0.4986 GB, free: 118.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.3295, allocations: 2.26 MB / 0.5008 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.3295, allocations: 0 / 0.5008 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.3299, allocations: 446 kB / 0.5012 GB, free: 117.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.331, allocations: 313.5 kB / 0.5015 GB, free: 117.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.3384, allocations: 5.506 MB / 0.5069 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000727/0.3391, allocations: 0.9265 MB / 0.5078 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001123/0.3403, allocations: 423 kB / 0.5082 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/0.3408, allocations: 484.7 kB / 0.5087 GB, free: 115.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.224e-06/0.3408, allocations: 0 / 0.5087 GB, free: 115.2 MB / 426.7 MB Notification: Performance of Templates: time 0.03108/0.3719, allocations: 21.72 MB / 0.5299 GB, free: 96.7 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.567340912763029]