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.001662/0.001662, allocations: 108.6 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001998/0.001998, allocations: 193.1 kB / 24.47 MB, free: 4.152 MB / 14.72 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 1.488/1.488, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001578/0.001578, allocations: 43.92 kB / 371.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2688, allocations: 52.18 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01066/0.2795, allocations: 8.036 MB / 431.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00561/0.2851, allocations: 2.551 MB / 434.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.2862, allocations: 43.81 kB / 434.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003053/0.2893, allocations: 1.444 MB / 436 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003137/0.2924, allocations: 1.027 MB / 437 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007566/0.2932, allocations: 275.4 kB / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003249/0.2964, allocations: 2.195 MB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001776/0.2982, allocations: 1.346 MB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.2994, allocations: 0.8562 MB / 441.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001811/0.3012, allocations: 1.3 MB / 442.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.3016, allocations: 160 kB / 443.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.303, allocations: 0.6942 MB / 443.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.3042, allocations: 1.196 MB / 445 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.3056, allocations: 1.363 MB / 446.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.3109, allocations: 4.329 MB / 450.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3109, allocations: 0 / 450.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3109, allocations: 0 / 450.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001213/0.311, allocations: 0 / 450.7 MB, free: 3.766 MB / 350.1 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.004953/0.316, allocations: 2.969 MB / 453.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.316, allocations: 8.031 kB / 453.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006572/0.3226, allocations: 1.797 MB / 455.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002833/0.3254, allocations: 1.109 MB / 456.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3256, allocations: 159.8 kB / 456.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004418/0.326, allocations: 203.8 kB / 456.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.3456, allocations: 8.588 MB / 465.5 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.3457, allocations: 43.64 kB / 465.6 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006025/0.3463, allocations: 103.9 kB / 465.7 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0031/0.3494, allocations: 1.663 MB / 467.3 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01916/0.3686, allocations: 7.167 MB / 474.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04465/0.4132, allocations: 30.07 MB / 0.4927 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02343/0.4366, allocations: 4.536 MB / 0.4972 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.4386, allocations: 1.193 MB / 0.4983 GB, free: 6.496 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006509/0.4451, allocations: 3.282 MB / 0.5015 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.06e-05/0.4451, allocations: 54.83 kB / 0.5016 GB, free: 3.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.797e-06/0.4451, allocations: 0 / 0.5016 GB, free: 3.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04641/0.4915, allocations: 8.963 MB / 0.5103 GB, free: 10.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.4917, allocations: 199.8 kB / 0.5105 GB, free: 9.906 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005398/0.4971, allocations: 3.044 MB / 0.5135 GB, free: 6.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.4972, allocations: 45.69 kB / 0.5135 GB, free: 6.793 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002344/0.4996, allocations: 2.531 MB / 0.516 GB, free: 4.234 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008136/0.5004, allocations: 0.5119 MB / 0.5165 GB, free: 3.719 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002061/0.5024, allocations: 1.104 MB / 0.5176 GB, free: 2.605 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5026, allocations: 301.1 kB / 0.5179 GB, free: 2.309 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/0.5054, allocations: 1.607 MB / 0.5194 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006318/0.5117, allocations: 5.165 MB / 0.5245 GB, free: 9.727 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009669/0.5214, allocations: 7.323 MB / 0.5316 GB, free: 0.625 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/0.5215, allocations: 40 kB / 0.5317 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01315/0.5347, allocations: 6.448 MB / 0.538 GB, free: 10.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/0.5348, allocations: 60.06 kB / 0.538 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/0.5351, allocations: 132 kB / 0.5382 GB, free: 9.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002332/0.5353, allocations: 168 kB / 0.5383 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005413/0.5407, allocations: 1.45 MB / 0.5397 GB, free: 8.328 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002954/0.541, allocations: 251 kB / 0.54 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/0.5451, allocations: 0.7717 MB / 0.5407 GB, free: 7.305 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000866/0.546, allocations: 340 kB / 0.5411 GB, free: 6.973 MB / 462.1 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.003026/0.549, allocations: 1.575 MB / 0.5426 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006108/0.5496, allocations: 262.2 kB / 0.5428 GB, free: 5.129 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.5512, allocations: 0.8253 MB / 0.5436 GB, free: 4.293 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.21e-05/0.5513, allocations: 15.94 kB / 0.5437 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.5513, allocations: 4.047 kB / 0.5437 GB, free: 4.273 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.5513, allocations: 8.344 kB / 0.5437 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007701/0.559, allocations: 3.372 MB / 0.547 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.559, allocations: 4 kB / 0.547 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002405/0.5614, allocations: 407.4 kB / 0.5474 GB, free: 444 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.929e-05/0.5614, allocations: 7.938 kB / 0.5474 GB, free: 436 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/0.5616, allocations: 39.97 kB / 0.5474 GB, free: 396 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.5616, allocations: 4 kB / 0.5474 GB, free: 392 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5616, allocations: 0 / 0.5474 GB, free: 392 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2362/0.7978, allocations: 2.797 MB / 0.5501 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005614/0.7983, allocations: 238 kB / 0.5504 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.7986, allocations: 31.73 kB / 0.5504 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009018/0.7995, allocations: 37.48 kB / 0.5504 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.7996, allocations: 67.5 kB / 0.5505 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.863e-05/0.7997, allocations: 35.17 kB / 0.5505 GB, free: 120.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002607/0.8023, allocations: 1.842 MB / 0.5523 GB, free: 119.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8023, allocations: 0 / 0.5523 GB, free: 119.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003504/0.8058, allocations: 0.8404 MB / 0.5532 GB, free: 119.6 MB / 462.1 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.0003333/0.8062, allocations: 162.5 kB / 0.5533 GB, free: 119.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00439/0.8105, allocations: 3.493 MB / 0.5567 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.8106, allocations: 2.297 kB / 0.5567 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007221/0.8113, allocations: 0.6807 MB / 0.5574 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.8128, allocations: 254.3 kB / 0.5576 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009585/0.8224, allocations: 7.49 MB / 0.5649 GB, free: 113.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001724/0.8241, allocations: 2.394 MB / 0.5673 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006047/0.8247, allocations: 233.3 kB / 0.5675 GB, free: 111.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.233e-06/0.8247, allocations: 1.688 kB / 0.5675 GB, free: 111.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05191/0.8766, allocations: 41.32 MB / 0.6079 GB, free: 71.3 MB / 462.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/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: 11.409512203885242]