Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.001108/0.001108, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0009972/0.0009972, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9951/0.9951, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.49e-05, allocations: 5.266 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.005618/0.005633, allocations: 6.79 MB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005097/0.01073, allocations: 3.049 MB / 282.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005198/0.01125, allocations: 35.81 kB / 282.8 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.01246, allocations: 0.708 MB / 283.5 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002495/0.01496, allocations: 1.451 MB / 285 MB, free: 5.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.01579, allocations: 0.5574 MB / 285.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003395/0.01918, allocations: 3.868 MB / 289.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006376/0.01982, allocations: 0.6777 MB / 290.1 MB, free: 224 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1337/0.1536, allocations: 1.291 MB / 291.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.1561, allocations: 1.596 MB / 292.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005343/0.1566, allocations: 138.3 kB / 293.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.1584, allocations: 0.8907 MB / 294 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.1596, allocations: 1.16 MB / 295.1 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.1606, allocations: 0.6673 MB / 295.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00386/0.1645, allocations: 2.874 MB / 298.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1645, allocations: 0.6562 kB / 298.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1645, allocations: 0 / 298.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.078e-05/0.1646, allocations: 0.9375 kB / 298.7 MB, free: 15.21 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.006119/0.1707, allocations: 3.559 MB / 302.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1707, allocations: 14.3 kB / 302.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005508/0.1762, allocations: 2.411 MB / 304.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002188/0.1784, allocations: 1.379 MB / 306 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-05/0.1785, allocations: 109.5 kB / 306.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000545/0.1791, allocations: 299.8 kB / 306.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006774/0.1858, allocations: 5.229 MB / 311.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-05/0.1859, allocations: 29.91 kB / 311.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.1861, allocations: 75.41 kB / 311.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001213/0.1873, allocations: 1.4 MB / 313.2 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007162/0.1945, allocations: 4.377 MB / 317.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02522/0.2197, allocations: 34.15 MB / 351.7 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006349/0.226, allocations: 2.633 MB / 354.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.2271, allocations: 0.7769 MB / 355.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.465e-05/0.2271, allocations: 16 kB / 355.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.2272, allocations: 54.33 kB / 355.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 3.426e-06/0.2272, allocations: 0 / 355.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=136): time 0.02555/0.2527, allocations: 12.32 MB / 367.5 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002076/0.2548, allocations: 3.945 MB / 371.4 MB, free: 12.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003168/0.258, allocations: 2.655 MB / 374.1 MB, free: 9.598 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004315/0.2584, allocations: 47.2 kB / 374.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.2597, allocations: 2.295 MB / 376.4 MB, free: 7.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006962/0.2604, allocations: 0.6166 MB / 377.1 MB, free: 6.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/0.2616, allocations: 1.063 MB / 378.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2617, allocations: 476.8 kB / 378.6 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.2632, allocations: 0.806 MB / 379.4 MB, free: 4.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003667/0.2669, allocations: 5.187 MB / 384.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005798/0.2727, allocations: 6.573 MB / 391.1 MB, free: 4.539 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002267/0.2729, allocations: 36 kB / 391.2 MB, free: 4.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01802/0.2909, allocations: 8.06 MB / 399.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.33e-05/0.291, allocations: 51.98 kB / 399.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01204/0.303, allocations: 4.463 MB / 403.8 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01217/0.3152, allocations: 3.933 MB / 407.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003569/0.3188, allocations: 1.259 MB / 408.9 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0092/0.328, allocations: 9.044 MB / 418 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004724/0.3327, allocations: 0.6804 MB / 418.7 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/0.3337, allocations: 313 kB / 419 MB, free: 8.117 MB / 378.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 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * 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.00173/0.3354, allocations: 0.5445 MB / 419.5 MB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006045/0.336, allocations: 277.3 kB / 419.8 MB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007234/0.3368, allocations: 348.7 kB / 420.1 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005279/0.342, allocations: 2.494 MB / 422.6 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/0.3421, allocations: 7.938 kB / 422.6 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.3421, allocations: 7.984 kB / 422.6 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005931/0.348, allocations: 3.731 MB / 426.4 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.348, allocations: 7.062 kB / 426.4 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.3491, allocations: 367.4 kB / 426.7 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005522/0.3546, allocations: 1.588 MB / 428.3 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002716/0.3549, allocations: 51.94 kB / 428.4 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00865/0.3635, allocations: 8.247 MB / 436.6 MB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002034/0.3656, allocations: 3.793 MB / 440.4 MB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1645/0.5301, allocations: 4.159 MB / 444.6 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.5311, allocations: 272.4 kB / 444.8 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004123/0.5315, allocations: 30.98 kB / 444.9 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001711/0.5333, allocations: 384.7 kB / 445.2 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/0.5336, allocations: 108.6 kB / 445.4 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/0.5337, allocations: 51.72 kB / 445.4 MB, free: 126.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001753/0.5355, allocations: 1.141 MB / 446.5 MB, free: 126.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5355, allocations: 3.094 kB / 446.5 MB, free: 126.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003985/0.5395, allocations: 1.137 MB / 447.7 MB, free: 126.3 MB / 394.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.0005036/0.54, allocations: 186.3 kB / 447.9 MB, free: 126.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006266/0.5463, allocations: 4.352 MB / 452.2 MB, free: 125.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.5463, allocations: 0 / 452.2 MB, free: 125.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002644/0.5489, allocations: 2.32 MB / 454.5 MB, free: 124.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.5502, allocations: 317.2 kB / 454.8 MB, free: 124.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006589/0.5568, allocations: 6.043 MB / 460.9 MB, free: 122.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.5574, allocations: 0.7922 MB / 461.7 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001713/0.5591, allocations: 1.31 MB / 463 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007179/0.5598, allocations: 196.3 kB / 463.2 MB, free: 121.8 MB / 394.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5598, allocations: 0 / 463.2 MB, free: 121.8 MB / 394.7 MB Notification: Performance of Templates: time 0.05176/0.6116, allocations: 45.76 MB / 0.497 GB, free: 79.63 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.29993145307526]