Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001527/0.002582, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001367/0.002409, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9237/0.9237, allocations: 177.2 MB / 189.8 MB, free: 5.27 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0828/1.007, allocations: 53.66 MB / 243.4 MB, free: 15.53 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|body2.frame_a.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body2.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|body2.frame_a.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body2.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.036e-05/1.161e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.005089/0.0051, allocations: 6.719 MB / 251.4 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.009127, allocations: 3.149 MB / 254.6 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003626/0.009489, allocations: 39.81 kB / 254.6 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.01055, allocations: 0.6924 MB / 255.3 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001694/0.01225, allocations: 1.42 MB / 256.7 MB, free: 2.168 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.01277, allocations: 0.5028 MB / 257.2 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.01513, allocations: 3.725 MB / 261 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004976/0.01563, allocations: 0.4989 MB / 261.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.01702, allocations: 1.529 MB / 263 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.01818, allocations: 1.496 MB / 264.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.01835, allocations: 140 kB / 264.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.01939, allocations: 0.9164 MB / 265.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005892/0.01998, allocations: 1.044 MB / 266.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004295/0.02041, allocations: 0.5372 MB / 267.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00205/0.02246, allocations: 2.626 MB / 269.7 MB, free: 5.105 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.371e-05/0.02247, allocations: 0 / 269.7 MB, free: 5.105 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.02247, allocations: 3.938 kB / 269.7 MB, free: 5.102 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.0225, allocations: 0 / 269.7 MB, free: 5.102 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.003105/0.0256, allocations: 3.32 MB / 273.1 MB, free: 1.723 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.02564, allocations: 16.02 kB / 273.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/0.02866, allocations: 1.023 MB / 274.1 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1148/0.1434, allocations: 1.186 MB / 275.3 MB, free: 19.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.1435, allocations: 112.2 kB / 275.4 MB, free: 19.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006562/0.1442, allocations: 287.2 kB / 275.7 MB, free: 19.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00593/0.1501, allocations: 3.921 MB / 279.6 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-05/0.1502, allocations: 29.64 kB / 279.6 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.1504, allocations: 79.22 kB / 279.7 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001206/0.1516, allocations: 1.129 MB / 280.8 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005638/0.1572, allocations: 3.085 MB / 283.9 MB, free: 17.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.169, allocations: 22.83 MB / 306.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004228/0.1732, allocations: 1.806 MB / 308.6 MB, free: 14.13 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005564/0.1738, allocations: 0.5358 MB / 309.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.1739, allocations: 16 kB / 309.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.1739, allocations: 50.5 kB / 309.2 MB, free: 13.51 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 2.655e-06/0.1739, allocations: 0 / 309.2 MB, free: 13.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=136): time 0.01495/0.1888, allocations: 6.231 MB / 315.4 MB, free: 7.289 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001286/0.1901, allocations: 2.837 MB / 318.2 MB, free: 4.219 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.1917, allocations: 2.348 MB / 320.6 MB, free: 2.199 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.1918, allocations: 41.7 kB / 320.6 MB, free: 2.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007699/0.1926, allocations: 2.044 MB / 322.7 MB, free: 96 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/0.193, allocations: 0.593 MB / 323.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009861/0.194, allocations: 0.918 MB / 324.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.456e-05/0.194, allocations: 305.1 kB / 324.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.1953, allocations: 0.8406 MB / 325.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002321/0.1976, allocations: 3.672 MB / 329 MB, free: 8.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004506/0.2021, allocations: 5.305 MB / 334.3 MB, free: 1.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.01e-05/0.2021, allocations: 32 kB / 334.3 MB, free: 1.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.009939/0.2121, allocations: 4.536 MB / 338.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.2121, allocations: 56.03 kB / 338.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.549e-05/0.2122, allocations: 115.9 kB / 339 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006593/0.2188, allocations: 0.988 MB / 340 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002347/0.2211, allocations: 1.174 MB / 341.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005485/0.2266, allocations: 5.781 MB / 347 MB, free: 4.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002795/0.2294, allocations: 231.7 kB / 347.2 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004886/0.2299, allocations: 271.9 kB / 347.5 MB, free: 3.859 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],body1.sphereColor[1],body1.sphereColor[2],body1.sphereColor[3],body2.sphereColor[1],body2.sphereColor[2],body2.sphereColor[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001238/0.2311, allocations: 0.5 MB / 348 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003643/0.2315, allocations: 159.8 kB / 348.1 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003377/0.2318, allocations: 348.7 kB / 348.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003077/0.2349, allocations: 1.235 MB / 349.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.2349, allocations: 10.84 kB / 349.7 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.2349, allocations: 8.109 kB / 349.7 MB, free: 1.551 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.2384, allocations: 2.504 MB / 352.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.2385, allocations: 11.94 kB / 352.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008142/0.2393, allocations: 203.7 kB / 352.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.2395, allocations: 242.2 kB / 352.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002758/0.2423, allocations: 0.8586 MB / 353.5 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.2424, allocations: 43.95 kB / 353.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003678/0.2461, allocations: 5.528 MB / 359.1 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009414/0.247, allocations: 2.673 MB / 361.8 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004453/0.2515, allocations: 2.662 MB / 364.4 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.2517, allocations: 35.97 kB / 364.5 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007504/0.2524, allocations: 24 kB / 364.5 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.2527, allocations: 108.8 kB / 364.6 MB, free: 1.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.855e-05/0.2528, allocations: 43.95 kB / 364.6 MB, free: 1.875 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007186/0.2535, allocations: 0.8331 MB / 365.5 MB, free: 1.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2535, allocations: 4 kB / 365.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002629/0.2561, allocations: 1.144 MB / 366.6 MB, free: 15.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,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.0003765/0.2565, allocations: 178 kB / 366.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004151/0.2607, allocations: 3.391 MB / 370.2 MB, free: 12.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001071/0.2608, allocations: 76.77 kB / 370.2 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.2629, allocations: 1.512 MB / 371.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.2647, allocations: 1.998 MB / 373.8 MB, free: 8.414 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007111/0.2718, allocations: 5.49 MB / 379.2 MB, free: 2.836 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.2725, allocations: 0.7986 MB / 380 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009081/0.2734, allocations: 383 kB / 380.4 MB, free: 1.641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008409/0.2742, allocations: 413.2 kB / 380.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of SimCode: time 1.804e-06/0.2742, allocations: 0 / 380.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of Templates: time 0.1546/0.4288, allocations: 47.11 MB / 427.9 MB, free: 109.9 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.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.4441419020295143]