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.0007969/0.0007969, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001072/0.001869, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006575/0.0006575, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009688/0.001626, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9892/0.9892, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0826/1.072, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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.[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_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.[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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 239.5 MB, free: 3.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.288e-05/1.429e-05, allocations: 2.875 kB / 239.5 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005946/0.005961, allocations: 7.654 MB / 247.2 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.009503, allocations: 2.574 MB / 249.8 MB, free: 8.895 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004373/0.009941, allocations: 43.81 kB / 249.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.01137, allocations: 1.46 MB / 251.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00122/0.01259, allocations: 1.065 MB / 252.3 MB, free: 6.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.01297, allocations: 279.3 kB / 252.6 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00222/0.01519, allocations: 2.231 MB / 254.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.01655, allocations: 1.368 MB / 256.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.01765, allocations: 1.297 MB / 257.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009117/0.01856, allocations: 1.149 MB / 258.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.01872, allocations: 160 kB / 258.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.01944, allocations: 0.6239 MB / 259.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007421/0.02019, allocations: 1.138 MB / 260.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005015/0.02069, allocations: 0.619 MB / 261.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.02245, allocations: 2.634 MB / 263.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.649e-05/0.02247, allocations: 8 kB / 263.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.02247, allocations: 7.938 kB / 263.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.0225, allocations: 0 / 263.8 MB, free: 10.75 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.002497/0.025, allocations: 3.354 MB / 267.2 MB, free: 7.348 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.02503, allocations: 12.03 kB / 267.2 MB, free: 7.336 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.02763, allocations: 1.036 MB / 268.2 MB, free: 6.281 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008612/0.02849, allocations: 0.8941 MB / 269.1 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.02857, allocations: 159.9 kB / 269.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.02878, allocations: 203.8 kB / 269.5 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003816/0.0326, allocations: 3.866 MB / 273.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.088e-05/0.03265, allocations: 35.69 kB / 273.4 MB, free: 496 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.0328, allocations: 107.9 kB / 273.5 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1756/0.2084, allocations: 1.388 MB / 274.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007212/0.2156, allocations: 2.013 MB / 276.9 MB, free: 23.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02166/0.2372, allocations: 23.56 MB / 300.5 MB, free: 5.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006097/0.2433, allocations: 1.703 MB / 302.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004941/0.2438, allocations: 412.1 kB / 302.6 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002377/0.2462, allocations: 2.29 MB / 304.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.2462, allocations: 51.36 kB / 304.9 MB, free: 3.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=111): time 3.116e-06/0.2462, allocations: 4 kB / 304.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=111): time 0.00648/0.2527, allocations: 2.591 MB / 307.5 MB, free: 1.816 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.2527, allocations: 187.9 kB / 307.7 MB, free: 1.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.2541, allocations: 2.202 MB / 309.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.2541, allocations: 45.22 kB / 309.9 MB, free: 15.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001037/0.2552, allocations: 2.464 MB / 312.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.2554, allocations: 0.5041 MB / 312.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007318/0.2562, allocations: 1.025 MB / 313.9 MB, free: 11.83 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.2563, allocations: 345.8 kB / 314.3 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005664/0.2568, allocations: 0.5452 MB / 314.8 MB, free: 10.94 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/0.2589, allocations: 3.976 MB / 318.8 MB, free: 5.176 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003838/0.2627, allocations: 5.198 MB / 324 MB, free: 14.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.982e-05/0.2628, allocations: 36 kB / 324 MB, free: 14.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003603/0.2664, allocations: 3.65 MB / 327.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.238e-05/0.2664, allocations: 60 kB / 327.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.833e-05/0.2665, allocations: 128 kB / 327.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.484e-05/0.2666, allocations: 168 kB / 328 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.2694, allocations: 1.567 MB / 329.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001132/0.2695, allocations: 247 kB / 329.8 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/0.2713, allocations: 0.7162 MB / 330.5 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000244/0.2715, allocations: 292 kB / 330.8 MB, free: 7.344 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.0007967/0.2723, allocations: 0.5743 MB / 331.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.2725, allocations: 147.8 kB / 331.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004471/0.273, allocations: 406.7 kB / 331.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.273, allocations: 12 kB / 332 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.273, allocations: 4 kB / 332 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.273, allocations: 11.92 kB / 332 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.2753, allocations: 1.622 MB / 333.6 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.2753, allocations: 3.609 kB / 333.6 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.2765, allocations: 406.6 kB / 334 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.2767, allocations: 210.1 kB / 334.2 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.2767, allocations: 8 kB / 334.2 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.2767, allocations: 27.97 kB / 334.2 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2767, allocations: 4 kB / 334.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.2767, allocations: 7.938 kB / 334.2 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009667/0.2777, allocations: 1.405 MB / 335.7 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.2779, allocations: 27.98 kB / 335.7 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003795/0.2782, allocations: 20 kB / 335.7 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.906e-05/0.2783, allocations: 55.89 kB / 335.8 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.2783, allocations: 20 kB / 335.8 MB, free: 2.324 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006186/0.279, allocations: 0.8237 MB / 336.6 MB, free: 1.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.279, allocations: 0 / 336.6 MB, free: 1.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002157/0.2811, allocations: 0.8583 MB / 337.5 MB, free: 0.625 MB / 298.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.0002506/0.2814, allocations: 154.2 kB / 337.6 MB, free: 476 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.2834, allocations: 1.986 MB / 339.6 MB, free: 14.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001449/0.2836, allocations: 95.66 kB / 339.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.2838, allocations: 231 kB / 339.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008939/0.2847, allocations: 393.7 kB / 340.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007921/0.2926, allocations: 5.204 MB / 345.5 MB, free: 8.508 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009458/0.2936, allocations: 0.8289 MB / 346.3 MB, free: 7.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001327/0.2949, allocations: 394.4 kB / 346.7 MB, free: 7.273 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006127/0.2955, allocations: 405.3 kB / 347.1 MB, free: 6.879 MB / 314.7 MB Notification: Performance of SimCode: time 1.724e-06/0.2955, allocations: 0 / 347.1 MB, free: 6.879 MB / 314.7 MB Notification: Performance of Templates: time 0.03474/0.3302, allocations: 17.94 MB / 365.1 MB, free: 5.113 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.345099707134068]