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.001531/0.001531, allocations: 96.3 kB / 21.73 MB, free: 2.699 MB / 18.57 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.001489/0.001489, allocations: 159.8 kB / 25.02 MB, free: 8.422 MB / 18.57 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.404/1.404, allocations: 158.6 MB / 186.8 MB, free: 2.863 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 250.4 MB, free: 3.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.256e-05/3.442e-05, allocations: 2.312 kB / 250.4 MB, free: 3.914 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01567/0.01571, allocations: 7.048 MB / 257.4 MB, free: 12.83 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009419/0.02513, allocations: 2.443 MB / 259.9 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009227/0.02605, allocations: 43.81 kB / 259.9 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005686/0.03173, allocations: 1.479 MB / 261.4 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004183/0.03592, allocations: 1.049 MB / 262.4 MB, free: 7.797 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.03713, allocations: 283.2 kB / 262.7 MB, free: 7.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005136/0.04227, allocations: 2.233 MB / 264.9 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00354/0.04581, allocations: 1.395 MB / 266.3 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004427/0.05024, allocations: 1.251 MB / 267.6 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003886/0.05412, allocations: 1.208 MB / 268.8 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007454/0.05487, allocations: 156 kB / 269 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002649/0.05752, allocations: 0.6084 MB / 269.6 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002535/0.06005, allocations: 1.239 MB / 270.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.0622, allocations: 0.7357 MB / 271.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009833/0.07203, allocations: 4.239 MB / 275.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.07204, allocations: 0 / 275.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.07204, allocations: 0 / 275.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001079/0.07215, allocations: 0 / 275.8 MB, free: 10.39 MB / 266.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.009343/0.08149, allocations: 2.93 MB / 278.7 MB, free: 7.414 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.08155, allocations: 11.98 kB / 278.7 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008378/0.08993, allocations: 2.304 MB / 281 MB, free: 5.094 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.09283, allocations: 1.113 MB / 282.1 MB, free: 3.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.09301, allocations: 151.9 kB / 282.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005944/0.0936, allocations: 211.8 kB / 282.5 MB, free: 3.598 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.1135, allocations: 8.234 MB / 290.7 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/0.1136, allocations: 35.7 kB / 290.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005293/0.1141, allocations: 103.9 kB / 290.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002985/0.1171, allocations: 1.565 MB / 292.4 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/0.1353, allocations: 6.761 MB / 299.2 MB, free: 2.293 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1446/0.2799, allocations: 27.62 MB / 326.8 MB, free: 33.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/0.2979, allocations: 4.45 MB / 331.3 MB, free: 31.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.299, allocations: 0.8245 MB / 332.1 MB, free: 31.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004158/0.3031, allocations: 2.618 MB / 334.7 MB, free: 29.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.3032, allocations: 46.88 kB / 334.7 MB, free: 29.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 4.408e-06/0.3032, allocations: 4 kB / 334.7 MB, free: 29.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.03509/0.3383, allocations: 8.478 MB / 343.2 MB, free: 21.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.3383, allocations: 195.9 kB / 343.4 MB, free: 20.97 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003273/0.3416, allocations: 2.966 MB / 346.4 MB, free: 18.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.3417, allocations: 41.7 kB / 346.4 MB, free: 18.09 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009642/0.3427, allocations: 2.517 MB / 348.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003282/0.343, allocations: 0.511 MB / 349.4 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009798/0.344, allocations: 1.068 MB / 350.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.904e-05/0.3441, allocations: 341.9 kB / 350.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.3457, allocations: 1.478 MB / 352.3 MB, free: 12.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002903/0.3486, allocations: 5.04 MB / 357.4 MB, free: 5.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007351/0.356, allocations: 7.09 MB / 364.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.221e-05/0.3561, allocations: 37.56 kB / 364.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01259/0.3686, allocations: 6.47 MB / 371 MB, free: 6.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.671e-05/0.3687, allocations: 60 kB / 371 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/0.3689, allocations: 128.2 kB / 371.1 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.3691, allocations: 168 kB / 371.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00532/0.3745, allocations: 1.45 MB / 372.8 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002525/0.3747, allocations: 247.1 kB / 373 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/0.3784, allocations: 0.7368 MB / 373.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005438/0.3789, allocations: 343.9 kB / 374.1 MB, free: 2.969 MB / 298.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.002618/0.3816, allocations: 1.579 MB / 375.7 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005384/0.3821, allocations: 266.4 kB / 375.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.3835, allocations: 0.6744 MB / 376.6 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.375e-05/0.3835, allocations: 19.83 kB / 376.6 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.3835, allocations: 0 / 376.6 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.3835, allocations: 7.984 kB / 376.6 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006037/0.3896, allocations: 2.477 MB / 379.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.3896, allocations: 4 kB / 379.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/0.392, allocations: 399.5 kB / 379.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/0.392, allocations: 4 kB / 379.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.3921, allocations: 39.73 kB / 379.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.526e-05/0.3921, allocations: 11.88 kB / 379.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3921, allocations: 0 / 379.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.3957, allocations: 2.505 MB / 382 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005198/0.3962, allocations: 206.2 kB / 382.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/0.3965, allocations: 35.98 kB / 382.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008474/0.3973, allocations: 43.89 kB / 382.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3975, allocations: 57.84 kB / 382.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.979e-05/0.3975, allocations: 31.98 kB / 382.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002778/0.4003, allocations: 1.643 MB / 384.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4003, allocations: 3.938 kB / 384.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004301/0.4046, allocations: 0.8536 MB / 384.9 MB, free: 8.07 MB / 314.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.0004443/0.4051, allocations: 166.6 kB / 385.1 MB, free: 7.902 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006164/0.4112, allocations: 3.223 MB / 388.3 MB, free: 4.711 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/0.4112, allocations: 4 kB / 388.3 MB, free: 4.707 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009406/0.4122, allocations: 0.5513 MB / 388.9 MB, free: 4.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.4138, allocations: 226.8 kB / 389.1 MB, free: 3.945 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/0.426, allocations: 6.652 MB / 395.7 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00275/0.4288, allocations: 1.829 MB / 397.6 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.004026/0.4328, allocations: 1.604 MB / 399.2 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000506/0.4333, allocations: 176.4 kB / 399.3 MB, free: 9.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4333, allocations: 0 / 399.3 MB, free: 9.59 MB / 330.7 MB Notification: Performance of Templates: time 0.04188/0.4752, allocations: 15.28 MB / 414.6 MB, free: 10.38 MB / 346.7 MB " [Timeout remaining time 660] 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: 5.918592715985142]