Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.001732/0.001732, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.002186/0.002186, allocations: 214.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 51.92 kB / 347.7 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2662, allocations: 49.16 MB / 396.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007367/0.2735, allocations: 7.045 MB / 403.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004441/0.278, allocations: 2.44 MB / 406.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006295/0.2786, allocations: 43.28 kB / 406.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002424/0.281, allocations: 1.395 MB / 407.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002005/0.283, allocations: 1.028 MB / 408.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006786/0.2837, allocations: 261.7 kB / 409.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00235/0.2861, allocations: 2.19 MB / 411.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.2873, allocations: 1.343 MB / 412.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.2885, allocations: 0.8541 MB / 413.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.2901, allocations: 1.247 MB / 414.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003109/0.2905, allocations: 161 kB / 414.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.2917, allocations: 0.5662 MB / 415.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.2929, allocations: 1.19 MB / 416.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001144/0.294, allocations: 0.9942 MB / 417.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005312/0.2994, allocations: 4.341 MB / 421.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2994, allocations: 0 / 421.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2994, allocations: 0 / 421.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.19e-05/0.2995, allocations: 0 / 421.9 MB, free: 10.01 MB / 334.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.005113/0.3046, allocations: 2.958 MB / 424.9 MB, free: 7.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3046, allocations: 11.98 kB / 424.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006587/0.3112, allocations: 1.8 MB / 426.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.3138, allocations: 1.117 MB / 427.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.314, allocations: 147.8 kB / 428 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000437/0.3144, allocations: 203.8 kB / 428.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02061/0.3351, allocations: 8.621 MB / 436.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.3352, allocations: 43.69 kB / 436.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/0.3354, allocations: 111.8 kB / 436.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003037/0.3385, allocations: 1.655 MB / 438.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01915/0.3576, allocations: 7.174 MB / 445.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04028/0.3979, allocations: 28.52 MB / 474.3 MB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02232/0.4202, allocations: 4.512 MB / 478.8 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.4221, allocations: 1.193 MB / 480 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005304/0.4274, allocations: 3.068 MB / 483.1 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.4275, allocations: 42.83 kB / 483.1 MB, free: 11.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 2.855e-06/0.4275, allocations: 0 / 483.1 MB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04485/0.4723, allocations: 8.955 MB / 492.1 MB, free: 2.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.4724, allocations: 191.9 kB / 492.2 MB, free: 1.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004664/0.4771, allocations: 2.974 MB / 495.2 MB, free: 14.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002352/0.4773, allocations: 45.64 kB / 495.3 MB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/0.4795, allocations: 2.547 MB / 497.8 MB, free: 12.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007135/0.4802, allocations: 0.5158 MB / 498.3 MB, free: 11.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001536/0.4817, allocations: 1.096 MB / 499.4 MB, free: 10.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.4819, allocations: 337.9 kB / 499.8 MB, free: 10.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002504/0.4844, allocations: 1.607 MB / 0.4896 GB, free: 8.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006011/0.4904, allocations: 5.169 MB / 0.4947 GB, free: 1.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009804/0.5002, allocations: 7.334 MB / 0.5018 GB, free: 8.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/0.5004, allocations: 36 kB / 0.5019 GB, free: 8.613 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0176/0.518, allocations: 6.424 MB / 0.5081 GB, free: 2.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.5181, allocations: 60 kB / 0.5082 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/0.5183, allocations: 132 kB / 0.5083 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.5186, allocations: 167.9 kB / 0.5085 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007488/0.5261, allocations: 1.454 MB / 0.5099 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004246/0.5265, allocations: 247.6 kB / 0.5101 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006705/0.5332, allocations: 0.7485 MB / 0.5109 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/0.5346, allocations: 340 kB / 0.5112 GB, free: 15.05 MB / 446.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.004789/0.5394, allocations: 1.567 MB / 0.5127 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009401/0.5404, allocations: 242.4 kB / 0.5129 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.5428, allocations: 0.8187 MB / 0.5137 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/0.5429, allocations: 16 kB / 0.5138 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.5429, allocations: 3.938 kB / 0.5138 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.951e-05/0.5429, allocations: 7.984 kB / 0.5138 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008535/0.5515, allocations: 2.733 MB / 0.5164 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.5515, allocations: 0 / 0.5164 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003404/0.5549, allocations: 407.5 kB / 0.5168 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.816e-05/0.5549, allocations: 7.938 kB / 0.5168 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.555, allocations: 35.97 kB / 0.5169 GB, free: 9.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.5551, allocations: 4 kB / 0.5169 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.5551, allocations: 7.938 kB / 0.5169 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00396/0.559, allocations: 2.774 MB / 0.5196 GB, free: 6.352 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000693/0.5597, allocations: 206.2 kB / 0.5198 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003962/0.5601, allocations: 35.92 kB / 0.5198 GB, free: 6.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008859/0.561, allocations: 35.95 kB / 0.5199 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.5611, allocations: 59.89 kB / 0.5199 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.5612, allocations: 31.98 kB / 0.5199 GB, free: 5.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002673/0.5639, allocations: 1.646 MB / 0.5216 GB, free: 4.332 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5639, allocations: 0 / 0.5216 GB, free: 4.332 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004207/0.5681, allocations: 0.8691 MB / 0.5224 GB, free: 3.461 MB / 446.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.0004029/0.5685, allocations: 159 kB / 0.5226 GB, free: 3.293 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005614/0.5741, allocations: 3.476 MB / 0.5259 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5741, allocations: 0 / 0.5259 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009628/0.5751, allocations: 0.688 MB / 0.5266 GB, free: 15.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.5766, allocations: 222.1 kB / 0.5268 GB, free: 14.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.5905, allocations: 7.124 MB / 0.5338 GB, free: 7.758 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003193/0.5937, allocations: 1.829 MB / 0.5356 GB, free: 5.898 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003778/0.5974, allocations: 1.601 MB / 0.5371 GB, free: 4.293 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/0.5979, allocations: 175.4 kB / 0.5373 GB, free: 4.121 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5979, allocations: 0 / 0.5373 GB, free: 4.121 MB / 462.1 MB Notification: Performance of Templates: time 0.04519/0.6431, allocations: 18.45 MB / 0.5553 GB, free: 1.617 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 6.3568552024662495]