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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 109.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 35.95 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2492, allocations: 49.45 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0262/0.2754, allocations: 38.65 MB / 438.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01945/0.2949, allocations: 8.476 MB / 446.6 MB, free: 2.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007562/0.3026, allocations: 171.5 kB / 446.8 MB, free: 1.895 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00487/0.3075, allocations: 2.205 MB / 449 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005385/0.3129, allocations: 1.701 MB / 450.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002072/0.315, allocations: 0.6631 MB / 451.3 MB, free: 13.31 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007621/0.3227, allocations: 5.893 MB / 457.2 MB, free: 7.402 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004201/0.3269, allocations: 2.858 MB / 460.1 MB, free: 4.488 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002485/0.3294, allocations: 1.331 MB / 461.4 MB, free: 3.152 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003324/0.3328, allocations: 2.235 MB / 463.7 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009643/0.3338, allocations: 216 kB / 463.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.336, allocations: 0.9166 MB / 464.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001996/0.338, allocations: 1.772 MB / 466.6 MB, free: 14 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003194/0.3412, allocations: 2.034 MB / 468.6 MB, free: 11.96 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00727/0.3485, allocations: 6.113 MB / 474.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3486, allocations: 0 / 474.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3486, allocations: 0 / 474.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002404/0.3488, allocations: 4 kB / 474.7 MB, free: 5.82 MB / 346.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.01018/0.359, allocations: 4.606 MB / 479.3 MB, free: 1.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3591, allocations: 8.031 kB / 479.3 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007002/0.3661, allocations: 1.922 MB / 481.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004914/0.371, allocations: 2.246 MB / 483.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.3713, allocations: 229.6 kB / 483.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006434/0.3719, allocations: 303.7 kB / 484 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.3888, allocations: 9.631 MB / 493.6 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.933e-05/0.3889, allocations: 43.59 kB / 493.7 MB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003399/0.3893, allocations: 147.8 kB / 493.8 MB, free: 1.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002734/0.392, allocations: 1.927 MB / 495.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/0.4064, allocations: 7.625 MB / 0.4916 GB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1972/0.6036, allocations: 37.72 MB / 0.5284 GB, free: 68.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00554/0.6092, allocations: 2.887 MB / 0.5313 GB, free: 67.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009959/0.6102, allocations: 0.8802 MB / 0.5321 GB, free: 66.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004851/0.6151, allocations: 3.772 MB / 0.5358 GB, free: 64.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.6152, allocations: 50.5 kB / 0.5358 GB, free: 64.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.657e-06/0.6152, allocations: 0 / 0.5358 GB, free: 64.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01738/0.6326, allocations: 9.025 MB / 0.5447 GB, free: 56.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.6326, allocations: 145.5 kB / 0.5448 GB, free: 56.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/0.6367, allocations: 3.916 MB / 0.5486 GB, free: 52.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.6368, allocations: 49.7 kB / 0.5487 GB, free: 52.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.6379, allocations: 3.082 MB / 0.5517 GB, free: 49.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003298/0.6383, allocations: 0.6002 MB / 0.5523 GB, free: 48.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009693/0.6393, allocations: 1.17 MB / 0.5534 GB, free: 47.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.694e-05/0.6393, allocations: 301.1 kB / 0.5537 GB, free: 47.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.6411, allocations: 1.581 MB / 0.5552 GB, free: 45.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/0.6441, allocations: 5.351 MB / 0.5605 GB, free: 38.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005053/0.6491, allocations: 7.555 MB / 0.5678 GB, free: 29.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.455e-05/0.6492, allocations: 36 kB / 0.5679 GB, free: 29.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007344/0.6565, allocations: 6.655 MB / 0.5744 GB, free: 22.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/0.6566, allocations: 60.41 kB / 0.5744 GB, free: 22.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.104e-05/0.6567, allocations: 143.9 kB / 0.5746 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001068/0.6568, allocations: 179.9 kB / 0.5747 GB, free: 22.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.6598, allocations: 1.392 MB / 0.5761 GB, free: 20.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001096/0.66, allocations: 262.6 kB / 0.5763 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/0.6628, allocations: 287.6 kB / 0.5766 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000275/0.663, allocations: 368 kB / 0.577 GB, free: 19.89 MB / 378.7 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 (746): * Single equations (assignments): 743 * 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.001938/0.665, allocations: 1.981 MB / 0.5789 GB, free: 17.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004328/0.6654, allocations: 335.6 kB / 0.5792 GB, free: 17.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.667, allocations: 1.25 MB / 0.5804 GB, free: 16.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.6671, allocations: 20 kB / 0.5805 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6671, allocations: 0 / 0.5805 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.6671, allocations: 4.125 kB / 0.5805 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007031/0.6741, allocations: 5.747 MB / 0.5861 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.6742, allocations: 16 kB / 0.5861 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.675, allocations: 279.5 kB / 0.5864 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.781e-05/0.6751, allocations: 24 kB / 0.5864 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.082e-05/0.6751, allocations: 55.78 kB / 0.5864 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.617e-05/0.6752, allocations: 35.86 kB / 0.5865 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.909e-06/0.6752, allocations: 31.88 kB / 0.5865 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007279/0.6825, allocations: 7.647 MB / 0.594 GB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005105/0.683, allocations: 412.6 kB / 0.5944 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/0.6833, allocations: 55.92 kB / 0.5944 GB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00097/0.6842, allocations: 61.7 kB / 0.5945 GB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.6844, allocations: 151.4 kB / 0.5946 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.171e-05/0.6845, allocations: 67.94 kB / 0.5947 GB, free: 1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003029/0.6875, allocations: 2.43 MB / 0.5971 GB, free: 14.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6875, allocations: 0 / 0.5971 GB, free: 14.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00455/0.6921, allocations: 1.09 MB / 0.5981 GB, free: 13.51 MB / 394.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 (142): * Single equations (assignments): 139 * 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.0004376/0.6925, allocations: 206.3 kB / 0.5983 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005421/0.698, allocations: 3.635 MB / 0.6019 GB, free: 9.695 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.698, allocations: 4.75 kB / 0.6019 GB, free: 9.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009317/0.6989, allocations: 0.7252 MB / 0.6026 GB, free: 8.969 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/0.7013, allocations: 442.6 kB / 0.603 GB, free: 8.539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.7143, allocations: 11.45 MB / 0.6142 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002936/0.7173, allocations: 3.153 MB / 0.6173 GB, free: 9.617 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004205/0.7215, allocations: 1.764 MB / 0.619 GB, free: 7.844 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004809/0.722, allocations: 235.4 kB / 0.6192 GB, free: 7.613 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/0.722, allocations: 4 kB / 0.6192 GB, free: 7.609 MB / 410.7 MB Notification: Performance of Templates: time 0.05454/0.7766, allocations: 27.43 MB / 0.646 GB, free: 12.32 MB / 442.7 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@2/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