Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001215/0.001215, allocations: 85.91 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 162.1 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9042/0.9042, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.499e-05, allocations: 4.141 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007677/0.007702, allocations: 7.529 MB / 281.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003615/0.01132, allocations: 2.49 MB / 284.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005578/0.01187, allocations: 39.88 kB / 284.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.01355, allocations: 1.526 MB / 285.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.01494, allocations: 1.049 MB / 286.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.01537, allocations: 279.2 kB / 287 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.01696, allocations: 2.218 MB / 289.2 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.01799, allocations: 1.391 MB / 290.6 MB, free: 3.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009138/0.0189, allocations: 1.243 MB / 291.9 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.01992, allocations: 1.227 MB / 293.1 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.02009, allocations: 160 kB / 293.3 MB, free: 1.047 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006887/0.02078, allocations: 0.6123 MB / 293.9 MB, free: 444 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006471/0.02142, allocations: 1.219 MB / 295.1 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005213/0.02195, allocations: 0.724 MB / 295.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001941/0.02389, allocations: 2.751 MB / 298.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.02389, allocations: 4 kB / 298.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.02389, allocations: 0 / 298.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.02393, allocations: 0 / 298.6 MB, free: 11.72 MB / 282.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.003876/0.0278, allocations: 3.242 MB / 301.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.02784, allocations: 12.03 kB / 301.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003112/0.03095, allocations: 1.197 MB / 303 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.03217, allocations: 0.9972 MB / 304 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.42e-05/0.03225, allocations: 159.9 kB / 304.2 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002327/0.03248, allocations: 203.8 kB / 304.4 MB, free: 5.824 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005891/0.03837, allocations: 4.65 MB / 309 MB, free: 364 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.677e-05/0.03843, allocations: 35.64 kB / 309.1 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000182/0.03861, allocations: 103.9 kB / 309.2 MB, free: 224 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001247/0.03986, allocations: 1.39 MB / 310.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004809/0.04467, allocations: 2.277 MB / 312.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01799/0.06265, allocations: 33.61 MB / 346.4 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007473/0.07013, allocations: 2.663 MB / 349.1 MB, free: 7.078 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/0.07048, allocations: 333.6 kB / 349.4 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002353/0.07283, allocations: 2.584 MB / 352 MB, free: 4.105 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.07287, allocations: 45.72 kB / 352.1 MB, free: 4.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=111): time 2.745e-06/0.07287, allocations: 4 kB / 352.1 MB, free: 4.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=111): time 0.1314/0.2042, allocations: 4.641 MB / 356.7 MB, free: 82.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2043, allocations: 192.7 kB / 356.9 MB, free: 82.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00265/0.2069, allocations: 2.788 MB / 359.7 MB, free: 82.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/0.207, allocations: 41.77 kB / 359.7 MB, free: 82.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.2082, allocations: 2.684 MB / 362.4 MB, free: 80.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.2085, allocations: 0.5367 MB / 362.9 MB, free: 80.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009698/0.2095, allocations: 1.194 MB / 364.1 MB, free: 80.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.43e-05/0.2096, allocations: 0.5129 MB / 364.6 MB, free: 79.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007381/0.2103, allocations: 411.2 kB / 365 MB, free: 79.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.2122, allocations: 5.719 MB / 370.8 MB, free: 72.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003014/0.2152, allocations: 6.835 MB / 377.6 MB, free: 65.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-05/0.2152, allocations: 38.28 kB / 377.6 MB, free: 65.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003583/0.2188, allocations: 4.237 MB / 381.9 MB, free: 64.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.2189, allocations: 66.62 kB / 381.9 MB, free: 64.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.4e-05/0.2189, allocations: 129 kB / 382.1 MB, free: 64.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.396e-05/0.219, allocations: 164 kB / 382.2 MB, free: 63.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/0.2211, allocations: 1.35 MB / 383.6 MB, free: 62.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.717e-05/0.2212, allocations: 252.7 kB / 383.8 MB, free: 62.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.2228, allocations: 0.7095 MB / 384.5 MB, free: 61.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.2229, allocations: 307.7 kB / 384.8 MB, free: 61.55 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.0005428/0.2235, allocations: 0.6194 MB / 385.5 MB, free: 60.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.2237, allocations: 262.4 kB / 385.7 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.2239, allocations: 244.7 kB / 386 MB, free: 60.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.2239, allocations: 16 kB / 386 MB, free: 60.44 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.2239, allocations: 0 / 386 MB, free: 60.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2239, allocations: 3.656 kB / 386 MB, free: 60.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.2258, allocations: 1.813 MB / 387.8 MB, free: 58.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.2258, allocations: 4 kB / 387.8 MB, free: 58.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.2267, allocations: 303.3 kB / 388.1 MB, free: 58.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.2267, allocations: 8 kB / 388.1 MB, free: 58.55 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.2267, allocations: 28.42 kB / 388.1 MB, free: 58.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2267, allocations: 7.938 kB / 388.1 MB, free: 58.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2267, allocations: 0 / 388.1 MB, free: 58.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008719/0.2276, allocations: 1.687 MB / 389.8 MB, free: 56.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2277, allocations: 210.5 kB / 390 MB, free: 56.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.2279, allocations: 34.22 kB / 390.1 MB, free: 56.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/0.2282, allocations: 23.98 kB / 390.1 MB, free: 56.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.2283, allocations: 57.38 kB / 390.1 MB, free: 56.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.2283, allocations: 28 kB / 390.2 MB, free: 56.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005916/0.2289, allocations: 1.045 MB / 391.2 MB, free: 55.72 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2289, allocations: 0 / 391.2 MB, free: 55.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001777/0.2307, allocations: 0.8419 MB / 392 MB, free: 54.88 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.0001869/0.2309, allocations: 166.7 kB / 392.2 MB, free: 54.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.2324, allocations: 2.134 MB / 394.3 MB, free: 52.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2324, allocations: 0 / 394.3 MB, free: 52.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.2326, allocations: 285.1 kB / 394.6 MB, free: 52.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007751/0.2334, allocations: 220.9 kB / 394.8 MB, free: 52.28 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.2375, allocations: 5.534 MB / 400.4 MB, free: 46.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005507/0.2381, allocations: 0.8228 MB / 401.2 MB, free: 45.87 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000755/0.2388, allocations: 392.9 kB / 401.6 MB, free: 45.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.2392, allocations: 426.1 kB / 402 MB, free: 45.07 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2392, allocations: 4 kB / 402 MB, free: 45.06 MB / 330.7 MB Notification: Performance of Templates: time 0.02295/0.2621, allocations: 17.81 MB / 419.8 MB, free: 27.63 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.620805411133915]