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/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.001073/0.001073, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001578/0.002651, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001017/0.001017, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001379/0.002396, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9474/0.9474, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09522/1.043, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.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.2501/0.2501, allocations: 34.88 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03452/0.2847, allocations: 13.23 MB / 292.8 MB, free: 6.402 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 294.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261e-05/1.408e-05, allocations: 3.438 kB / 294.1 MB, free: 5.109 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.006661/0.006675, allocations: 8.723 MB / 302.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004262/0.01094, allocations: 3.63 MB / 306.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003977/0.01133, allocations: 55.75 kB / 306.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.01313, allocations: 1.962 MB / 308.5 MB, free: 6.684 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001778/0.01491, allocations: 1.649 MB / 310.1 MB, free: 5.027 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006013/0.01551, allocations: 0.5728 MB / 310.7 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002478/0.01799, allocations: 3.772 MB / 314.5 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.01937, allocations: 2.113 MB / 316.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.02101, allocations: 2.186 MB / 318.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.0223, allocations: 1.699 MB / 320.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002323/0.02254, allocations: 248 kB / 320.7 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.0236, allocations: 1.096 MB / 321.8 MB, free: 9.258 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008196/0.02442, allocations: 1.453 MB / 323.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005968/0.02502, allocations: 0.7944 MB / 324 MB, free: 7.004 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002419/0.02744, allocations: 3.573 MB / 327.6 MB, free: 3.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/0.02744, allocations: 4 kB / 327.6 MB, free: 3.414 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.02745, allocations: 0 / 327.6 MB, free: 3.414 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.02747, allocations: 0 / 327.6 MB, free: 3.414 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.003704/0.03117, allocations: 4.334 MB / 331.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.0312, allocations: 8.922 kB / 332 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00276/0.03396, allocations: 1.011 MB / 333 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.03553, allocations: 1.528 MB / 334.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.03562, allocations: 176.8 kB / 334.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.03588, allocations: 232.2 kB / 334.9 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003384/0.03926, allocations: 3.988 MB / 338.9 MB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.428e-05/0.03931, allocations: 39.62 kB / 338.9 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.0395, allocations: 119.9 kB / 339 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001111/0.04061, allocations: 1.293 MB / 340.3 MB, free: 5.922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002428/0.04304, allocations: 1.937 MB / 342.3 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01601/0.05905, allocations: 25.89 MB / 368.2 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.06073, allocations: 0.7829 MB / 368.9 MB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.06097, allocations: 186.8 kB / 369.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003112/0.06408, allocations: 2.231 MB / 371.3 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.06411, allocations: 46.8 kB / 371.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 3.928e-06/0.06412, allocations: 0 / 371.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.00638/0.0705, allocations: 2.468 MB / 373.9 MB, free: 3.215 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.07056, allocations: 140.5 kB / 374 MB, free: 3.047 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.07322, allocations: 2.971 MB / 377 MB, free: 60 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.652e-05/0.07329, allocations: 37.7 kB / 377 MB, free: 16 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.07447, allocations: 2.742 MB / 379.7 MB, free: 13.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.07477, allocations: 433 kB / 380.2 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007846/0.07556, allocations: 1.06 MB / 381.2 MB, free: 11.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.07562, allocations: 301.1 kB / 381.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008922/0.07651, allocations: 0.6236 MB / 382.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/0.07893, allocations: 4.258 MB / 386.4 MB, free: 4.664 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004305/0.08324, allocations: 5.774 MB / 392.2 MB, free: 13.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-05/0.08334, allocations: 40 kB / 392.2 MB, free: 12.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.005021/0.08836, allocations: 3.757 MB / 396 MB, free: 9.211 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.545e-05/0.08841, allocations: 63.94 kB / 396 MB, free: 9.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/0.08853, allocations: 140 kB / 396.2 MB, free: 9.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.08886, allocations: 204 kB / 396.4 MB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002239/0.0911, allocations: 1.369 MB / 397.7 MB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.09211, allocations: 1.455 MB / 399.2 MB, free: 5.879 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002383/0.09449, allocations: 263.8 kB / 399.5 MB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002776/0.09477, allocations: 304 kB / 399.8 MB, free: 5.324 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (689): * Single equations (assignments): 685 * 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.0009889/0.09576, allocations: 0.5911 MB / 400.3 MB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.09605, allocations: 159.8 kB / 400.5 MB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005429/0.09659, allocations: 443.4 kB / 400.9 MB, free: 4.117 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.09661, allocations: 12 kB / 400.9 MB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.09661, allocations: 0 / 400.9 MB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.09662, allocations: 7.984 kB / 401 MB, free: 4.098 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.09959, allocations: 2.495 MB / 403.4 MB, free: 1.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.839e-05/0.09961, allocations: 19.98 kB / 403.5 MB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.09994, allocations: 123.8 kB / 403.6 MB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.1002, allocations: 257.9 kB / 403.8 MB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003051/0.1005, allocations: 212.9 kB / 404 MB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.1006, allocations: 19.98 kB / 404.1 MB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006816/0.1013, allocations: 1.212 MB / 405.3 MB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1013, allocations: 4 kB / 405.3 MB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009395/0.1022, allocations: 1.214 MB / 406.5 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.1024, allocations: 24.09 kB / 406.5 MB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.1028, allocations: 20 kB / 406.5 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.1029, allocations: 55.84 kB / 406.6 MB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.724e-05/0.1029, allocations: 31.86 kB / 406.6 MB, free: 14.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008692/0.1038, allocations: 1.053 MB / 407.7 MB, free: 13.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1038, allocations: 0 / 407.7 MB, free: 13.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00276/0.1065, allocations: 0.7811 MB / 408.5 MB, free: 12.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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.0003014/0.1068, allocations: 144.1 kB / 408.6 MB, free: 12.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.1094, allocations: 2.222 MB / 410.8 MB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001562/0.1096, allocations: 104.2 kB / 410.9 MB, free: 9.863 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003983/0.11, allocations: 357.1 kB / 411.3 MB, free: 9.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.1121, allocations: 2.229 MB / 413.5 MB, free: 6.996 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008485/0.1206, allocations: 5.729 MB / 419.2 MB, free: 1.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008067/0.1214, allocations: 0.9553 MB / 420.2 MB, free: 188 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001099/0.1225, allocations: 435.2 kB / 420.6 MB, free: 15.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004992/0.123, allocations: 433.2 kB / 421 MB, free: 15.33 MB / 426.7 MB Notification: Performance of SimCode: time 2.205e-06/0.123, allocations: 4 kB / 421 MB, free: 15.33 MB / 426.7 MB Notification: Performance of Templates: time 0.1758/0.2988, allocations: 19.03 MB / 440.1 MB, free: 108.2 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.356452915817499]