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.001772/0.001772, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 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.002095/0.002095, allocations: 157.4 kB / 24.48 MB, free: 3.465 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.443/1.443, allocations: 173.4 MB / 201.1 MB, free: 12.57 MB / 190.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.001553/0.001553, allocations: 50.36 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.08636, allocations: 52.15 MB / 371.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009261/0.09562, allocations: 7.061 MB / 378.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005108/0.1007, allocations: 2.392 MB / 381 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00046/0.1012, allocations: 39.88 kB / 381.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00276/0.1039, allocations: 1.398 MB / 382.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001979/0.1059, allocations: 1.035 MB / 383.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.1065, allocations: 263.4 kB / 383.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.1091, allocations: 2.181 MB / 385.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.1106, allocations: 1.341 MB / 387.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009567/0.1116, allocations: 0.8639 MB / 388.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.1132, allocations: 1.249 MB / 389.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002936/0.1135, allocations: 164 kB / 389.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1146, allocations: 0.5656 MB / 390.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.1157, allocations: 1.199 MB / 391.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.1167, allocations: 0.9818 MB / 392.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004372/0.1211, allocations: 4.345 MB / 396.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1211, allocations: 3.984 kB / 396.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1211, allocations: 4 kB / 396.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.1212, allocations: 0 / 396.7 MB, free: 14.12 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.004247/0.1254, allocations: 2.958 MB / 399.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1254, allocations: 8.922 kB / 399.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007319/0.1328, allocations: 1.945 MB / 401.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.1349, allocations: 1.113 MB / 402.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.135, allocations: 159.8 kB / 402.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.1354, allocations: 203.8 kB / 403 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.1517, allocations: 8.223 MB / 411.3 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.36e-05/0.1518, allocations: 39.69 kB / 411.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002623/0.152, allocations: 107.9 kB / 411.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00264/0.1547, allocations: 1.554 MB / 413 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.171, allocations: 6.765 MB / 419.7 MB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0334/0.2044, allocations: 27.65 MB / 447.4 MB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01887/0.2232, allocations: 4.453 MB / 451.8 MB, free: 5.316 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.2245, allocations: 0.814 MB / 452.6 MB, free: 4.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004644/0.2291, allocations: 2.609 MB / 455.2 MB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.2292, allocations: 54.77 kB / 455.3 MB, free: 1.777 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.106e-06/0.2292, allocations: 0 / 455.3 MB, free: 1.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.03902/0.2682, allocations: 8.447 MB / 463.7 MB, free: 9.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.2683, allocations: 199.9 kB / 463.9 MB, free: 9.082 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003876/0.2722, allocations: 2.973 MB / 466.9 MB, free: 6.086 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.2723, allocations: 41.7 kB / 467 MB, free: 6.039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.2743, allocations: 2.551 MB / 469.5 MB, free: 3.461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005703/0.2749, allocations: 0.5119 MB / 470 MB, free: 2.945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/0.2762, allocations: 1.088 MB / 471.1 MB, free: 1.848 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.2764, allocations: 334 kB / 471.4 MB, free: 1.516 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.2786, allocations: 1.482 MB / 472.9 MB, free: 28 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1732/0.4518, allocations: 5.039 MB / 477.9 MB, free: 86.67 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/0.4579, allocations: 7.066 MB / 485 MB, free: 80.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001377/0.458, allocations: 36.7 kB / 485.1 MB, free: 80.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008829/0.4669, allocations: 6.17 MB / 491.2 MB, free: 78.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/0.467, allocations: 60.67 kB / 491.3 MB, free: 78.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001125/0.4671, allocations: 137.9 kB / 491.4 MB, free: 78.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.4672, allocations: 162.7 kB / 491.6 MB, free: 78.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/0.4714, allocations: 1.456 MB / 493 MB, free: 78.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000127/0.4715, allocations: 248.7 kB / 493.3 MB, free: 78.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002832/0.4744, allocations: 0.7367 MB / 494 MB, free: 78.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003324/0.4747, allocations: 343.5 kB / 494.3 MB, free: 78.01 MB / 430.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.001585/0.4763, allocations: 1.571 MB / 495.9 MB, free: 77.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.4766, allocations: 239.5 kB / 496.1 MB, free: 77.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008366/0.4774, allocations: 0.6786 MB / 496.8 MB, free: 76.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.979e-05/0.4774, allocations: 16.69 kB / 496.8 MB, free: 76.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4774, allocations: 7.578 kB / 496.9 MB, free: 76.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.4774, allocations: 3.984 kB / 496.9 MB, free: 76.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003437/0.4809, allocations: 2.47 MB / 499.3 MB, free: 74.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.4809, allocations: 9.125 kB / 499.3 MB, free: 74.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002121/0.483, allocations: 407.2 kB / 499.7 MB, free: 74.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.483, allocations: 4 kB / 499.7 MB, free: 74.42 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/0.4831, allocations: 31.8 kB / 499.8 MB, free: 74.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.4831, allocations: 7.938 kB / 499.8 MB, free: 74.39 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4831, allocations: 3.938 kB / 499.8 MB, free: 74.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.4851, allocations: 2.47 MB / 0.4905 GB, free: 72.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.4854, allocations: 213.6 kB / 0.4907 GB, free: 71.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.4856, allocations: 38.05 kB / 0.4907 GB, free: 71.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007927/0.4864, allocations: 44.45 kB / 0.4908 GB, free: 71.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.474e-05/0.4865, allocations: 55.88 kB / 0.4908 GB, free: 71.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.4865, allocations: 35.75 kB / 0.4908 GB, free: 71.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001535/0.4881, allocations: 1.639 MB / 0.4924 GB, free: 70.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4881, allocations: 4 kB / 0.4925 GB, free: 70.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003448/0.4915, allocations: 0.8564 MB / 0.4933 GB, free: 69.64 MB / 430.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.0002808/0.4918, allocations: 168.4 kB / 0.4934 GB, free: 69.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003782/0.4956, allocations: 3.227 MB / 0.4966 GB, free: 66.65 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.4956, allocations: 0 / 0.4966 GB, free: 66.65 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005579/0.4961, allocations: 0.5531 MB / 0.4971 GB, free: 66.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.4974, allocations: 219.2 kB / 0.4973 GB, free: 65.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007526/0.5049, allocations: 7.026 MB / 0.5042 GB, free: 59.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/0.5066, allocations: 1.825 MB / 0.506 GB, free: 57.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002719/0.5093, allocations: 1.605 MB / 0.5076 GB, free: 55.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.5096, allocations: 172.5 kB / 0.5077 GB, free: 55.63 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5096, allocations: 0 / 0.5077 GB, free: 55.63 MB / 430.1 MB Notification: Performance of Templates: time 0.03036/0.54, allocations: 15.27 MB / 0.5226 GB, free: 40.78 MB / 430.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 -s ida -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: 5.768995058955625]