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.001389/0.001389, allocations: 85.17 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001491/0.001491, allocations: 140 kB / 24.89 MB, free: 8.789 MB / 18.57 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.9415/0.9415, allocations: 173.3 MB / 201.5 MB, free: 9.188 MB / 186.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 2.033e-06/2.033e-06, allocations: 0 / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.423e-05, allocations: 6.25 kB / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01412/0.01415, allocations: 10.11 MB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0084/0.02255, allocations: 3.922 MB / 282.5 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.0238, allocations: 71.62 kB / 282.6 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.02633, allocations: 2.39 MB / 285 MB, free: 5.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003097/0.02942, allocations: 1.956 MB / 286.9 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.03048, allocations: 0.8031 MB / 287.7 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.108/0.1385, allocations: 4.857 MB / 292.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004075/0.1426, allocations: 3.121 MB / 295.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.1466, allocations: 2.36 MB / 298.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003117/0.1497, allocations: 2.238 MB / 300.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008386/0.1505, allocations: 292.3 kB / 300.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.1519, allocations: 0.8853 MB / 301.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.1531, allocations: 1.965 MB / 303.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.1541, allocations: 1.214 MB / 304.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002912/0.157, allocations: 4.28 MB / 308.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.157, allocations: 0 / 308.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.157, allocations: 3.938 kB / 308.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.453e-05/0.1571, allocations: 0 / 308.9 MB, free: 12.54 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.003471/0.1605, allocations: 4.276 MB / 313.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1606, allocations: 9.875 kB / 313.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002543/0.1631, allocations: 1.089 MB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.1646, allocations: 1.701 MB / 316 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.1647, allocations: 226.2 kB / 316.2 MB, free: 7.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/0.165, allocations: 296.9 kB / 316.5 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003597/0.1686, allocations: 4.862 MB / 321.4 MB, free: 2.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.304e-05/0.1686, allocations: 42.77 kB / 321.4 MB, free: 2.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/0.1688, allocations: 150.2 kB / 321.6 MB, free: 2.195 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001156/0.17, allocations: 1.718 MB / 323.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.1733, allocations: 2.378 MB / 325.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02118/0.1945, allocations: 30.99 MB / 356.7 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00362/0.1981, allocations: 1.544 MB / 358.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004137/0.1985, allocations: 263.5 kB / 358.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003634/0.2022, allocations: 2.435 MB / 360.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.2022, allocations: 48.09 kB / 360.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 3.947e-06/0.2022, allocations: 0 / 360.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.01162/0.2138, allocations: 4.47 MB / 365.4 MB, free: 6.637 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.2139, allocations: 145.5 kB / 365.6 MB, free: 6.465 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/0.2167, allocations: 3.068 MB / 368.6 MB, free: 3.949 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.686e-05/0.2167, allocations: 53.69 kB / 368.7 MB, free: 3.891 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.2182, allocations: 3.035 MB / 371.7 MB, free: 1.008 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.2186, allocations: 0.6201 MB / 372.3 MB, free: 428 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001117/0.2197, allocations: 1.109 MB / 373.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.103e-05/0.2198, allocations: 309.1 kB / 373.7 MB, free: 15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.221, allocations: 0.6719 MB / 374.4 MB, free: 14.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/0.224, allocations: 4.325 MB / 378.7 MB, free: 8.145 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004577/0.2286, allocations: 5.559 MB / 384.3 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.201e-05/0.2287, allocations: 40 kB / 384.3 MB, free: 0.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.005075/0.2337, allocations: 3.949 MB / 388.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.691e-05/0.2338, allocations: 64.19 kB / 388.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.2339, allocations: 136 kB / 388.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/0.2341, allocations: 180 kB / 388.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.237, allocations: 1.361 MB / 390 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000162/0.2372, allocations: 263 kB / 390.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002642/0.2398, allocations: 259.8 kB / 390.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003328/0.2401, allocations: 320 kB / 390.8 MB, free: 10.19 MB / 346.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.001156/0.2413, allocations: 0.6107 MB / 391.4 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003292/0.2416, allocations: 203.7 kB / 391.6 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007975/0.2424, allocations: 0.6155 MB / 392.3 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.2425, allocations: 16 kB / 392.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2425, allocations: 4 kB / 392.3 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.2425, allocations: 7.969 kB / 392.3 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004584/0.2471, allocations: 4.03 MB / 396.3 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.2471, allocations: 20 kB / 396.3 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/0.2476, allocations: 259.6 kB / 396.6 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.459e-05/0.2476, allocations: 24.75 kB / 396.6 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.2476, allocations: 48 kB / 396.7 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.861e-05/0.2476, allocations: 39.86 kB / 396.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.368e-05/0.2476, allocations: 35.81 kB / 396.7 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.249, allocations: 1.908 MB / 398.6 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002948/0.2493, allocations: 313.7 kB / 399 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.2495, allocations: 55.91 kB / 399 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005616/0.25, allocations: 51.3 kB / 399.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.2501, allocations: 159.3 kB / 399.2 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.2502, allocations: 55.94 kB / 399.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001052/0.2512, allocations: 1.279 MB / 400.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2512, allocations: 0 / 400.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002841/0.2541, allocations: 0.9686 MB / 401.5 MB, free: 14.93 MB / 362.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.0003017/0.2544, allocations: 207.6 kB / 401.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.2565, allocations: 2.242 MB / 404 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001453/0.2566, allocations: 101.9 kB / 404.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003185/0.2569, allocations: 387.6 kB / 404.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.2582, allocations: 420.3 kB / 404.8 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00746/0.2657, allocations: 7.384 MB / 412.2 MB, free: 3.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009101/0.2666, allocations: 1.156 MB / 413.4 MB, free: 2.715 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001035/0.2676, allocations: 498.7 kB / 413.9 MB, free: 2.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006052/0.2683, allocations: 0.5285 MB / 414.4 MB, free: 1.699 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/0.2683, allocations: 0 / 414.4 MB, free: 1.699 MB / 362.7 MB Notification: Performance of Templates: time 0.1371/0.4054, allocations: 23.48 MB / 437.9 MB, free: 118.9 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 -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.5745732421055436]