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.0009495/0.0009495, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.0009816/0.0009816, allocations: 156.5 kB / 24.55 MB, free: 16 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.9293/0.9293, allocations: 177 MB / 204.9 MB, free: 5.574 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.723e-06/1.723e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.079e-05/2.251e-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.005483/0.005506, allocations: 6.782 MB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00391/0.009416, allocations: 3.049 MB / 282.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003462/0.009762, allocations: 39.81 kB / 282.8 MB, free: 7.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.01077, allocations: 0.7118 MB / 283.5 MB, free: 6.801 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00172/0.01249, allocations: 1.447 MB / 285 MB, free: 5.348 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005845/0.01307, allocations: 0.5612 MB / 285.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.01572, allocations: 3.868 MB / 289.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000794/0.01651, allocations: 0.6778 MB / 290.1 MB, free: 224 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1081/0.1246, allocations: 1.292 MB / 291.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0016/0.1262, allocations: 1.59 MB / 293 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002639/0.1265, allocations: 138.2 kB / 293.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.1278, allocations: 0.8916 MB / 294 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007576/0.1286, allocations: 1.163 MB / 295.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005595/0.1291, allocations: 0.6707 MB / 295.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.1314, allocations: 2.866 MB / 298.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1314, allocations: 0 / 298.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1314, allocations: 3.594 kB / 298.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.474e-05/0.1315, allocations: 1.688 kB / 298.7 MB, free: 15.24 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.004208/0.1357, allocations: 3.561 MB / 302.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1357, allocations: 14.2 kB / 302.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004819/0.1406, allocations: 2.412 MB / 304.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.1421, allocations: 1.405 MB / 306.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.1421, allocations: 115.6 kB / 306.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005156/0.1426, allocations: 301.4 kB / 306.5 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00567/0.1483, allocations: 5.225 MB / 311.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/0.1484, allocations: 27.84 kB / 311.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.1485, allocations: 78.64 kB / 311.8 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001047/0.1496, allocations: 1.398 MB / 313.2 MB, free: 7.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006059/0.1556, allocations: 4.378 MB / 317.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01943/0.1751, allocations: 34.16 MB / 351.7 MB, free: 476 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005549/0.1806, allocations: 2.632 MB / 354.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009192/0.1815, allocations: 0.7722 MB / 355.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.336e-05/0.1816, allocations: 16 kB / 355.2 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.1816, allocations: 54.33 kB / 355.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 3.046e-06/0.1816, allocations: 0 / 355.2 MB, free: 12.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=136): time 0.02213/0.2038, allocations: 12.32 MB / 367.5 MB, free: 476 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00156/0.2053, allocations: 3.945 MB / 371.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/0.2079, allocations: 2.651 MB / 374.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001549/0.208, allocations: 45.22 kB / 374.2 MB, free: 9.492 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.2091, allocations: 2.293 MB / 376.5 MB, free: 7.207 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004833/0.2095, allocations: 0.6268 MB / 377.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/0.2106, allocations: 1.059 MB / 378.2 MB, free: 5.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.2107, allocations: 480.9 kB / 378.6 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.212, allocations: 0.8099 MB / 379.4 MB, free: 4.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003051/0.215, allocations: 5.179 MB / 384.6 MB, free: 13.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004766/0.2198, allocations: 6.582 MB / 391.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.1e-05/0.2198, allocations: 32 kB / 391.2 MB, free: 4.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01472/0.2346, allocations: 8.059 MB / 399.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.2346, allocations: 48 kB / 399.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01429/0.2489, allocations: 4.457 MB / 403.8 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/0.264, allocations: 3.935 MB / 407.7 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00353/0.2675, allocations: 1.263 MB / 409 MB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009555/0.2771, allocations: 9.045 MB / 418 MB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004011/0.2811, allocations: 0.6815 MB / 418.7 MB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004484/0.2816, allocations: 312 kB / 419 MB, free: 8.055 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.001111/0.2827, allocations: 0.5503 MB / 419.6 MB, free: 7.492 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005261/0.2832, allocations: 274.4 kB / 419.8 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004289/0.2836, allocations: 344.7 kB / 420.2 MB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006853/0.2905, allocations: 2.49 MB / 422.7 MB, free: 4.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.2905, allocations: 7.938 kB / 422.7 MB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.2905, allocations: 11.97 kB / 422.7 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005594/0.2961, allocations: 3.728 MB / 426.4 MB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.2961, allocations: 15.06 kB / 426.4 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.2974, allocations: 371.4 kB / 426.8 MB, free: 184 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005027/0.3024, allocations: 1.588 MB / 428.4 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.3025, allocations: 39.95 kB / 428.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004545/0.3071, allocations: 8.245 MB / 436.7 MB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00143/0.3085, allocations: 3.794 MB / 440.5 MB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1148/0.4233, allocations: 4.168 MB / 444.6 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006521/0.4239, allocations: 271 kB / 444.9 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003052/0.4242, allocations: 31.56 kB / 444.9 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.4256, allocations: 382 kB / 445.3 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.4259, allocations: 113.8 kB / 445.4 MB, free: 126.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.4261, allocations: 52.77 kB / 445.5 MB, free: 126.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001511/0.4276, allocations: 1.143 MB / 446.6 MB, free: 126.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4276, allocations: 0 / 446.6 MB, free: 126.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003272/0.4309, allocations: 1.137 MB / 447.7 MB, free: 126.4 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.0004381/0.4313, allocations: 187.5 kB / 447.9 MB, free: 126.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.4368, allocations: 4.35 MB / 452.3 MB, free: 125.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4368, allocations: 0 / 452.3 MB, free: 125.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.4393, allocations: 2.317 MB / 454.6 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.001213/0.4405, allocations: 319.3 kB / 454.9 MB, free: 124.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005686/0.4462, allocations: 6.041 MB / 460.9 MB, free: 122.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.4467, allocations: 0.7848 MB / 461.7 MB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001628/0.4483, allocations: 1.315 MB / 463 MB, free: 121.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005575/0.4489, allocations: 196 kB / 463.2 MB, free: 121.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4489, allocations: 1.625 kB / 463.2 MB, free: 121.8 MB / 394.7 MB Notification: Performance of Templates: time 0.04169/0.4906, allocations: 46.75 MB / 0.498 GB, free: 78.55 MB / 394.7 MB " [Timeout remaining time 660] 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: 3.9231889750808477]