Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00205/0.00205, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 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.002517/0.002517, allocations: 218.2 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 43.92 kB / 378.2 MB, free: 2.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2293, allocations: 53.36 MB / 431.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009585/0.2389, allocations: 7.028 MB / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005122/0.244, allocations: 2.438 MB / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.2451, allocations: 35.88 kB / 441.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003205/0.2483, allocations: 1.398 MB / 442.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002693/0.251, allocations: 1.027 MB / 443.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009034/0.2519, allocations: 267.5 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.255, allocations: 2.149 MB / 445.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.257, allocations: 1.35 MB / 447.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001378/0.2584, allocations: 0.8484 MB / 448.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002022/0.2604, allocations: 1.242 MB / 449.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004808/0.2609, allocations: 163.9 kB / 449.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.2623, allocations: 0.5772 MB / 450.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001376/0.2637, allocations: 1.172 MB / 451.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/0.2654, allocations: 0.9855 MB / 452.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005136/0.2706, allocations: 4.294 MB / 456.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2706, allocations: 0 / 456.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2706, allocations: 0 / 456.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.2707, allocations: 4 kB / 456.6 MB, free: 13.68 MB / 366.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.005743/0.2764, allocations: 2.934 MB / 459.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2765, allocations: 8.031 kB / 459.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007054/0.2835, allocations: 1.8 MB / 461.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.2864, allocations: 1.109 MB / 462.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.2866, allocations: 155.8 kB / 462.6 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006188/0.2872, allocations: 211.8 kB / 462.8 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.3069, allocations: 8.629 MB / 471.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.453e-05/0.307, allocations: 43.62 kB / 471.4 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002897/0.3073, allocations: 103.9 kB / 471.5 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00317/0.3105, allocations: 1.667 MB / 473.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/0.3287, allocations: 7.17 MB / 480.4 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03508/0.3638, allocations: 28.5 MB / 0.497 GB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02237/0.3861, allocations: 4.542 MB / 0.5014 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/0.3879, allocations: 1.191 MB / 0.5025 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005667/0.3936, allocations: 3.08 MB / 0.5056 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.3936, allocations: 46.89 kB / 0.5056 GB, free: 14.78 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.176e-06/0.3936, allocations: 0 / 0.5056 GB, free: 14.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04633/0.44, allocations: 8.978 MB / 0.5144 GB, free: 5.789 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.4401, allocations: 187.9 kB / 0.5145 GB, free: 5.562 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005065/0.4452, allocations: 2.969 MB / 0.5174 GB, free: 2.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.4454, allocations: 45.69 kB / 0.5175 GB, free: 2.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002345/0.4477, allocations: 2.539 MB / 0.52 GB, free: 15.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008322/0.4486, allocations: 0.5158 MB / 0.5205 GB, free: 15.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001884/0.4505, allocations: 1.096 MB / 0.5215 GB, free: 14.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4506, allocations: 341.9 kB / 0.5219 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.4532, allocations: 1.611 MB / 0.5234 GB, free: 12.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006046/0.4592, allocations: 5.173 MB / 0.5285 GB, free: 5.391 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.4695, allocations: 7.335 MB / 0.5357 GB, free: 12.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001951/0.4697, allocations: 36 kB / 0.5357 GB, free: 12.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01392/0.4836, allocations: 6.438 MB / 0.542 GB, free: 5.793 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002307/0.4838, allocations: 61 kB / 0.542 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002827/0.4841, allocations: 128 kB / 0.5422 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/0.4843, allocations: 172 kB / 0.5423 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005658/0.49, allocations: 1.458 MB / 0.5437 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002893/0.4903, allocations: 250.8 kB / 0.544 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/0.4948, allocations: 0.733 MB / 0.5447 GB, free: 3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/0.4958, allocations: 351.9 kB / 0.545 GB, free: 2.656 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.003653/0.4995, allocations: 1.567 MB / 0.5466 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006295/0.5001, allocations: 242.4 kB / 0.5468 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008145/0.5009, allocations: 293.1 kB / 0.5471 GB, free: 0.543 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/0.501, allocations: 12 kB / 0.5471 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/0.501, allocations: 7.938 kB / 0.5471 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.501, allocations: 3.984 kB / 0.5471 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2311/0.7321, allocations: 2.721 MB / 0.5498 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.7321, allocations: 1.891 kB / 0.5498 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/0.7344, allocations: 414.6 kB / 0.5502 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-05/0.7344, allocations: 13 kB / 0.5502 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.7346, allocations: 34.09 kB / 0.5502 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.798e-06/0.7346, allocations: 4.906 kB / 0.5502 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.7346, allocations: 3.719 kB / 0.5502 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.738, allocations: 2.786 MB / 0.5529 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006235/0.7386, allocations: 216.4 kB / 0.5531 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.7389, allocations: 28.19 kB / 0.5532 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008628/0.7397, allocations: 43.7 kB / 0.5532 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.7399, allocations: 62.22 kB / 0.5533 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-05/0.74, allocations: 39.59 kB / 0.5533 GB, free: 113 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.7423, allocations: 1.636 MB / 0.5549 GB, free: 112.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.7423, allocations: 0 / 0.5549 GB, free: 112.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003803/0.7461, allocations: 0.8497 MB / 0.5557 GB, free: 112.2 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.0003652/0.7464, allocations: 170.1 kB / 0.5559 GB, free: 112.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.751, allocations: 3.482 MB / 0.5593 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.751, allocations: 0 / 0.5593 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.7517, allocations: 0.6878 MB / 0.56 GB, free: 110.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.7532, allocations: 235.3 kB / 0.5602 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009533/0.7627, allocations: 7.113 MB / 0.5671 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.7645, allocations: 1.831 MB / 0.5689 GB, free: 103.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003001/0.7675, allocations: 1.606 MB / 0.5705 GB, free: 102.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/0.7679, allocations: 178.1 kB / 0.5707 GB, free: 102.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7679, allocations: 0 / 0.5707 GB, free: 102.5 MB / 462.1 MB Notification: Performance of Templates: time 0.03327/0.8012, allocations: 18.3 MB / 0.5885 GB, free: 84.68 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.2907630037516356]