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.0007663/0.0007663, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001042/0.001808, allocations: 449.7 kB / 10.37 MB, free: 324 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.0006895/0.0006895, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008334/0.001523, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.9374/0.9374, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1243/1.062, allocations: 53.87 MB / 243.8 MB, free: 14.91 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.2514/0.2514, allocations: 34.85 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02762/0.279, allocations: 13.23 MB / 292.6 MB, free: 6.469 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.553e-06/1.553e-06, allocations: 0 / 293.9 MB, free: 5.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.862e-05/2.017e-05, allocations: 3.156 kB / 293.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.00686/0.00688, allocations: 8.718 MB / 302.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004906/0.01179, allocations: 3.629 MB / 306.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007712/0.01256, allocations: 55.75 kB / 306.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002005/0.01456, allocations: 1.954 MB / 308.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002537/0.0171, allocations: 1.653 MB / 309.9 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008912/0.01799, allocations: 0.5767 MB / 310.4 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003332/0.02132, allocations: 3.783 MB / 314.2 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002058/0.02338, allocations: 2.117 MB / 316.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.02573, allocations: 2.182 MB / 318.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.02731, allocations: 1.707 MB / 320.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002861/0.0276, allocations: 244 kB / 320.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001208/0.02881, allocations: 1.096 MB / 321.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.02984, allocations: 1.453 MB / 323 MB, free: 7.875 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008496/0.03069, allocations: 0.7983 MB / 323.8 MB, free: 7.074 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003066/0.03376, allocations: 3.577 MB / 327.4 MB, free: 3.484 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.489e-05/0.03377, allocations: 0 / 327.4 MB, free: 3.484 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.03377, allocations: 0 / 327.4 MB, free: 3.484 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.648e-05/0.03384, allocations: 0 / 327.4 MB, free: 3.484 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.004253/0.03809, allocations: 4.334 MB / 331.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.03813, allocations: 12.92 kB / 331.7 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00272/0.04085, allocations: 1.015 MB / 332.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.0425, allocations: 1.512 MB / 334.3 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-05/0.04259, allocations: 176.8 kB / 334.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002543/0.04284, allocations: 236.2 kB / 334.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003732/0.04657, allocations: 3.988 MB / 338.7 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-05/0.04663, allocations: 39.69 kB / 338.7 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.04682, allocations: 123.9 kB / 338.8 MB, free: 7.285 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001096/0.04791, allocations: 1.395 MB / 340.2 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.05022, allocations: 1.937 MB / 342.1 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01818/0.0684, allocations: 25.89 MB / 368 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.06987, allocations: 0.783 MB / 368.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.07011, allocations: 182.1 kB / 369 MB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002683/0.0728, allocations: 2.224 MB / 371.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.07283, allocations: 46.73 kB / 371.3 MB, free: 5.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=82): time 2.345e-06/0.07283, allocations: 4 kB / 371.3 MB, free: 5.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=91): time 0.005169/0.078, allocations: 2.442 MB / 373.7 MB, free: 3.207 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.07805, allocations: 144.5 kB / 373.9 MB, free: 3.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.08007, allocations: 2.974 MB / 376.8 MB, free: 44 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.08011, allocations: 37.7 kB / 376.9 MB, free: 0 / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.08152, allocations: 2.742 MB / 379.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.08174, allocations: 425 kB / 380 MB, free: 12.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007274/0.08247, allocations: 1.056 MB / 381.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.881e-05/0.08253, allocations: 301.1 kB / 381.4 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008053/0.08334, allocations: 0.6353 MB / 382 MB, free: 10.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002544/0.08588, allocations: 4.262 MB / 386.3 MB, free: 4.648 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00358/0.08946, allocations: 5.337 MB / 391.6 MB, free: 13.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.182e-05/0.0895, allocations: 40 kB / 391.6 MB, free: 13.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.003476/0.09298, allocations: 3.763 MB / 395.4 MB, free: 9.621 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/0.09304, allocations: 60 kB / 395.5 MB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.93e-05/0.09313, allocations: 132 kB / 395.6 MB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003051/0.09343, allocations: 212.3 kB / 395.8 MB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/0.09593, allocations: 1.369 MB / 397.2 MB, free: 7.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.09701, allocations: 1.447 MB / 398.6 MB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.09888, allocations: 263.8 kB / 398.9 MB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002378/0.09912, allocations: 304 kB / 399.2 MB, free: 5.746 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.0009102/0.1, allocations: 0.5911 MB / 399.8 MB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.1003, allocations: 163.8 kB / 399.9 MB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005787/0.1009, allocations: 455.5 kB / 400.4 MB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.1009, allocations: 8 kB / 400.4 MB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1009, allocations: 4 kB / 400.4 MB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.101, allocations: 3.984 kB / 400.4 MB, free: 4.508 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003073/0.104, allocations: 2.495 MB / 402.9 MB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.104, allocations: 4 kB / 402.9 MB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.1043, allocations: 119.8 kB / 403 MB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.1046, allocations: 265.9 kB / 403.3 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002845/0.1049, allocations: 213.2 kB / 403.5 MB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.105, allocations: 19.98 kB / 403.5 MB, free: 1.301 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009045/0.1059, allocations: 1.22 MB / 404.7 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1059, allocations: 7.938 kB / 404.7 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008647/0.1067, allocations: 1.211 MB / 405.9 MB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.1069, allocations: 19.94 kB / 405.9 MB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.1073, allocations: 24 kB / 406 MB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.1074, allocations: 51.84 kB / 406 MB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.1074, allocations: 23.94 kB / 406 MB, free: 14.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007891/0.1082, allocations: 1.056 MB / 407.1 MB, free: 13.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1082, allocations: 0 / 407.1 MB, free: 13.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002329/0.1106, allocations: 0.785 MB / 407.9 MB, free: 12.75 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.0002855/0.1108, allocations: 140 kB / 408 MB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002252/0.1131, allocations: 2.107 MB / 410.1 MB, free: 10.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001639/0.1133, allocations: 108.1 kB / 410.2 MB, free: 10.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.1135, allocations: 310.5 kB / 410.5 MB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.1148, allocations: 0.6514 MB / 411.2 MB, free: 9.414 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009148/0.124, allocations: 5.731 MB / 416.9 MB, free: 3.574 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.125, allocations: 0.9672 MB / 417.9 MB, free: 2.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001194/0.1262, allocations: 427.2 kB / 418.3 MB, free: 2.168 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000927/0.1271, allocations: 449.2 kB / 418.7 MB, free: 1.727 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.1271, allocations: 0 / 418.7 MB, free: 1.727 MB / 410.7 MB Notification: Performance of Templates: time 0.1804/0.3075, allocations: 20.96 MB / 439.7 MB, free: 120.9 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.673954403027892]