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.001299/0.001299, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001311/0.001311, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9987/0.9987, allocations: 177.1 MB / 205 MB, free: 5.605 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.[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_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.[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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.962e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006271/0.00629, allocations: 7.751 MB / 280.7 MB, free: 9.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.009413, allocations: 2.512 MB / 283.3 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003335/0.009746, allocations: 43.81 kB / 283.3 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.01154, allocations: 1.542 MB / 284.8 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.01279, allocations: 1.057 MB / 285.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.01315, allocations: 275.2 kB / 286.2 MB, free: 4.289 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.01468, allocations: 2.207 MB / 288.4 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.0157, allocations: 1.391 MB / 289.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1515/0.1672, allocations: 1.232 MB / 291 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.1689, allocations: 1.221 MB / 292.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003276/0.1692, allocations: 159.3 kB / 292.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.1704, allocations: 0.6162 MB / 293 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.1714, allocations: 1.225 MB / 294.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007912/0.1722, allocations: 0.7258 MB / 294.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002886/0.1751, allocations: 2.759 MB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1751, allocations: 0.6562 kB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1751, allocations: 1.75 kB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.753e-05/0.1751, allocations: 1.406 kB / 297.7 MB, free: 15.4 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.003579/0.1787, allocations: 3.206 MB / 300.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1787, allocations: 12.52 kB / 300.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005464/0.1842, allocations: 2.237 MB / 303.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.1856, allocations: 1.072 MB / 304.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-05/0.1857, allocations: 149.7 kB / 304.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.186, allocations: 203.9 kB / 304.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008598/0.1946, allocations: 5.552 MB / 310.1 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.1947, allocations: 40.02 kB / 310.2 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.1949, allocations: 101.1 kB / 310.3 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001762/0.1967, allocations: 1.557 MB / 311.8 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007578/0.2043, allocations: 3.265 MB / 315.1 MB, free: 5.961 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02126/0.2255, allocations: 33.87 MB / 348.9 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009565/0.2351, allocations: 4.018 MB / 353 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006632/0.2358, allocations: 387.5 kB / 353.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003343/0.2391, allocations: 2.651 MB / 356 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.2391, allocations: 58.38 kB / 356.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 2.986e-06/0.2391, allocations: 4 kB / 356.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01852/0.2577, allocations: 7.565 MB / 363.6 MB, free: 4.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.696e-05/0.2577, allocations: 197.7 kB / 363.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/0.2612, allocations: 2.791 MB / 366.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.234e-05/0.2612, allocations: 39.73 kB / 366.6 MB, free: 1.461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.2628, allocations: 2.667 MB / 369.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005374/0.2633, allocations: 0.5327 MB / 369.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/0.2644, allocations: 1.171 MB / 371 MB, free: 13.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2645, allocations: 0.5081 MB / 371.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009325/0.2655, allocations: 0.5101 MB / 372 MB, free: 12.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003688/0.2692, allocations: 5.794 MB / 377.8 MB, free: 3.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005847/0.275, allocations: 6.945 MB / 384.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001504/0.2752, allocations: 36 kB / 384.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00878/0.2839, allocations: 4.537 MB / 389.3 MB, free: 5.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.437e-05/0.284, allocations: 64.25 kB / 389.4 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/0.2842, allocations: 124 kB / 389.5 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.2844, allocations: 168 kB / 389.7 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003167/0.2875, allocations: 1.45 MB / 391.1 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001756/0.2877, allocations: 251 kB / 391.4 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003452/0.2912, allocations: 0.7368 MB / 392.1 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000431/0.2916, allocations: 344 kB / 392.5 MB, free: 2.746 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.001242/0.2928, allocations: 0.6201 MB / 393.1 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003437/0.2932, allocations: 266.4 kB / 393.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.2935, allocations: 241.1 kB / 393.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.2935, allocations: 12 kB / 393.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.2935, allocations: 4 kB / 393.6 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.2935, allocations: 3.984 kB / 393.6 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004157/0.2977, allocations: 2.516 MB / 396.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2977, allocations: 4 kB / 396.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.2989, allocations: 399.5 kB / 396.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.2989, allocations: 4 kB / 396.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.496e-05/0.2989, allocations: 35.97 kB / 396.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.2989, allocations: 11.94 kB / 396.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2989, allocations: 0 / 396.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.3005, allocations: 1.756 MB / 398.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.3009, allocations: 210.1 kB / 398.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.3011, allocations: 31.98 kB / 398.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.3015, allocations: 39.95 kB / 398.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.725e-05/0.3016, allocations: 63.34 kB / 398.7 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.3017, allocations: 28 kB / 398.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.303, allocations: 1.119 MB / 399.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.303, allocations: 0 / 399.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003261/0.3063, allocations: 0.838 MB / 400.6 MB, free: 10.5 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.0003784/0.3066, allocations: 165.4 kB / 400.8 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003435/0.3101, allocations: 2.259 MB / 403.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3101, allocations: 448 / 403.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.3104, allocations: 310.2 kB / 403.4 MB, free: 7.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009694/0.3114, allocations: 227.4 kB / 403.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007121/0.3185, allocations: 5.538 MB / 409.1 MB, free: 1.961 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007771/0.3193, allocations: 0.8228 MB / 409.9 MB, free: 1.121 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002078/0.3214, allocations: 1.405 MB / 411.3 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.3217, allocations: 172.5 kB / 411.5 MB, free: 15.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.074e-06/0.3217, allocations: 4 kB / 411.5 MB, free: 15.54 MB / 378.7 MB Notification: Performance of Templates: time 0.02674/0.3485, allocations: 15.16 MB / 426.7 MB, free: 0.8125 MB / 378.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] 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","",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.749886739999056]