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.002456/0.002456, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002293/0.002293, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 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.522/1.522, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 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 1.503e-06/1.503e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.242e-05/3.392e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01132/0.01136, allocations: 7.725 MB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006741/0.0181, allocations: 2.473 MB / 277.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.01925, allocations: 39.88 kB / 277.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003511/0.02276, allocations: 1.522 MB / 279.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.02592, allocations: 1.069 MB / 280.2 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008385/0.02676, allocations: 271.3 kB / 280.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003581/0.03034, allocations: 2.238 MB / 282.7 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/0.03246, allocations: 1.399 MB / 284.1 MB, free: 5.902 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.03477, allocations: 1.247 MB / 285.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002128/0.0369, allocations: 1.223 MB / 286.5 MB, free: 3.426 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003762/0.03728, allocations: 164 kB / 286.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.03866, allocations: 0.6161 MB / 287.3 MB, free: 2.648 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.04002, allocations: 1.254 MB / 288.6 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.04113, allocations: 0.7357 MB / 289.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.126/0.1671, allocations: 4.243 MB / 293.5 MB, free: 19.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1671, allocations: 0.5156 kB / 293.5 MB, free: 19.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1671, allocations: 0 / 293.5 MB, free: 19.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.245e-05/0.1672, allocations: 1.375 kB / 293.5 MB, free: 19.06 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.00552/0.1727, allocations: 3.528 MB / 297.1 MB, free: 17.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1728, allocations: 10.64 kB / 297.1 MB, free: 17.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007328/0.1801, allocations: 2.24 MB / 299.3 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/0.1827, allocations: 1.067 MB / 300.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.1828, allocations: 151.1 kB / 300.5 MB, free: 17.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003997/0.1832, allocations: 211.4 kB / 300.7 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.1958, allocations: 5.849 MB / 306.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.597e-05/0.1959, allocations: 35.95 kB / 306.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002592/0.1962, allocations: 104.5 kB / 306.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002172/0.1983, allocations: 1.558 MB / 308.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/0.2099, allocations: 3.497 MB / 311.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03957/0.2494, allocations: 36.27 MB / 348 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0206/0.27, allocations: 4.011 MB / 352.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009915/0.271, allocations: 417 kB / 352.5 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005713/0.2767, allocations: 2.702 MB / 355.2 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.2768, allocations: 45.19 kB / 355.2 MB, free: 144 kB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.945e-06/0.2768, allocations: 0 / 355.2 MB, free: 144 kB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.04154/0.3183, allocations: 7.614 MB / 362.8 MB, free: 8.535 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.3185, allocations: 198.5 kB / 363 MB, free: 8.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006254/0.3247, allocations: 3.506 MB / 366.5 MB, free: 4.777 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.3249, allocations: 37.7 kB / 366.6 MB, free: 4.734 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002752/0.3277, allocations: 2.831 MB / 369.4 MB, free: 1.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007461/0.3284, allocations: 0.5519 MB / 369.9 MB, free: 1.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002287/0.3307, allocations: 1.362 MB / 371.3 MB, free: 12 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003468/0.3311, allocations: 0.5316 MB / 371.8 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.3324, allocations: 0.5415 MB / 372.4 MB, free: 14.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007233/0.3396, allocations: 6.009 MB / 378.4 MB, free: 6.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009714/0.3493, allocations: 7.197 MB / 385.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001262/0.3495, allocations: 40 kB / 385.6 MB, free: 12.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009897/0.3594, allocations: 4.623 MB / 390.2 MB, free: 8.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.481e-05/0.3595, allocations: 60 kB / 390.3 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/0.3596, allocations: 132 kB / 390.4 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.3598, allocations: 164 kB / 390.6 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005133/0.3649, allocations: 1.454 MB / 392 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002418/0.3652, allocations: 247 kB / 392.3 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.3688, allocations: 0.7406 MB / 393 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005457/0.3693, allocations: 344 kB / 393.4 MB, free: 5.098 MB / 346.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.001644/0.371, allocations: 0.6862 MB / 394.1 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005745/0.3715, allocations: 266.4 kB / 394.3 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.3727, allocations: 494.9 kB / 394.8 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.3728, allocations: 19.83 kB / 394.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3728, allocations: 0 / 394.8 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.3728, allocations: 11.98 kB / 394.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007046/0.3798, allocations: 3.097 MB / 397.9 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.3798, allocations: 7.625 kB / 397.9 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/0.3822, allocations: 403.5 kB / 398.3 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.3823, allocations: 4 kB / 398.3 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.316e-05/0.3823, allocations: 27.98 kB / 398.4 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.3824, allocations: 4 kB / 398.4 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3824, allocations: 4 kB / 398.4 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.3849, allocations: 1.867 MB / 400.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.3855, allocations: 214.2 kB / 400.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.3857, allocations: 23.98 kB / 400.5 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008054/0.3865, allocations: 43.95 kB / 400.5 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.3867, allocations: 59.77 kB / 400.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.342e-05/0.3867, allocations: 32 kB / 400.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002351/0.3891, allocations: 1.338 MB / 401.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3891, allocations: 7.172 kB / 401.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004545/0.3936, allocations: 0.8631 MB / 402.8 MB, free: 11.59 MB / 362.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.0004063/0.394, allocations: 162.6 kB / 403 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004973/0.399, allocations: 2.516 MB / 405.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.399, allocations: 3.391 kB / 405.5 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.3997, allocations: 348.2 kB / 405.8 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.4012, allocations: 225.6 kB / 406 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.412, allocations: 5.587 MB / 411.6 MB, free: 2.715 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002423/0.4145, allocations: 1.649 MB / 413.3 MB, free: 1.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003414/0.4179, allocations: 1.414 MB / 414.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004332/0.4183, allocations: 176.4 kB / 414.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.4183, allocations: 0 / 414.9 MB, free: 15.44 MB / 378.7 MB Notification: Performance of Templates: time 0.03931/0.4576, allocations: 15.19 MB / 430.1 MB, free: 0.668 MB / 378.7 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=240 -emit_protected -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","/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: 6.1099928870098665]