Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0008445/0.0008445, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001065/0.001909, allocations: 453.8 kB / 10.46 MB, free: 236 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.0007299/0.0007299, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009737/0.001704, allocations: 483.5 kB / 11.83 MB, free: 2.336 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 0.9133/0.9133, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1514/1.065, allocations: 49.5 MB / 220.7 MB, free: 1.359 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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.376e-05, allocations: 5.406 kB / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007534/0.007558, allocations: 10.26 MB / 232.3 MB, free: 5.746 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006699/0.01426, allocations: 3.95 MB / 236.2 MB, free: 1.781 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.01594, allocations: 75.62 kB / 236.3 MB, free: 1.707 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.01862, allocations: 2.281 MB / 238.6 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003907/0.02252, allocations: 1.928 MB / 240.5 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.02371, allocations: 0.7329 MB / 241.2 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.02829, allocations: 4.665 MB / 245.9 MB, free: 8.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003145/0.03144, allocations: 2.663 MB / 248.5 MB, free: 5.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003002/0.03444, allocations: 2.478 MB / 251 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.03701, allocations: 2.229 MB / 253.3 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005251/0.03753, allocations: 292 kB / 253.5 MB, free: 344 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.03891, allocations: 0.9127 MB / 254.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.04001, allocations: 1.757 MB / 256.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001156/0.04116, allocations: 0.9853 MB / 257.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003553/0.04472, allocations: 3.984 MB / 261.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.04473, allocations: 0 / 261.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.04473, allocations: 0 / 261.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000115/0.04484, allocations: 0 / 261.2 MB, free: 8.672 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.005343/0.05019, allocations: 5.111 MB / 266.3 MB, free: 3.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.05022, allocations: 12.03 kB / 266.3 MB, free: 3.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00292/0.05314, allocations: 1.165 MB / 267.5 MB, free: 2.312 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.05541, allocations: 1.735 MB / 269.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.05554, allocations: 229.6 kB / 269.4 MB, free: 300 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/0.05591, allocations: 303.9 kB / 269.7 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005425/0.06133, allocations: 4.853 MB / 274.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.254e-05/0.06142, allocations: 47.56 kB / 274.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002317/0.06165, allocations: 143.9 kB / 274.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001375/0.06302, allocations: 1.622 MB / 276.4 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004116/0.06714, allocations: 2.39 MB / 278.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1429/0.21, allocations: 30.98 MB / 309.8 MB, free: 21.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003214/0.2132, allocations: 1.516 MB / 311.3 MB, free: 20.88 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004365/0.2136, allocations: 267.8 kB / 311.5 MB, free: 20.84 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003849/0.2175, allocations: 2.431 MB / 314 MB, free: 20.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.2175, allocations: 50.08 kB / 314 MB, free: 20.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=133): time 3.236e-06/0.2175, allocations: 0.875 kB / 314 MB, free: 20.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.008786/0.2263, allocations: 4.484 MB / 318.5 MB, free: 19.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.2264, allocations: 147.9 kB / 318.6 MB, free: 19.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/0.2287, allocations: 3.102 MB / 321.7 MB, free: 18.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.2288, allocations: 44.89 kB / 321.8 MB, free: 18.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008899/0.2297, allocations: 3.039 MB / 324.8 MB, free: 16.36 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.23, allocations: 0.6176 MB / 325.4 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006863/0.2306, allocations: 1.113 MB / 326.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.087e-05/0.2307, allocations: 305.1 kB / 326.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000853/0.2315, allocations: 0.6676 MB / 327.5 MB, free: 14.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.2332, allocations: 4.327 MB / 331.9 MB, free: 9.723 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003359/0.2366, allocations: 5.997 MB / 337.8 MB, free: 3.172 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.955e-05/0.2367, allocations: 40 kB / 337.9 MB, free: 3.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003949/0.2406, allocations: 3.94 MB / 341.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/0.2407, allocations: 64 kB / 341.9 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.2408, allocations: 140 kB / 342 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001116/0.2409, allocations: 176 kB / 342.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.2434, allocations: 1.527 MB / 343.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001359/0.2435, allocations: 267 kB / 344 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/0.2462, allocations: 263.7 kB / 344.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003254/0.2466, allocations: 318.4 kB / 344.6 MB, free: 12.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 744 * 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.001207/0.2478, allocations: 0.6141 MB / 345.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003543/0.2481, allocations: 199.8 kB / 345.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006863/0.2488, allocations: 0.6236 MB / 346 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.2488, allocations: 15.98 kB / 346 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.2488, allocations: 4 kB / 346 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2489, allocations: 3.984 kB / 346 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/0.2538, allocations: 4.047 MB / 350.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/0.2539, allocations: 24 kB / 350.1 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/0.2544, allocations: 298.5 kB / 350.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008328/0.2553, allocations: 393.6 kB / 350.8 MB, free: 5.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.811e-05/0.2553, allocations: 24 kB / 350.8 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.933e-05/0.2553, allocations: 47.98 kB / 350.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.182e-05/0.2554, allocations: 40.73 kB / 350.9 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.345e-05/0.2554, allocations: 27.88 kB / 350.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.2568, allocations: 1.926 MB / 352.8 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/0.2571, allocations: 51.97 kB / 352.9 MB, free: 3.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.2577, allocations: 40 kB / 352.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.2579, allocations: 151.3 kB / 353.1 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.2579, allocations: 59.98 kB / 353.1 MB, free: 3.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001472/0.2594, allocations: 1.291 MB / 354.4 MB, free: 2.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2594, allocations: 0 / 354.4 MB, free: 2.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003058/0.2624, allocations: 0.9686 MB / 355.4 MB, free: 1.074 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (141): * Single equations (assignments): 138 * 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.0003446/0.2628, allocations: 214.1 kB / 355.6 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002844/0.2656, allocations: 2.357 MB / 357.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001848/0.2658, allocations: 108.1 kB / 358 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.2664, allocations: 482.1 kB / 358.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/0.2692, allocations: 2.753 MB / 361.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.2803, allocations: 7.662 MB / 368.9 MB, free: 2.918 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.2814, allocations: 1.154 MB / 370.1 MB, free: 1.738 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001246/0.2826, allocations: 482.8 kB / 370.6 MB, free: 1.266 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005966/0.2832, allocations: 0.5089 MB / 371.1 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of SimCode: time 1.623e-06/0.2832, allocations: 0 / 371.1 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of Templates: time 0.04444/0.3276, allocations: 23.14 MB / 394.2 MB, free: 9.52 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1886999579146504]