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.001291/0.001291, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001391/0.001391, allocations: 162.3 kB / 25.61 MB, free: 8.914 MB / 18.57 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 0.8777/0.8777, allocations: 158.6 MB / 187.5 MB, free: 2.801 MB / 170.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.643e-06/1.643e-06, allocations: 0 / 251.5 MB, free: 7.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.547e-05/1.711e-05, allocations: 10.25 kB / 251.5 MB, free: 7.328 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006306/0.006323, allocations: 7.54 MB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.01024, allocations: 2.49 MB / 261.5 MB, free: 13.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006498/0.01089, allocations: 43.81 kB / 261.6 MB, free: 13.21 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.01261, allocations: 1.502 MB / 263.1 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.01411, allocations: 1.053 MB / 264.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.01463, allocations: 279.2 kB / 264.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002384/0.01701, allocations: 2.258 MB / 266.6 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.01836, allocations: 1.399 MB / 268 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00129/0.01965, allocations: 1.251 MB / 269.3 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.02109, allocations: 1.239 MB / 270.5 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002505/0.02134, allocations: 160 kB / 270.7 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008828/0.02222, allocations: 0.6045 MB / 271.3 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008488/0.02307, allocations: 1.243 MB / 272.5 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007004/0.02377, allocations: 0.7435 MB / 273.3 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002563/0.02634, allocations: 2.793 MB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.02634, allocations: 0 / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.02634, allocations: 3.984 kB / 276.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.508e-05/0.02639, allocations: 0 / 276.1 MB, free: 14.61 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.003474/0.02986, allocations: 3.246 MB / 279.3 MB, free: 11.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.0299, allocations: 11.98 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003884/0.03378, allocations: 1.204 MB / 280.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.03506, allocations: 0.9971 MB / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.03516, allocations: 155.9 kB / 281.7 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002932/0.03545, allocations: 207.8 kB / 281.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007204/0.04266, allocations: 4.638 MB / 286.5 MB, free: 3.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.857e-05/0.04273, allocations: 39.69 kB / 286.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002134/0.04294, allocations: 103.9 kB / 286.7 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00166/0.0446, allocations: 1.378 MB / 288 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005985/0.05059, allocations: 2.286 MB / 290.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/0.07265, allocations: 33.62 MB / 324 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/0.08276, allocations: 2.642 MB / 326.6 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.08331, allocations: 333.6 kB / 326.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003106/0.08642, allocations: 2.581 MB / 329.5 MB, free: 7.023 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.08646, allocations: 57.66 kB / 329.6 MB, free: 6.957 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.717e-06/0.08646, allocations: 0 / 329.6 MB, free: 6.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01846/0.1049, allocations: 4.624 MB / 334.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.105, allocations: 195.9 kB / 334.4 MB, free: 2.094 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/0.1071, allocations: 2.801 MB / 337.2 MB, free: 15.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.1071, allocations: 41.7 kB / 337.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.1082, allocations: 2.69 MB / 339.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.1085, allocations: 0.5275 MB / 340.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.1096, allocations: 1.203 MB / 341.6 MB, free: 10.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1097, allocations: 0.512 MB / 342.1 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/0.1102, allocations: 406.5 kB / 342.5 MB, free: 9.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002801/0.113, allocations: 5.716 MB / 348.3 MB, free: 1.645 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1147/0.2277, allocations: 6.832 MB / 355.1 MB, free: 85.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.931e-05/0.2278, allocations: 37.47 kB / 355.1 MB, free: 85.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.004885/0.2327, allocations: 4.245 MB / 359.4 MB, free: 84.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.2327, allocations: 60.47 kB / 359.4 MB, free: 84.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.16e-05/0.2328, allocations: 128.1 kB / 359.6 MB, free: 84.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.941e-05/0.2329, allocations: 169.5 kB / 359.7 MB, free: 84.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/0.235, allocations: 1.355 MB / 361.1 MB, free: 84.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001119/0.2351, allocations: 245.9 kB / 361.3 MB, free: 84.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.2368, allocations: 0.7155 MB / 362 MB, free: 84.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.237, allocations: 299.2 kB / 362.3 MB, free: 84.16 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.000634/0.2376, allocations: 0.6119 MB / 362.9 MB, free: 83.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.2378, allocations: 265 kB / 363.2 MB, free: 83.78 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004036/0.2382, allocations: 469.6 kB / 363.7 MB, free: 83.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.2382, allocations: 16 kB / 363.7 MB, free: 83.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2382, allocations: 0 / 363.7 MB, free: 83.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2383, allocations: 7.188 kB / 363.7 MB, free: 83.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.2402, allocations: 1.81 MB / 365.5 MB, free: 82.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2403, allocations: 0 / 365.5 MB, free: 82.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008801/0.2411, allocations: 307.4 kB / 365.8 MB, free: 82.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2411, allocations: 11.73 kB / 365.8 MB, free: 82.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.614e-05/0.2412, allocations: 34.23 kB / 365.8 MB, free: 82.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2412, allocations: 4 kB / 365.8 MB, free: 82.19 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2412, allocations: 4 kB / 365.8 MB, free: 82.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008681/0.2421, allocations: 1.669 MB / 367.5 MB, free: 80.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.2422, allocations: 217.6 kB / 367.7 MB, free: 80.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.2423, allocations: 29.48 kB / 367.8 MB, free: 80.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.2427, allocations: 18.31 kB / 367.8 MB, free: 80.47 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.286e-05/0.2427, allocations: 58.7 kB / 367.8 MB, free: 80.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.2428, allocations: 27.81 kB / 367.9 MB, free: 80.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006297/0.2434, allocations: 1.059 MB / 368.9 MB, free: 79.76 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2434, allocations: 0 / 368.9 MB, free: 79.76 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001939/0.2454, allocations: 0.8581 MB / 369.8 MB, free: 79.06 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.0002237/0.2456, allocations: 171.2 kB / 369.9 MB, free: 78.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.2471, allocations: 2.119 MB / 372.1 MB, free: 77.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2471, allocations: 7.938 kB / 372.1 MB, free: 77.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.2473, allocations: 282.7 kB / 372.3 MB, free: 77.1 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007857/0.2481, allocations: 224.8 kB / 372.6 MB, free: 76.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004146/0.2522, allocations: 5.529 MB / 378.1 MB, free: 71.87 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.2527, allocations: 0.8304 MB / 378.9 MB, free: 71.26 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007262/0.2535, allocations: 397.8 kB / 379.3 MB, free: 70.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.2539, allocations: 434.1 kB / 379.7 MB, free: 70.45 MB / 330.7 MB Notification: Performance of SimCode: time 7.91e-07/0.2539, allocations: 0 / 379.7 MB, free: 70.45 MB / 330.7 MB Notification: Performance of Templates: time 0.02851/0.2824, allocations: 17.42 MB / 397.2 MB, free: 53.14 MB / 330.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 -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.565908119082451]