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.001019/0.001019, allocations: 85.95 kB / 23 MB, free: 1.5 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.001167/0.001167, allocations: 176.8 kB / 26.4 MB, free: 7.758 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.011/1.011, allocations: 158.6 MB / 188.3 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",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.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.924e-05, allocations: 6.25 kB / 252.3 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00684/0.006869, allocations: 7.55 MB / 259.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004489/0.01136, allocations: 2.486 MB / 262.3 MB, free: 13.15 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.01214, allocations: 43.88 kB / 262.3 MB, free: 13.11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.01391, allocations: 1.499 MB / 263.8 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001597/0.0155, allocations: 1.057 MB / 264.9 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005083/0.01601, allocations: 279.2 kB / 265.2 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002181/0.01819, allocations: 2.25 MB / 267.4 MB, free: 8.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/0.01984, allocations: 1.399 MB / 268.8 MB, free: 6.578 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.02127, allocations: 1.259 MB / 270.1 MB, free: 5.316 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.02268, allocations: 1.231 MB / 271.3 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.0229, allocations: 156 kB / 271.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009743/0.02388, allocations: 0.6084 MB / 272.1 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008356/0.02471, allocations: 1.243 MB / 273.3 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006796/0.02539, allocations: 0.7435 MB / 274.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003003/0.02839, allocations: 2.797 MB / 276.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.0284, allocations: 4 kB / 276.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.0284, allocations: 0 / 276.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.449e-05/0.02849, allocations: 0 / 276.9 MB, free: 14.52 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.003516/0.032, allocations: 3.246 MB / 280.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.03205, allocations: 11.98 kB / 280.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.03504, allocations: 1.204 MB / 281.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.03643, allocations: 1.001 MB / 282.3 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.502e-05/0.03651, allocations: 156 kB / 282.5 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/0.03675, allocations: 211.8 kB / 282.7 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006238/0.04299, allocations: 4.626 MB / 287.3 MB, free: 3.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.866e-05/0.04306, allocations: 43.67 kB / 287.4 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001843/0.04324, allocations: 103.9 kB / 287.5 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001312/0.04455, allocations: 1.382 MB / 288.8 MB, free: 1.633 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005531/0.05009, allocations: 2.282 MB / 291.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.07612, allocations: 33.62 MB / 324.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007962/0.08408, allocations: 2.642 MB / 327.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000519/0.0846, allocations: 329.7 kB / 327.7 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003477/0.08808, allocations: 2.573 MB / 330.3 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.08812, allocations: 49.66 kB / 330.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.867e-06/0.08812, allocations: 0 / 330.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01981/0.1079, allocations: 4.64 MB / 335 MB, free: 2.227 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.269e-05/0.108, allocations: 199.8 kB / 335.2 MB, free: 1.988 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003393/0.1114, allocations: 2.786 MB / 337.9 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.1116, allocations: 41.7 kB / 338 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.1139, allocations: 2.694 MB / 340.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005223/0.1144, allocations: 0.5352 MB / 341.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/0.1156, allocations: 1.199 MB / 342.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1158, allocations: 0.5081 MB / 342.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007028/0.1165, allocations: 406.5 kB / 343.3 MB, free: 9.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003616/0.1201, allocations: 5.716 MB / 349 MB, free: 1.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1749/0.295, allocations: 6.825 MB / 355.9 MB, free: 77.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/0.2951, allocations: 37.66 kB / 355.9 MB, free: 77.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005999/0.3011, allocations: 4.24 MB / 360.1 MB, free: 77.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.3012, allocations: 59.81 kB / 360.2 MB, free: 77.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.35e-05/0.3012, allocations: 131 kB / 360.3 MB, free: 77.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.355e-05/0.3013, allocations: 167.9 kB / 360.5 MB, free: 77.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/0.3038, allocations: 1.355 MB / 361.8 MB, free: 77.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001477/0.3039, allocations: 252.5 kB / 362.1 MB, free: 77.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003599/0.3075, allocations: 0.7073 MB / 362.8 MB, free: 77.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003521/0.3079, allocations: 303.1 kB / 363.1 MB, free: 77.15 MB / 330.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.0009624/0.3088, allocations: 0.6156 MB / 363.7 MB, free: 76.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003841/0.3092, allocations: 266.9 kB / 364 MB, free: 76.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006023/0.3098, allocations: 462.1 kB / 364.4 MB, free: 76.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.3098, allocations: 11.69 kB / 364.4 MB, free: 76.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3098, allocations: 3.938 kB / 364.4 MB, free: 76.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3099, allocations: 7.688 kB / 364.4 MB, free: 76.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.3126, allocations: 1.816 MB / 366.3 MB, free: 76.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.3126, allocations: 0 / 366.3 MB, free: 76.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3137, allocations: 305.1 kB / 366.6 MB, free: 76.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.948e-06/0.3137, allocations: 9.469 kB / 366.6 MB, free: 76.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.418e-05/0.3137, allocations: 31.17 kB / 366.6 MB, free: 76.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.3137, allocations: 8.047 kB / 366.6 MB, free: 76.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3137, allocations: 2.656 kB / 366.6 MB, free: 76.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3149, allocations: 1.672 MB / 368.3 MB, free: 75.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002331/0.3151, allocations: 217.4 kB / 368.5 MB, free: 74.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.3152, allocations: 30.14 kB / 368.5 MB, free: 74.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.3157, allocations: 24.67 kB / 368.5 MB, free: 74.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.843e-05/0.3157, allocations: 58.52 kB / 368.6 MB, free: 74.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.3158, allocations: 29.67 kB / 368.6 MB, free: 74.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000898/0.3167, allocations: 1.046 MB / 369.7 MB, free: 74.11 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3167, allocations: 0 / 369.7 MB, free: 74.11 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003063/0.3197, allocations: 0.8611 MB / 370.5 MB, free: 73.41 MB / 330.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.0003294/0.3201, allocations: 171.2 kB / 370.7 MB, free: 73.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.3231, allocations: 2.122 MB / 372.8 MB, free: 71.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.3231, allocations: 0 / 372.8 MB, free: 71.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.3235, allocations: 287.9 kB / 373.1 MB, free: 71.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.3246, allocations: 227.4 kB / 373.3 MB, free: 71.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007098/0.3317, allocations: 5.534 MB / 378.9 MB, free: 66.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.3324, allocations: 0.8442 MB / 379.7 MB, free: 66.14 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001/0.3334, allocations: 396.4 kB / 380.1 MB, free: 65.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.3338, allocations: 431.6 kB / 380.5 MB, free: 65.46 MB / 330.7 MB Notification: Performance of SimCode: time 2.034e-06/0.3338, allocations: 0 / 380.5 MB, free: 65.46 MB / 330.7 MB Notification: Performance of Templates: time 0.02826/0.362, allocations: 17.81 MB / 398.3 MB, free: 48.29 MB / 330.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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8753533023409545]