Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007984/0.0007984, allocations: 87.62 kB / 21.44 MB, free: 3.121 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.003371/0.003371, allocations: 158.8 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8995/0.8995, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.002e-06/1.002e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.804e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005092/0.00511, allocations: 7.045 MB / 332.9 MB, free: 8.352 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.007622, allocations: 2.446 MB / 335.3 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002863/0.007908, allocations: 39.81 kB / 335.4 MB, free: 5.863 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.00936, allocations: 1.479 MB / 336.8 MB, free: 4.379 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.01039, allocations: 1.046 MB / 337.9 MB, free: 3.328 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.01068, allocations: 275.2 kB / 338.2 MB, free: 3.059 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.01196, allocations: 2.207 MB / 340.4 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008613/0.01282, allocations: 1.34 MB / 341.7 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007166/0.01353, allocations: 1.231 MB / 342.9 MB, free: 14.24 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008211/0.01435, allocations: 1.208 MB / 344.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.01449, allocations: 160 kB / 344.3 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005566/0.01505, allocations: 0.6122 MB / 344.9 MB, free: 12.26 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005678/0.01561, allocations: 1.223 MB / 346.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.01609, allocations: 0.7201 MB / 346.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.0184, allocations: 4.2 MB / 351.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.01841, allocations: 0 / 351.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.01841, allocations: 0 / 351.1 MB, free: 6.098 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.01843, allocations: 4 kB / 351.1 MB, free: 6.094 MB / 314.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.002229/0.02066, allocations: 2.899 MB / 354 MB, free: 3.145 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.02069, allocations: 8.031 kB / 354 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003228/0.02392, allocations: 1.812 MB / 355.8 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.02501, allocations: 1.113 MB / 356.9 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.87e-05/0.02508, allocations: 152 kB / 357 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/0.02531, allocations: 207.9 kB / 357.2 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008637/0.03394, allocations: 8.648 MB / 365.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.531e-05/0.034, allocations: 43.7 kB / 365.9 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.03417, allocations: 103.8 kB / 366 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001466/0.03564, allocations: 1.671 MB / 367.7 MB, free: 4.746 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008935/0.04457, allocations: 7.194 MB / 374.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01741/0.06198, allocations: 28.54 MB / 403.4 MB, free: 132 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.07217, allocations: 4.634 MB / 408.1 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000924/0.0731, allocations: 1.201 MB / 409.3 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002682/0.07578, allocations: 3.102 MB / 412.4 MB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.0758, allocations: 42.83 kB / 412.4 MB, free: 7.023 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 2.274e-06/0.07581, allocations: 4 kB / 412.4 MB, free: 7.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.02071/0.09651, allocations: 9.189 MB / 421.6 MB, free: 13.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.09658, allocations: 199.9 kB / 421.8 MB, free: 13.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/0.09871, allocations: 2.965 MB / 424.8 MB, free: 10.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.09876, allocations: 41.7 kB / 424.8 MB, free: 10.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009336/0.09969, allocations: 2.516 MB / 427.3 MB, free: 8.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000485/0.1002, allocations: 0.508 MB / 427.8 MB, free: 7.492 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007605/0.1009, allocations: 1.072 MB / 428.9 MB, free: 6.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.752e-05/0.101, allocations: 345.9 kB / 429.2 MB, free: 6.066 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.1024, allocations: 1.599 MB / 430.8 MB, free: 4.461 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003008/0.1054, allocations: 5.173 MB / 436 MB, free: 13.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004702/0.1101, allocations: 7.339 MB / 443.4 MB, free: 4.363 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-05/0.1102, allocations: 36 kB / 443.4 MB, free: 4.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.1532/0.2634, allocations: 6.433 MB / 449.8 MB, free: 109.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.637e-05/0.2635, allocations: 59.69 kB / 449.9 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/0.2636, allocations: 133.4 kB / 450 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-05/0.2637, allocations: 164.3 kB / 450.2 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.2663, allocations: 1.46 MB / 451.6 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-05/0.2664, allocations: 249.4 kB / 451.9 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/0.2683, allocations: 0.7329 MB / 452.6 MB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002405/0.2686, allocations: 341.3 kB / 452.9 MB, free: 109.7 MB / 410.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.001328/0.2699, allocations: 1.578 MB / 454.5 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.2701, allocations: 242.8 kB / 454.8 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.2704, allocations: 294.7 kB / 455 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.2704, allocations: 11.47 kB / 455.1 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.2704, allocations: 11.16 kB / 455.1 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2704, allocations: 7.641 kB / 455.1 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.2732, allocations: 2.736 MB / 457.8 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2732, allocations: 6.562 kB / 457.8 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/0.2742, allocations: 410.6 kB / 458.2 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2742, allocations: 5.25 kB / 458.2 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/0.2742, allocations: 40.69 kB / 458.3 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.2742, allocations: 3.438 kB / 458.3 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2742, allocations: 4.594 kB / 458.3 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.2759, allocations: 2.783 MB / 461.1 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.276, allocations: 214 kB / 461.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.2761, allocations: 34.11 kB / 461.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004058/0.2765, allocations: 35.11 kB / 461.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.593e-05/0.2766, allocations: 73.27 kB / 461.4 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.2766, allocations: 35.12 kB / 461.4 MB, free: 106.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.2777, allocations: 1.634 MB / 463.1 MB, free: 105.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2777, allocations: 0 / 463.1 MB, free: 105.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002058/0.2797, allocations: 0.8499 MB / 463.9 MB, free: 104.5 MB / 410.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.0002556/0.28, allocations: 172.3 kB / 464.1 MB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.2825, allocations: 3.486 MB / 467.6 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2825, allocations: 5.219 kB / 467.6 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004612/0.283, allocations: 0.679 MB / 468.3 MB, free: 100.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008215/0.2838, allocations: 223.4 kB / 468.5 MB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005279/0.2891, allocations: 6.966 MB / 475.4 MB, free: 93.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.2902, allocations: 1.821 MB / 477.3 MB, free: 92.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.2905, allocations: 232.5 kB / 477.5 MB, free: 91.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2905, allocations: 3.062 kB / 477.5 MB, free: 91.89 MB / 410.7 MB Notification: Performance of Templates: time 0.039/0.3295, allocations: 41.08 MB / 0.5064 GB, free: 50.88 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.72080491296947]