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.001648/0.001648, allocations: 81.58 kB / 20.68 MB, free: 1.023 MB / 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.001855/0.001855, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.413/1.413, allocations: 173.4 MB / 200.4 MB, free: 12.86 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 2.154e-06/2.154e-06, allocations: 0 / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.451e-05, allocations: 3.812 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01303/0.01305, allocations: 7.043 MB / 326 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009602/0.02265, allocations: 2.409 MB / 328.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.02479, allocations: 44.25 kB / 328.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005516/0.0303, allocations: 1.456 MB / 329.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005043/0.03535, allocations: 1.063 MB / 331 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001561/0.03691, allocations: 276.5 kB / 331.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005389/0.0423, allocations: 2.244 MB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002659/0.04496, allocations: 1.349 MB / 334.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002493/0.04745, allocations: 1.247 MB / 336.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.04966, allocations: 1.211 MB / 337.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00051/0.05017, allocations: 159.3 kB / 337.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.05177, allocations: 0.615 MB / 338 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001442/0.05321, allocations: 1.234 MB / 339.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.05462, allocations: 0.7473 MB / 340 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00536/0.05998, allocations: 4.235 MB / 344.3 MB, free: 2.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.05999, allocations: 8 kB / 344.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.05999, allocations: 3.938 kB / 344.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001179/0.06011, allocations: 4 kB / 344.3 MB, free: 2.254 MB / 302.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.005099/0.06521, allocations: 2.919 MB / 347.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.06524, allocations: 8.922 kB / 347.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007668/0.07291, allocations: 1.945 MB / 349.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.07506, allocations: 1.109 MB / 350.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.07519, allocations: 152 kB / 350.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003902/0.07558, allocations: 207.8 kB / 350.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01744/0.09303, allocations: 8.231 MB / 358.8 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.845e-05/0.09311, allocations: 43.64 kB / 358.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002854/0.0934, allocations: 99.89 kB / 359 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002686/0.09609, allocations: 1.562 MB / 360.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01637/0.1125, allocations: 6.761 MB / 367.3 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03379/0.1463, allocations: 27.55 MB / 394.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02065/0.1669, allocations: 4.463 MB / 399.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.1683, allocations: 0.8179 MB / 400.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004983/0.1733, allocations: 2.617 MB / 402.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.1733, allocations: 50.83 kB / 402.8 MB, free: 6.027 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.627e-06/0.1733, allocations: 0 / 402.8 MB, free: 6.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04194/0.2153, allocations: 8.44 MB / 411.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.2154, allocations: 191.9 kB / 411.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004038/0.2194, allocations: 2.973 MB / 414.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.2196, allocations: 41.7 kB / 414.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001846/0.2214, allocations: 2.516 MB / 417 MB, free: 7.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005228/0.2219, allocations: 0.5042 MB / 417.5 MB, free: 7.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/0.2233, allocations: 1.068 MB / 418.5 MB, free: 6.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.2234, allocations: 349.8 kB / 418.9 MB, free: 5.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002234/0.2257, allocations: 1.478 MB / 420.3 MB, free: 4.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005353/0.231, allocations: 5.044 MB / 425.4 MB, free: 13.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009739/0.2408, allocations: 7.063 MB / 432.5 MB, free: 4.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/0.2409, allocations: 36 kB / 432.5 MB, free: 4.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01144/0.2524, allocations: 6.184 MB / 438.7 MB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.109e-05/0.2525, allocations: 56 kB / 438.7 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/0.2526, allocations: 128 kB / 438.9 MB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.2528, allocations: 168 kB / 439 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005148/0.2579, allocations: 1.455 MB / 440.5 MB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002187/0.2582, allocations: 251 kB / 440.7 MB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003529/0.2617, allocations: 0.733 MB / 441.5 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005033/0.2622, allocations: 343.9 kB / 441.8 MB, free: 11.3 MB / 414.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.002325/0.2645, allocations: 1.575 MB / 443.4 MB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004301/0.2649, allocations: 242.4 kB / 443.6 MB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.2661, allocations: 0.6826 MB / 444.3 MB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-05/0.2662, allocations: 12 kB / 444.3 MB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.2662, allocations: 4 kB / 444.3 MB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.2662, allocations: 3.984 kB / 444.3 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005063/0.2712, allocations: 2.487 MB / 446.8 MB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/0.2712, allocations: 4 kB / 446.8 MB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002489/0.2737, allocations: 407.4 kB / 447.2 MB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.2737, allocations: 8 kB / 447.2 MB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.2739, allocations: 27.98 kB / 447.2 MB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.276e-05/0.2739, allocations: 15.92 kB / 447.2 MB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2739, allocations: 384 / 447.2 MB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.2772, allocations: 2.462 MB / 449.7 MB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/0.2776, allocations: 214.1 kB / 449.9 MB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003356/0.278, allocations: 27.98 kB / 449.9 MB, free: 3.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009946/0.279, allocations: 47.89 kB / 450 MB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.2791, allocations: 55.89 kB / 450 MB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.09e-05/0.2792, allocations: 28 kB / 450.1 MB, free: 2.938 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002788/0.282, allocations: 1.646 MB / 451.7 MB, free: 1.281 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.282, allocations: 0 / 451.7 MB, free: 1.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004109/0.2861, allocations: 0.8691 MB / 452.6 MB, free: 420 kB / 414.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.0004317/0.2865, allocations: 163 kB / 452.7 MB, free: 244 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005675/0.2922, allocations: 3.222 MB / 456 MB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.2922, allocations: 0 / 456 MB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.2931, allocations: 0.5592 MB / 456.5 MB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.2948, allocations: 230.7 kB / 456.7 MB, free: 12.26 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.3068, allocations: 6.529 MB / 463.3 MB, free: 5.684 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003099/0.3099, allocations: 1.829 MB / 465.1 MB, free: 3.824 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004015/0.3139, allocations: 1.608 MB / 466.7 MB, free: 2.211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006145/0.3145, allocations: 176.5 kB / 466.9 MB, free: 2.039 MB / 430.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3145, allocations: 0 / 466.9 MB, free: 2.039 MB / 430.1 MB Notification: Performance of Templates: time 0.1822/0.4968, allocations: 15.15 MB / 482 MB, free: 124.8 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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.700206074863672]