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.001079/0.001079, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001282/0.001282, allocations: 165.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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.9363/0.9363, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.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.593e-06/1.593e-06, allocations: 0 / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/2.638e-05, allocations: 3 kB / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.00594/0.005966, allocations: 6.592 MB / 280.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004347/0.01031, allocations: 3.03 MB / 283.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005184/0.01083, allocations: 39.81 kB / 283.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.01202, allocations: 0.6963 MB / 284.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.01463, allocations: 1.451 MB / 286 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008177/0.01545, allocations: 0.5573 MB / 286.6 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.01856, allocations: 3.883 MB / 290.4 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008236/0.01939, allocations: 0.6738 MB / 291.1 MB, free: 3.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.02079, allocations: 1.302 MB / 292.4 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.02265, allocations: 1.594 MB / 294 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002334/0.02288, allocations: 140 kB / 294.1 MB, free: 400 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.02408, allocations: 0.8929 MB / 295 MB, free: 15.5 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007314/0.02481, allocations: 1.165 MB / 296.2 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006326/0.02545, allocations: 0.6734 MB / 296.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002378/0.02782, allocations: 2.864 MB / 299.7 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.02783, allocations: 3.938 kB / 299.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.02783, allocations: 0 / 299.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.712e-05/0.02787, allocations: 0 / 299.7 MB, free: 10.77 MB / 282.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.003954/0.03182, allocations: 3.197 MB / 302.9 MB, free: 7.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.03185, allocations: 12.03 kB / 303 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003814/0.03567, allocations: 1.38 MB / 304.3 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.03705, allocations: 1.277 MB / 305.6 MB, free: 4.816 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.482e-05/0.03712, allocations: 111 kB / 305.7 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005506/0.03767, allocations: 295.4 kB / 306 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006116/0.04379, allocations: 4.394 MB / 310.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-05/0.04384, allocations: 35.69 kB / 310.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/0.04403, allocations: 75.89 kB / 310.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001179/0.04521, allocations: 1.206 MB / 311.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005998/0.05121, allocations: 3.208 MB / 314.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02195/0.07316, allocations: 32.72 MB / 347.6 MB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00503/0.07819, allocations: 1.827 MB / 349.5 MB, free: 7.051 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008206/0.07901, allocations: 0.6588 MB / 350.1 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.942e-05/0.07907, allocations: 16 kB / 350.1 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.0791, allocations: 53.33 kB / 350.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 4.228e-06/0.0791, allocations: 0 / 350.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=136): time 0.1725/0.2516, allocations: 7.196 MB / 357.4 MB, free: 80.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001316/0.2529, allocations: 3.881 MB / 361.3 MB, free: 76.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/0.2557, allocations: 2.638 MB / 363.9 MB, free: 76.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000452/0.2561, allocations: 42.58 kB / 364 MB, free: 76.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008351/0.2569, allocations: 2.324 MB / 366.3 MB, free: 75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000587/0.2575, allocations: 0.6193 MB / 366.9 MB, free: 74.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.2586, allocations: 1.083 MB / 368 MB, free: 74.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/0.2587, allocations: 476.8 kB / 368.4 MB, free: 74.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.2599, allocations: 0.7375 MB / 369.2 MB, free: 74.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002039/0.262, allocations: 5.138 MB / 374.3 MB, free: 68.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003846/0.2658, allocations: 6.435 MB / 380.8 MB, free: 62.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.226e-05/0.2658, allocations: 30.06 kB / 380.8 MB, free: 62.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01295/0.2788, allocations: 5.2 MB / 386 MB, free: 61.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.716e-05/0.2789, allocations: 51.7 kB / 386 MB, free: 60.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0101/0.289, allocations: 1.873 MB / 387.9 MB, free: 59.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/0.2995, allocations: 0.9898 MB / 388.9 MB, free: 58.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/0.3025, allocations: 1.057 MB / 390 MB, free: 57.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006679/0.3092, allocations: 8.04 MB / 398 MB, free: 49.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004084/0.3133, allocations: 231.7 kB / 398.2 MB, free: 49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005221/0.3138, allocations: 287.9 kB / 398.5 MB, free: 48.72 MB / 330.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.001026/0.3148, allocations: 0.5351 MB / 399 MB, free: 48.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/0.3153, allocations: 274.4 kB / 399.3 MB, free: 47.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004188/0.3158, allocations: 340.8 kB / 399.6 MB, free: 47.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004755/0.3205, allocations: 1.448 MB / 401.1 MB, free: 46.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.3205, allocations: 7.625 kB / 401.1 MB, free: 46.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.3206, allocations: 11.97 kB / 401.1 MB, free: 46.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/0.3251, allocations: 3.047 MB / 404.2 MB, free: 42.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.3251, allocations: 4 kB / 404.2 MB, free: 42.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009721/0.3261, allocations: 171.8 kB / 404.3 MB, free: 42.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003956/0.3301, allocations: 0.7411 MB / 405.1 MB, free: 42.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.3302, allocations: 43.94 kB / 405.1 MB, free: 42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003731/0.334, allocations: 7.818 MB / 412.9 MB, free: 33.74 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008506/0.3348, allocations: 3.727 MB / 416.7 MB, free: 29.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005614/0.3404, allocations: 3.054 MB / 419.7 MB, free: 26.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004886/0.3409, allocations: 254.2 kB / 420 MB, free: 26.4 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.3412, allocations: 27.98 kB / 420 MB, free: 26.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008943/0.3421, allocations: 23.98 kB / 420 MB, free: 26.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/0.3423, allocations: 115.5 kB / 420.1 MB, free: 26.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.894e-05/0.3424, allocations: 43.97 kB / 420.2 MB, free: 26.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007909/0.3432, allocations: 1.062 MB / 421.2 MB, free: 25.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3432, allocations: 0 / 421.2 MB, free: 25.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002902/0.3461, allocations: 1.144 MB / 422.4 MB, free: 23.98 MB / 330.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.0003729/0.3465, allocations: 188.9 kB / 422.6 MB, free: 23.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.3509, allocations: 3.705 MB / 426.3 MB, free: 20 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3509, allocations: 0 / 426.3 MB, free: 20 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.3529, allocations: 1.81 MB / 428.1 MB, free: 18.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.3543, allocations: 305.6 kB / 428.4 MB, free: 17.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.36, allocations: 5.952 MB / 434.3 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.3606, allocations: 0.7966 MB / 435.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001119/0.3617, allocations: 375.6 kB / 435.5 MB, free: 10.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008055/0.3625, allocations: 458 kB / 435.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3625, allocations: 0 / 435.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of Templates: time 0.05533/0.4178, allocations: 49.08 MB / 485 MB, free: 9.176 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.213706266134977]