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.0009964/0.0009964, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.001018/0.001018, allocations: 167.5 kB / 25.7 MB, free: 8.43 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.8332/0.8332, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.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 2.404e-06/2.404e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.401e-05, allocations: 6.25 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01058/0.0106, allocations: 10.14 MB / 261.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007795/0.0184, allocations: 3.919 MB / 265.6 MB, free: 9.129 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008519/0.01925, allocations: 75.62 kB / 265.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00345/0.0227, allocations: 2.39 MB / 268.1 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003335/0.02603, allocations: 1.979 MB / 270 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000847/0.02688, allocations: 0.8031 MB / 270.8 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.02996, allocations: 4.892 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.03195, allocations: 3.134 MB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001814/0.03377, allocations: 2.385 MB / 281.3 MB, free: 9.371 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.03552, allocations: 2.244 MB / 283.5 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002782/0.0358, allocations: 296 kB / 283.8 MB, free: 6.832 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009689/0.03677, allocations: 0.8854 MB / 284.7 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.03783, allocations: 1.967 MB / 286.6 MB, free: 3.973 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008467/0.03868, allocations: 1.219 MB / 287.9 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002899/0.04158, allocations: 4.28 MB / 292.1 MB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.04158, allocations: 0 / 292.1 MB, free: 14.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.04158, allocations: 0 / 292.1 MB, free: 14.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.097e-05/0.04161, allocations: 0 / 292.1 MB, free: 14.45 MB / 282.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.003714/0.04533, allocations: 4.287 MB / 296.4 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.04536, allocations: 11.98 kB / 296.4 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002574/0.04793, allocations: 1.097 MB / 297.5 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.04969, allocations: 1.743 MB / 299.3 MB, free: 7.203 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.0498, allocations: 229.6 kB / 299.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003065/0.05011, allocations: 295.8 kB / 299.8 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/0.05432, allocations: 4.857 MB / 304.7 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.721e-05/0.05438, allocations: 47.56 kB / 304.7 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002255/0.05461, allocations: 147.9 kB / 304.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001386/0.05599, allocations: 1.72 MB / 306.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003155/0.05915, allocations: 2.382 MB / 308.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/0.07889, allocations: 30.99 MB / 339.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003505/0.0824, allocations: 1.536 MB / 341.5 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.08281, allocations: 274 kB / 341.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00344/0.08625, allocations: 2.445 MB / 344.2 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.08628, allocations: 43.22 kB / 344.2 MB, free: 8.156 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 3.226e-06/0.08628, allocations: 0 / 344.2 MB, free: 8.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.01144/0.09772, allocations: 4.507 MB / 348.7 MB, free: 3.613 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.09779, allocations: 149.5 kB / 348.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.1006, allocations: 3.098 MB / 352 MB, free: 336 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.1006, allocations: 45.7 kB / 352 MB, free: 284 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1099/0.2105, allocations: 3.033 MB / 355.1 MB, free: 95.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006508/0.2112, allocations: 0.6204 MB / 355.7 MB, free: 95.26 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009389/0.2121, allocations: 1.118 MB / 356.8 MB, free: 95.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.933e-05/0.2121, allocations: 301.1 kB / 357.1 MB, free: 94.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/0.213, allocations: 0.67 MB / 357.8 MB, free: 94.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.2146, allocations: 4.323 MB / 362.1 MB, free: 89.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.2174, allocations: 5.562 MB / 367.6 MB, free: 84.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.332e-05/0.2175, allocations: 40.88 kB / 367.7 MB, free: 84.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003444/0.2209, allocations: 3.937 MB / 371.6 MB, free: 83.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.2209, allocations: 66.45 kB / 371.7 MB, free: 83.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.352e-05/0.221, allocations: 139.5 kB / 371.8 MB, free: 83.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-05/0.2211, allocations: 178.4 kB / 372 MB, free: 83.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001909/0.223, allocations: 1.363 MB / 373.4 MB, free: 82.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.754e-05/0.2231, allocations: 269.7 kB / 373.6 MB, free: 82.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.2251, allocations: 258.9 kB / 373.9 MB, free: 82.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000218/0.2253, allocations: 318.2 kB / 374.2 MB, free: 82.34 MB / 330.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.0008695/0.2262, allocations: 0.6037 MB / 374.8 MB, free: 81.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.2264, allocations: 210 kB / 375 MB, free: 81.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005698/0.227, allocations: 0.6242 MB / 375.6 MB, free: 81.35 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.227, allocations: 16 kB / 375.6 MB, free: 81.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.227, allocations: 0 / 375.6 MB, free: 81.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.227, allocations: 11.45 kB / 375.6 MB, free: 81.33 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.2304, allocations: 4.046 MB / 379.7 MB, free: 78.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.2304, allocations: 20 kB / 379.7 MB, free: 78.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.2309, allocations: 257.7 kB / 380 MB, free: 77.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/0.2309, allocations: 28 kB / 380 MB, free: 77.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.2309, allocations: 46.02 kB / 380 MB, free: 77.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.445e-05/0.231, allocations: 35.86 kB / 380.1 MB, free: 77.84 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.231, allocations: 31.81 kB / 380.1 MB, free: 77.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009888/0.232, allocations: 1.917 MB / 382 MB, free: 75.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003689/0.2323, allocations: 396.3 kB / 382.4 MB, free: 75.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.2325, allocations: 57.09 kB / 382.5 MB, free: 75.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005693/0.2331, allocations: 40 kB / 382.5 MB, free: 75.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.2332, allocations: 151.3 kB / 382.6 MB, free: 75.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/0.2332, allocations: 59.92 kB / 382.7 MB, free: 75.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008396/0.2341, allocations: 1.291 MB / 384 MB, free: 73.76 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2341, allocations: 4 kB / 384 MB, free: 73.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002398/0.2365, allocations: 0.9683 MB / 385 MB, free: 72.79 MB / 330.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.0002782/0.2367, allocations: 211.5 kB / 385.2 MB, free: 72.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.2383, allocations: 2.24 MB / 387.4 MB, free: 70.38 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001298/0.2385, allocations: 100.3 kB / 387.5 MB, free: 70.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.2387, allocations: 386.2 kB / 387.9 MB, free: 69.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.2399, allocations: 412.9 kB / 388.3 MB, free: 69.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00557/0.2455, allocations: 7.423 MB / 395.7 MB, free: 61.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007088/0.2462, allocations: 1.161 MB / 396.9 MB, free: 60.6 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008741/0.2471, allocations: 493.1 kB / 397.4 MB, free: 60.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.2476, allocations: 0.5324 MB / 397.9 MB, free: 59.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2476, allocations: 0 / 397.9 MB, free: 59.59 MB / 330.7 MB Notification: Performance of Templates: time 0.03151/0.2791, allocations: 23.89 MB / 421.8 MB, free: 35.76 MB / 330.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.363009130116552]