Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007952/0.0007952, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003049/0.003049, allocations: 149.5 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8205/0.8205, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.83e-05, allocations: 2.281 kB / 319.7 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005367/0.005385, allocations: 7.037 MB / 326.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.008225, allocations: 2.422 MB / 329.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.008515, allocations: 43.81 kB / 329.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.00996, allocations: 1.456 MB / 330.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.01099, allocations: 1.06 MB / 331.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.01129, allocations: 283.2 kB / 332 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.01257, allocations: 2.234 MB / 334.2 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008552/0.01343, allocations: 1.356 MB / 335.6 MB, free: 5.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009749/0.0144, allocations: 1.247 MB / 336.8 MB, free: 4.605 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008229/0.01522, allocations: 1.208 MB / 338 MB, free: 3.395 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.01536, allocations: 160 kB / 338.2 MB, free: 3.238 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005733/0.01593, allocations: 0.6084 MB / 338.8 MB, free: 2.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005769/0.01651, allocations: 1.239 MB / 340 MB, free: 1.387 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004324/0.01694, allocations: 0.7396 MB / 340.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.01955, allocations: 4.243 MB / 345 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.01955, allocations: 0 / 345 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.01955, allocations: 0 / 345 MB, free: 12.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.146e-05/0.01958, allocations: 4 kB / 345 MB, free: 12.38 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.002271/0.02185, allocations: 2.922 MB / 348 MB, free: 9.406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.02188, allocations: 8.922 kB / 348 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003224/0.0251, allocations: 1.812 MB / 349.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.02654, allocations: 1.105 MB / 350.9 MB, free: 6.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.996e-05/0.02661, allocations: 159.9 kB / 351 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002214/0.02683, allocations: 207.8 kB / 351.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008718/0.03555, allocations: 8.637 MB / 359.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.473e-05/0.03561, allocations: 43.64 kB / 359.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/0.03577, allocations: 103.9 kB / 360 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001411/0.03718, allocations: 1.659 MB / 361.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008761/0.04594, allocations: 7.179 MB / 368.9 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.06355, allocations: 28.54 MB / 397.4 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01012/0.07367, allocations: 4.623 MB / 402 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/0.07464, allocations: 1.2 MB / 403.2 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002878/0.07752, allocations: 3.09 MB / 406.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.07754, allocations: 50.88 kB / 406.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 2.064e-06/0.07755, allocations: 0 / 406.4 MB, free: 13.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02084/0.09839, allocations: 9.158 MB / 415.5 MB, free: 4.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/0.09846, allocations: 195.9 kB / 415.7 MB, free: 3.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002879/0.1013, allocations: 2.97 MB / 418.7 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001817/0.1015, allocations: 41.7 kB / 418.7 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.1027, allocations: 2.516 MB / 421.2 MB, free: 14.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004242/0.1031, allocations: 0.512 MB / 421.7 MB, free: 13.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000933/0.104, allocations: 1.076 MB / 422.8 MB, free: 12.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.1041, allocations: 345.7 kB / 423.2 MB, free: 12.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.1057, allocations: 1.599 MB / 424.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/0.1088, allocations: 5.169 MB / 429.9 MB, free: 3.832 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005482/0.1143, allocations: 7.322 MB / 437.3 MB, free: 10.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-05/0.1144, allocations: 36 kB / 437.3 MB, free: 10.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00766/0.122, allocations: 6.449 MB / 443.7 MB, free: 4.242 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/0.1221, allocations: 56 kB / 443.8 MB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/0.1222, allocations: 128 kB / 443.9 MB, free: 4.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.1223, allocations: 171.9 kB / 444.1 MB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/0.125, allocations: 1.454 MB / 445.5 MB, free: 2.438 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001242/0.1251, allocations: 247.1 kB / 445.8 MB, free: 2.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/0.1275, allocations: 0.7372 MB / 446.5 MB, free: 1.453 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003688/0.1279, allocations: 348 kB / 446.9 MB, free: 1.113 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1526/0.2805, allocations: 1.563 MB / 448.4 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003768/0.2809, allocations: 238.8 kB / 448.7 MB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.282, allocations: 0.8093 MB / 449.5 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.414e-05/0.282, allocations: 13.38 kB / 449.5 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.282, allocations: 1.875 kB / 449.5 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.282, allocations: 6.125 kB / 449.5 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/0.2855, allocations: 2.743 MB / 452.2 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.2856, allocations: 5.672 kB / 452.2 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.2866, allocations: 409.3 kB / 452.6 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.2867, allocations: 11.12 kB / 452.6 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/0.2867, allocations: 34.75 kB / 452.7 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.2867, allocations: 7.312 kB / 452.7 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2867, allocations: 3.938 kB / 452.7 MB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.2884, allocations: 2.772 MB / 455.5 MB, free: 115 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/0.2887, allocations: 215.4 kB / 455.7 MB, free: 115 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.2888, allocations: 38.7 kB / 455.7 MB, free: 115 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.2893, allocations: 34.44 kB / 455.7 MB, free: 115 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.711e-05/0.2893, allocations: 60.19 kB / 455.8 MB, free: 115 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-05/0.2894, allocations: 34.61 kB / 455.8 MB, free: 114.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001306/0.2907, allocations: 1.642 MB / 457.5 MB, free: 114.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2907, allocations: 0 / 457.5 MB, free: 114.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002522/0.2932, allocations: 0.8682 MB / 458.3 MB, free: 114.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002808/0.2935, allocations: 167.3 kB / 458.5 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002842/0.2963, allocations: 3.484 MB / 462 MB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2963, allocations: 0 / 462 MB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004442/0.2968, allocations: 0.6742 MB / 462.7 MB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.2977, allocations: 234.7 kB / 462.9 MB, free: 111.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006038/0.3037, allocations: 6.956 MB / 469.8 MB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/0.3049, allocations: 1.832 MB / 471.7 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.3053, allocations: 228.5 kB / 471.9 MB, free: 103.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.844e-06/0.3053, allocations: 3.719 kB / 471.9 MB, free: 103.3 MB / 410.7 MB Notification: Performance of Templates: time 0.03775/0.3431, allocations: 41.28 MB / 0.5012 GB, free: 62.07 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.959991933777928]