Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008216/0.0008216, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001596/0.002417, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00103/0.00103, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001326/0.002356, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.002/1.002, allocations: 158.6 MB / 171.1 MB, free: 2.586 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1618/1.164, allocations: 49.5 MB / 220.6 MB, free: 1.441 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.[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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 221.8 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.701e-05/2.847e-05, allocations: 6.312 kB / 221.9 MB, free: 156 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007022/0.00705, allocations: 7.645 MB / 229.5 MB, free: 8.465 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004664/0.01171, allocations: 2.59 MB / 232.1 MB, free: 5.863 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007195/0.01243, allocations: 51.75 kB / 232.1 MB, free: 5.812 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.01418, allocations: 1.456 MB / 233.6 MB, free: 4.352 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.01581, allocations: 1.061 MB / 234.7 MB, free: 3.285 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.01633, allocations: 275.3 kB / 234.9 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002138/0.01847, allocations: 2.235 MB / 237.2 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.01979, allocations: 1.372 MB / 238.5 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.02136, allocations: 1.289 MB / 239.8 MB, free: 14.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.02288, allocations: 1.153 MB / 241 MB, free: 12.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003171/0.0232, allocations: 160 kB / 241.1 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.0243, allocations: 0.6239 MB / 241.8 MB, free: 12.15 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008435/0.02515, allocations: 1.134 MB / 242.9 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006947/0.02584, allocations: 0.6229 MB / 243.5 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.02846, allocations: 2.637 MB / 246.1 MB, free: 7.738 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.091e-05/0.02849, allocations: 0 / 246.1 MB, free: 7.738 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.02849, allocations: 0 / 246.1 MB, free: 7.738 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.629e-05/0.02856, allocations: 0 / 246.1 MB, free: 7.738 MB / 250.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.003453/0.03202, allocations: 3.365 MB / 249.5 MB, free: 4.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.03206, allocations: 8.031 kB / 249.5 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002657/0.03472, allocations: 1.036 MB / 250.6 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.03606, allocations: 0.8903 MB / 251.4 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-05/0.03614, allocations: 152 kB / 251.6 MB, free: 2.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.03639, allocations: 207.8 kB / 251.8 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004787/0.04118, allocations: 3.869 MB / 255.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.892e-05/0.04126, allocations: 43.62 kB / 255.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/0.04144, allocations: 99.88 kB / 255.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001368/0.04281, allocations: 1.398 MB / 257.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004269/0.04707, allocations: 2.015 MB / 259.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02079/0.06786, allocations: 23.56 MB / 282.8 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1441/0.212, allocations: 1.698 MB / 284.5 MB, free: 49.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006473/0.2126, allocations: 405.7 kB / 284.9 MB, free: 49.14 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003213/0.2158, allocations: 2.288 MB / 287.2 MB, free: 48.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.167e-05/0.2159, allocations: 48.81 kB / 287.2 MB, free: 48.1 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 4.218e-06/0.2159, allocations: 0 / 287.2 MB, free: 48.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.009141/0.225, allocations: 2.593 MB / 289.8 MB, free: 48.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.2251, allocations: 195 kB / 290 MB, free: 47.8 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/0.2283, allocations: 2.201 MB / 292.2 MB, free: 47.53 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.781e-05/0.2284, allocations: 42.95 kB / 292.2 MB, free: 47.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.2298, allocations: 2.459 MB / 294.7 MB, free: 45.96 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004055/0.2302, allocations: 0.5135 MB / 295.2 MB, free: 45.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.2314, allocations: 1.019 MB / 296.2 MB, free: 45.55 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.639e-05/0.2315, allocations: 350.1 kB / 296.6 MB, free: 45.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009563/0.2325, allocations: 0.5458 MB / 297.1 MB, free: 45.22 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002394/0.2349, allocations: 3.975 MB / 301.1 MB, free: 40.6 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004164/0.239, allocations: 5.2 MB / 306.3 MB, free: 35.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.158e-05/0.2391, allocations: 35.41 kB / 306.3 MB, free: 35.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005038/0.2441, allocations: 3.645 MB / 310 MB, free: 34.56 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.318e-05/0.2442, allocations: 58.84 kB / 310 MB, free: 34.56 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.2444, allocations: 129.8 kB / 310.2 MB, free: 34.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.2445, allocations: 172 kB / 310.3 MB, free: 34.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/0.2481, allocations: 1.568 MB / 311.9 MB, free: 33.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001267/0.2482, allocations: 244.2 kB / 312.1 MB, free: 33.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/0.251, allocations: 0.7103 MB / 312.8 MB, free: 32.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003075/0.2513, allocations: 299.7 kB / 313.1 MB, free: 32.5 MB / 282.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.0009126/0.2522, allocations: 0.5681 MB / 313.7 MB, free: 32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.2525, allocations: 154.4 kB / 313.8 MB, free: 31.9 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005362/0.253, allocations: 405.2 kB / 314.2 MB, free: 31.56 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.253, allocations: 14.53 kB / 314.3 MB, free: 31.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.2531, allocations: 7.938 kB / 314.3 MB, free: 31.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2531, allocations: 3.375 kB / 314.3 MB, free: 31.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.2558, allocations: 1.618 MB / 315.9 MB, free: 29.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.2558, allocations: 1.25 kB / 315.9 MB, free: 29.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.2574, allocations: 411.3 kB / 316.3 MB, free: 29.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.2577, allocations: 210.2 kB / 316.5 MB, free: 29.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.2577, allocations: 11.98 kB / 316.5 MB, free: 29.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.647e-05/0.2578, allocations: 23.98 kB / 316.5 MB, free: 29.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.2578, allocations: 7.938 kB / 316.5 MB, free: 29.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2578, allocations: 4 kB / 316.5 MB, free: 29.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.259, allocations: 1.405 MB / 317.9 MB, free: 27.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001866/0.2592, allocations: 27.98 kB / 318 MB, free: 27.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.2598, allocations: 21.94 kB / 318 MB, free: 27.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.2598, allocations: 59.89 kB / 318.1 MB, free: 27.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.2599, allocations: 22.19 kB / 318.1 MB, free: 27.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007117/0.2606, allocations: 0.8276 MB / 318.9 MB, free: 26.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.2606, allocations: 0 / 318.9 MB, free: 26.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003285/0.2639, allocations: 0.8529 MB / 319.8 MB, free: 26.05 MB / 282.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.0003005/0.2642, allocations: 156.6 kB / 319.9 MB, free: 25.89 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.2667, allocations: 1.964 MB / 321.9 MB, free: 23.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001694/0.2669, allocations: 96.16 kB / 322 MB, free: 23.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.2672, allocations: 230.4 kB / 322.2 MB, free: 23.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.2683, allocations: 401.8 kB / 322.6 MB, free: 23.23 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008505/0.2768, allocations: 5.201 MB / 327.8 MB, free: 17.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006713/0.2775, allocations: 0.8289 MB / 328.6 MB, free: 17.11 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001143/0.2787, allocations: 401.9 kB / 329 MB, free: 16.72 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/0.2791, allocations: 409.1 kB / 329.4 MB, free: 16.32 MB / 282.7 MB Notification: Performance of SimCode: time 3.486e-06/0.2791, allocations: 0 / 329.4 MB, free: 16.32 MB / 282.7 MB Notification: Performance of Templates: time 0.02788/0.307, allocations: 17.89 MB / 347.3 MB, free: 14.46 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.5728470254689455]