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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 95.89 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 173.3 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003151, allocations: 10.06 kB / 300.7 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1001, allocations: 50.43 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0314/0.1316, allocations: 33.05 MB / 384.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.1477, allocations: 8.326 MB / 392.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004676/0.1524, allocations: 163.6 kB / 392.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004035/0.1565, allocations: 1.606 MB / 394.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.1686, allocations: 4.866 MB / 399.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001966/0.1706, allocations: 0.6202 MB / 399.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003861/0.1745, allocations: 2.401 MB / 402.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004339/0.1788, allocations: 3.328 MB / 405.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.1804, allocations: 1.039 MB / 406.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.1822, allocations: 1.468 MB / 408 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003615/0.1825, allocations: 140 kB / 408.1 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001322/0.1839, allocations: 0.7061 MB / 408.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001376/0.1853, allocations: 1.516 MB / 410.4 MB, free: 288 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008054/0.1861, allocations: 0.7882 MB / 411.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004648/0.1907, allocations: 4.859 MB / 416 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1908, allocations: 0 / 416 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1908, allocations: 0 / 416 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001487/0.1909, allocations: 0 / 416 MB, free: 10.61 MB / 350.1 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.006482/0.1974, allocations: 3.87 MB / 419.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1975, allocations: 8.031 kB / 419.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0083/0.2058, allocations: 2.264 MB / 422.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005551/0.2113, allocations: 2.402 MB / 424.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.2115, allocations: 225.6 kB / 424.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006398/0.2122, allocations: 307.7 kB / 425.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1938/0.406, allocations: 9.689 MB / 434.8 MB, free: 61.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.4062, allocations: 51.61 kB / 434.8 MB, free: 61.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000411/0.4066, allocations: 144.9 kB / 435 MB, free: 61.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003163/0.4097, allocations: 1.919 MB / 436.9 MB, free: 61.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01467/0.4244, allocations: 7.698 MB / 444.6 MB, free: 59.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03628/0.4608, allocations: 37.84 MB / 482.4 MB, free: 22.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006127/0.4669, allocations: 2.897 MB / 485.3 MB, free: 18.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005652/0.4726, allocations: 3.806 MB / 489.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.4727, allocations: 51.22 kB / 489.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 4.659e-06/0.4727, allocations: 0 / 489.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=152): time 0.01908/0.4918, allocations: 9.32 MB / 498.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.4919, allocations: 145.5 kB / 498.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00423/0.4961, allocations: 4.132 MB / 0.491 GB, free: 1.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001901/0.4963, allocations: 45.7 kB / 0.491 GB, free: 1.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/0.4982, allocations: 3.081 MB / 0.494 GB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006057/0.4988, allocations: 0.6119 MB / 0.4946 GB, free: 13.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.499, allocations: 116 kB / 0.4947 GB, free: 13.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000345/0.4993, allocations: 0.5577 MB / 0.4953 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002493/0.5018, allocations: 1.538 MB / 0.4968 GB, free: 11.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005023/0.5069, allocations: 5.287 MB / 0.502 GB, free: 4.027 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.5108, allocations: 2.795 MB / 0.5047 GB, free: 1.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.497e-05/0.5109, allocations: 36 kB / 0.5047 GB, free: 1.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.0101/0.521, allocations: 6.57 MB / 0.5111 GB, free: 10.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.5211, allocations: 67.94 kB / 0.5112 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/0.5212, allocations: 132 kB / 0.5113 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001692/0.5214, allocations: 200 kB / 0.5115 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/0.5252, allocations: 1.381 MB / 0.5129 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001723/0.5254, allocations: 259 kB / 0.5131 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003344/0.5288, allocations: 283.6 kB / 0.5134 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004356/0.5292, allocations: 356 kB / 0.5137 GB, free: 7.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002672/0.5319, allocations: 1.982 MB / 0.5157 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.5324, allocations: 340.9 kB / 0.516 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.5343, allocations: 1.242 MB / 0.5172 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/0.5343, allocations: 19.83 kB / 0.5172 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.5343, allocations: 0 / 0.5172 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.5343, allocations: 7.984 kB / 0.5172 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008216/0.5426, allocations: 5.764 MB / 0.5228 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.5426, allocations: 20.06 kB / 0.5229 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009559/0.5436, allocations: 279.6 kB / 0.5231 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.578e-05/0.5436, allocations: 28 kB / 0.5232 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.892e-05/0.5437, allocations: 55.98 kB / 0.5232 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.25e-05/0.5437, allocations: 35.86 kB / 0.5232 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.695e-05/0.5437, allocations: 27.88 kB / 0.5233 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0041/0.5479, allocations: 5.272 MB / 0.5284 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008437/0.5487, allocations: 420.6 kB / 0.5288 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.549, allocations: 51.98 kB / 0.5289 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.5501, allocations: 59.91 kB / 0.5289 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.5503, allocations: 159.1 kB / 0.5291 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-05/0.5504, allocations: 67.98 kB / 0.5291 GB, free: 7.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003486/0.5538, allocations: 2.595 MB / 0.5317 GB, free: 4.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5539, allocations: 0 / 0.5317 GB, free: 4.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004227/0.5581, allocations: 0.8801 MB / 0.5325 GB, free: 3.805 MB / 398.1 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004414/0.5585, allocations: 222.1 kB / 0.5328 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005416/0.564, allocations: 3.588 MB / 0.5363 GB, free: 24 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/0.564, allocations: 4.625 kB / 0.5363 GB, free: 20 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009762/0.565, allocations: 0.7253 MB / 0.537 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.567, allocations: 412.4 kB / 0.5374 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.5809, allocations: 10.11 MB / 0.5472 GB, free: 4.504 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003511/0.5845, allocations: 3.173 MB / 0.5503 GB, free: 1.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004222/0.5887, allocations: 1.77 MB / 0.5521 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004768/0.5892, allocations: 235.4 kB / 0.5523 GB, free: 15.29 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5892, allocations: 3.938 kB / 0.5523 GB, free: 15.29 MB / 430.1 MB Notification: Performance of Templates: time 0.05103/0.6403, allocations: 26.12 MB / 0.5778 GB, free: 5.328 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches