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.0009787/0.0009787, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009933/0.0009933, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9416/0.9416, allocations: 177 MB / 204.8 MB, free: 5.582 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.442e-06/1.442e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.538e-05, allocations: 5.266 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007847/0.007872, allocations: 7.763 MB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003484/0.01136, allocations: 2.512 MB / 283.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004895/0.01185, allocations: 43.81 kB / 283.2 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.01354, allocations: 1.538 MB / 284.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.01494, allocations: 1.053 MB / 285.8 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.0154, allocations: 275.3 kB / 286.1 MB, free: 4.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.01719, allocations: 2.211 MB / 288.3 MB, free: 1.996 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.01839, allocations: 1.391 MB / 289.7 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1029/0.1213, allocations: 1.235 MB / 290.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00205/0.1234, allocations: 1.223 MB / 292.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004754/0.1238, allocations: 159.9 kB / 292.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.1251, allocations: 0.6129 MB / 292.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009786/0.126, allocations: 1.228 MB / 294.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.1272, allocations: 0.7254 MB / 294.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003349/0.1305, allocations: 2.761 MB / 297.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1305, allocations: 0 / 297.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1305, allocations: 0 / 297.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001186/0.1307, allocations: 0 / 297.6 MB, free: 14.77 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.004215/0.1349, allocations: 3.215 MB / 300.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1349, allocations: 13.45 kB / 300.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004105/0.139, allocations: 2.237 MB / 303.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.1403, allocations: 1.096 MB / 304.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.067e-05/0.1404, allocations: 149.6 kB / 304.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.1406, allocations: 207.3 kB / 304.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006901/0.1475, allocations: 5.549 MB / 310.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.579e-05/0.1476, allocations: 40.67 kB / 310.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002471/0.1478, allocations: 97.64 kB / 310.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001778/0.1496, allocations: 1.563 MB / 311.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008009/0.1576, allocations: 3.257 MB / 315.1 MB, free: 5.684 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0232/0.1808, allocations: 33.87 MB / 348.9 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01209/0.1929, allocations: 4.018 MB / 352.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000898/0.1938, allocations: 393.1 kB / 353.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003508/0.1973, allocations: 2.651 MB / 356 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.1973, allocations: 45.72 kB / 356 MB, free: 11.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.917e-06/0.1973, allocations: 4 kB / 356 MB, free: 11.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.02105/0.2184, allocations: 7.563 MB / 363.6 MB, free: 4.285 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.2185, allocations: 203.2 kB / 363.8 MB, free: 4.047 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003071/0.2215, allocations: 2.791 MB / 366.6 MB, free: 1.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.2216, allocations: 41.7 kB / 366.6 MB, free: 1.184 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001534/0.2232, allocations: 2.657 MB / 369.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004252/0.2236, allocations: 0.5285 MB / 369.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.2247, allocations: 1.17 MB / 371 MB, free: 12.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2248, allocations: 0.5158 MB / 371.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000975/0.2258, allocations: 0.5024 MB / 372 MB, free: 11.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003301/0.2291, allocations: 5.798 MB / 377.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004747/0.2338, allocations: 6.952 MB / 384.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.639e-05/0.2339, allocations: 36 kB / 384.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005704/0.2396, allocations: 4.538 MB / 389.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.845e-05/0.2397, allocations: 60 kB / 389.4 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.2398, allocations: 128.9 kB / 389.5 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000116/0.2399, allocations: 168 kB / 389.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.2427, allocations: 1.454 MB / 391.1 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001531/0.2428, allocations: 251 kB / 391.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.2452, allocations: 0.7407 MB / 392.1 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/0.2455, allocations: 340 kB / 392.4 MB, free: 2.492 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.001/0.2465, allocations: 0.6133 MB / 393.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.2468, allocations: 262.4 kB / 393.3 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.2471, allocations: 241.1 kB / 393.5 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.228e-05/0.2471, allocations: 19.98 kB / 393.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.2471, allocations: 0.5625 kB / 393.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2471, allocations: 7.984 kB / 393.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/0.2507, allocations: 2.518 MB / 396.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.2507, allocations: 0 / 396.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.2519, allocations: 415 kB / 396.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.2519, allocations: 4 kB / 396.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.828e-05/0.252, allocations: 31.98 kB / 396.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.252, allocations: 4 kB / 396.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.252, allocations: 10.28 kB / 396.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.2535, allocations: 1.749 MB / 398.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.2537, allocations: 210.2 kB / 398.5 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.2539, allocations: 33.23 kB / 398.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.2543, allocations: 39.95 kB / 398.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.38e-05/0.2544, allocations: 59.83 kB / 398.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.477e-05/0.2545, allocations: 37 kB / 398.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00149/0.256, allocations: 1.111 MB / 399.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.256, allocations: 0 / 399.8 MB, free: 11.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002621/0.2586, allocations: 0.8482 MB / 400.6 MB, free: 10.23 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.0002939/0.2589, allocations: 152.5 kB / 400.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.2617, allocations: 2.261 MB / 403 MB, free: 7.836 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2617, allocations: 3.938 kB / 403 MB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.2621, allocations: 306.2 kB / 403.3 MB, free: 7.531 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009481/0.263, allocations: 236.1 kB / 403.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006809/0.2698, allocations: 5.516 MB / 409.1 MB, free: 1.723 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006885/0.2705, allocations: 0.8267 MB / 409.9 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00201/0.2725, allocations: 1.409 MB / 411.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.2728, allocations: 172.5 kB / 411.5 MB, free: 15.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.094e-06/0.2728, allocations: 0 / 411.5 MB, free: 15.29 MB / 378.7 MB Notification: Performance of Templates: time 0.02745/0.3003, allocations: 15.95 MB / 427.4 MB, free: 15.78 MB / 394.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.3851031800732017]