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.0009304/0.0009304, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001004/0.001004, allocations: 165.9 kB / 24.99 MB, free: 8.336 MB / 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 1.008/1.008, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.813e-06/1.813e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.754e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01417/0.01419, allocations: 7.731 MB / 280.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006973/0.02116, allocations: 2.508 MB / 283.3 MB, free: 7.551 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005203/0.02168, allocations: 43.81 kB / 283.3 MB, free: 7.508 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005138/0.02682, allocations: 1.53 MB / 284.9 MB, free: 5.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.02846, allocations: 1.053 MB / 285.9 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.02896, allocations: 283.2 kB / 286.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005041/0.034, allocations: 2.203 MB / 288.4 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.03531, allocations: 1.391 MB / 289.8 MB, free: 1.008 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1059/0.1412, allocations: 1.238 MB / 291 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001786/0.143, allocations: 1.217 MB / 292.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003714/0.1433, allocations: 160.6 kB / 292.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000975/0.1443, allocations: 0.6112 MB / 293 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007801/0.1451, allocations: 1.225 MB / 294.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006894/0.1458, allocations: 0.7265 MB / 295 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002516/0.1483, allocations: 2.76 MB / 297.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1483, allocations: 1.219 kB / 297.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1483, allocations: 1.219 kB / 297.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.293e-05/0.1484, allocations: 1.062 kB / 297.7 MB, free: 15.18 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.003154/0.1515, allocations: 3.213 MB / 301 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1516, allocations: 8.312 kB / 301 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004121/0.1557, allocations: 2.242 MB / 303.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.1568, allocations: 1.056 MB / 304.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/0.1569, allocations: 153.8 kB / 304.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.1571, allocations: 208.8 kB / 304.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006405/0.1635, allocations: 5.547 MB / 310.2 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.419e-05/0.1636, allocations: 35.2 kB / 310.2 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.1638, allocations: 107.1 kB / 310.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001386/0.1652, allocations: 1.559 MB / 311.9 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006726/0.1719, allocations: 3.258 MB / 315.1 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01935/0.1913, allocations: 33.88 MB / 349 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009355/0.2006, allocations: 4.016 MB / 353 MB, free: 15.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005452/0.2012, allocations: 392.7 kB / 353.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002794/0.204, allocations: 2.651 MB / 356 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.204, allocations: 53 kB / 356.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.178e-06/0.204, allocations: 3.984 kB / 356.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01886/0.2229, allocations: 7.575 MB / 363.7 MB, free: 4.668 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.2229, allocations: 191.9 kB / 363.9 MB, free: 4.438 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.226, allocations: 2.791 MB / 366.6 MB, free: 1.621 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-05/0.2261, allocations: 41.7 kB / 366.7 MB, free: 1.574 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.2273, allocations: 2.66 MB / 369.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.2277, allocations: 0.5325 MB / 369.9 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009717/0.2286, allocations: 1.171 MB / 371.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2288, allocations: 0.5119 MB / 371.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.2298, allocations: 0.5024 MB / 372.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003229/0.233, allocations: 5.793 MB / 377.9 MB, free: 3.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005126/0.2381, allocations: 6.949 MB / 384.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.097e-05/0.2382, allocations: 36 kB / 384.8 MB, free: 10.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.006562/0.2448, allocations: 4.545 MB / 389.4 MB, free: 5.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/0.2449, allocations: 60 kB / 389.4 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.245, allocations: 131.8 kB / 389.6 MB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/0.2451, allocations: 168 kB / 389.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.248, allocations: 1.451 MB / 391.2 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001316/0.2481, allocations: 247.1 kB / 391.4 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/0.2504, allocations: 0.7407 MB / 392.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/0.2508, allocations: 336 kB / 392.5 MB, free: 2.863 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.001087/0.2519, allocations: 0.6163 MB / 393.1 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.2522, allocations: 270.3 kB / 393.4 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002855/0.2525, allocations: 241.1 kB / 393.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.2525, allocations: 16 kB / 393.6 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.2525, allocations: 0 / 393.6 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2525, allocations: 7.984 kB / 393.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.2563, allocations: 2.508 MB / 396.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.2563, allocations: 11.92 kB / 396.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.2575, allocations: 403.5 kB / 396.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.2575, allocations: 4 kB / 396.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.2576, allocations: 31.98 kB / 396.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2576, allocations: 4 kB / 396.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2576, allocations: 7.938 kB / 396.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.2591, allocations: 1.749 MB / 398.4 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002209/0.2593, allocations: 214.2 kB / 398.6 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.2595, allocations: 27.98 kB / 398.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.2599, allocations: 43.95 kB / 398.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.719e-05/0.26, allocations: 62.5 kB / 398.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.2601, allocations: 35.98 kB / 398.7 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.2613, allocations: 1.111 MB / 399.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2613, allocations: 0 / 399.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005041/0.2664, allocations: 0.838 MB / 400.7 MB, free: 10.62 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.0003856/0.2668, allocations: 170.2 kB / 400.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004274/0.271, allocations: 2.258 MB / 403.1 MB, free: 8.203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.2711, allocations: 4 kB / 403.1 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007984/0.2719, allocations: 302.2 kB / 403.4 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.2734, allocations: 234.7 kB / 403.6 MB, free: 7.676 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009914/0.2833, allocations: 5.527 MB / 409.2 MB, free: 2.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.2844, allocations: 0.8228 MB / 410 MB, free: 1.242 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.005818/0.2902, allocations: 1.409 MB / 411.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004854/0.2907, allocations: 172.5 kB / 411.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of SimCode: time 2.205e-06/0.2907, allocations: 0 / 411.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of Templates: time 0.03571/0.3264, allocations: 15.17 MB / 426.7 MB, free: 0.9258 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.584252430126071]