Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001107/0.002217, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006916/0.0006916, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009516/0.001643, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9863/0.9863, allocations: 173.3 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09408/1.08, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 239.5 MB, free: 3.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.789e-05, allocations: 10.81 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01248/0.01251, allocations: 10.22 MB / 249.8 MB, free: 8.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00766/0.02017, allocations: 3.949 MB / 253.7 MB, free: 4.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009804/0.02115, allocations: 79.62 kB / 253.8 MB, free: 4.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003557/0.02471, allocations: 2.273 MB / 256.1 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.02849, allocations: 1.921 MB / 258 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.02965, allocations: 0.7328 MB / 258.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004077/0.03372, allocations: 4.647 MB / 263.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002342/0.03606, allocations: 2.639 MB / 266 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.03856, allocations: 2.458 MB / 268.5 MB, free: 6.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002506/0.04106, allocations: 2.217 MB / 270.7 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003758/0.04144, allocations: 292 kB / 271 MB, free: 3.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001362/0.0428, allocations: 0.9128 MB / 271.9 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.04393, allocations: 1.749 MB / 273.6 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1341/0.1781, allocations: 0.9783 MB / 274.6 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005996/0.1841, allocations: 3.985 MB / 278.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.391e-05/0.1841, allocations: 1.062 kB / 278.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1841, allocations: 0.5 kB / 278.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001399/0.1842, allocations: 0 / 278.6 MB, free: 8.547 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.006896/0.1911, allocations: 5.102 MB / 283.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.1912, allocations: 7.562 kB / 283.7 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/0.194, allocations: 1.163 MB / 284.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.196, allocations: 1.7 MB / 286.6 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.1961, allocations: 220.9 kB / 286.8 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003836/0.1965, allocations: 304.7 kB / 287.1 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004869/0.2013, allocations: 4.855 MB / 291.9 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.869e-05/0.2014, allocations: 52.66 kB / 292 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002604/0.2017, allocations: 152 kB / 292.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001416/0.2031, allocations: 1.718 MB / 293.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003067/0.2062, allocations: 2.381 MB / 296.2 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.019/0.2252, allocations: 30.99 MB / 327.2 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.2276, allocations: 1.527 MB / 328.8 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.2279, allocations: 262.8 kB / 329 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002922/0.2308, allocations: 2.421 MB / 331.4 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2309, allocations: 51.53 kB / 331.5 MB, free: 5.254 MB / 298.7 MB Notification: Performance of pre-optimization done (n=133): time 2.375e-06/0.2309, allocations: 0 / 331.5 MB, free: 5.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=151): time 0.008082/0.239, allocations: 4.383 MB / 335.9 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.239, allocations: 141.5 kB / 336 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.2417, allocations: 3.07 MB / 339.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.2418, allocations: 48.28 kB / 339.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.243, allocations: 3.037 MB / 342.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.2434, allocations: 0.6197 MB / 342.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008147/0.2442, allocations: 1.105 MB / 343.9 MB, free: 9.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.2442, allocations: 309.1 kB / 344.2 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009693/0.2452, allocations: 0.6674 MB / 344.9 MB, free: 8.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002621/0.2478, allocations: 4.333 MB / 349.2 MB, free: 2.766 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003938/0.2518, allocations: 5.561 MB / 354.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.891e-05/0.2518, allocations: 40 kB / 354.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.003991/0.2558, allocations: 3.95 MB / 358.7 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.2558, allocations: 60 kB / 358.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.103e-05/0.2559, allocations: 136.9 kB / 358.9 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.281e-05/0.256, allocations: 176 kB / 359.1 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002352/0.2584, allocations: 1.525 MB / 360.6 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001449/0.2585, allocations: 266.9 kB / 360.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.2602, allocations: 259.8 kB / 361.1 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002615/0.2605, allocations: 322.6 kB / 361.5 MB, free: 4.93 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.001155/0.2617, allocations: 0.6106 MB / 362.1 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.2619, allocations: 199.8 kB / 362.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006235/0.2625, allocations: 0.6155 MB / 362.9 MB, free: 3.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.2625, allocations: 19.28 kB / 362.9 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2625, allocations: 4 kB / 362.9 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2625, allocations: 7.984 kB / 362.9 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003868/0.2664, allocations: 4.028 MB / 366.9 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.2664, allocations: 16 kB / 367 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.267, allocations: 296.4 kB / 367.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002779/0.2672, allocations: 328.5 kB / 367.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-05/0.2673, allocations: 27.94 kB / 367.6 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.2673, allocations: 47.98 kB / 367.6 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.849e-05/0.2673, allocations: 35.86 kB / 367.7 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/0.2673, allocations: 31.88 kB / 367.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.2685, allocations: 1.902 MB / 369.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.2687, allocations: 55.92 kB / 369.7 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.2693, allocations: 44 kB / 369.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.2694, allocations: 159.1 kB / 369.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.308e-05/0.2694, allocations: 59.98 kB / 369.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001011/0.2705, allocations: 1.271 MB / 371.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2705, allocations: 0 / 371.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002901/0.2734, allocations: 0.9763 MB / 372.2 MB, free: 10.37 MB / 346.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.0003317/0.2737, allocations: 207.8 kB / 372.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.2756, allocations: 2.244 MB / 374.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001691/0.2757, allocations: 104.2 kB / 374.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.276, allocations: 387.9 kB / 375.1 MB, free: 7.441 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.2775, allocations: 0.6388 MB / 375.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008692/0.2862, allocations: 7.641 MB / 383.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009449/0.2872, allocations: 1.157 MB / 384.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001009/0.2882, allocations: 0.4909 MB / 385 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006016/0.2888, allocations: 0.5246 MB / 385.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2888, allocations: 0 / 385.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of Templates: time 0.03744/0.3262, allocations: 24.15 MB / 409.7 MB, free: 4.773 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.5712688276544213]