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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001482/0.001482, allocations: 171.6 kB / 14.1 MB, free: 1.219 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008474/0.0008475, allocations: 90.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.167e-05, allocations: 0 / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08473/0.08478, allocations: 47.58 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.3951, allocations: 94.84 MB / 464.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.3954, allocations: 83.39 kB / 465 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4102/0.8056, allocations: 85.06 MB / 0.5371 GB, free: 92.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.8057, allocations: 0 / 0.5371 GB, free: 92.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002149/0.8059, allocations: 79.3 kB / 0.5372 GB, free: 92.03 MB / 410.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.01319/0.8191, allocations: 3.837 MB / 0.5409 GB, free: 90.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.8192, allocations: 14.14 kB / 0.541 GB, free: 90.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01355/0.8327, allocations: 2.442 MB / 0.5433 GB, free: 90.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/0.8474, allocations: 5.067 MB / 0.5483 GB, free: 89.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004348/0.8479, allocations: 312 kB / 0.5486 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002122/0.85, allocations: 419.1 kB / 0.549 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02216/0.8722, allocations: 9.926 MB / 0.5587 GB, free: 86.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000203/0.8724, allocations: 66.27 kB / 0.5587 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00103/0.8735, allocations: 205.2 kB / 0.5589 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001358/0.8748, allocations: 1.006 MB / 0.5599 GB, free: 86.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/0.8881, allocations: 7.645 MB / 0.5674 GB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03914/0.9273, allocations: 45.7 MB / 0.612 GB, free: 51.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005738/0.9331, allocations: 2.837 MB / 0.6148 GB, free: 50.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.9342, allocations: 0.8487 MB / 0.6156 GB, free: 49.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005392/0.9396, allocations: 3.827 MB / 0.6194 GB, free: 47.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.9396, allocations: 45.09 kB / 0.6194 GB, free: 47.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 4.368e-06/0.9396, allocations: 0 / 0.6194 GB, free: 47.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.02024/0.9599, allocations: 8.44 MB / 0.6276 GB, free: 42.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.96, allocations: 149.2 kB / 0.6278 GB, free: 42.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004532/0.9645, allocations: 3.459 MB / 0.6312 GB, free: 39.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002205/0.9648, allocations: 41.7 kB / 0.6312 GB, free: 39.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.9662, allocations: 3.096 MB / 0.6342 GB, free: 36.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005089/0.9667, allocations: 0.6126 MB / 0.6348 GB, free: 36.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.9669, allocations: 116 kB / 0.6349 GB, free: 36.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002223/0.9671, allocations: 0.5436 MB / 0.6355 GB, free: 35.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/0.9689, allocations: 1.488 MB / 0.6369 GB, free: 34.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002982/0.9719, allocations: 5.219 MB / 0.642 GB, free: 27.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002975/0.9749, allocations: 2.789 MB / 0.6447 GB, free: 25.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.291e-05/0.975, allocations: 40 kB / 0.6448 GB, free: 25.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.008777/0.9838, allocations: 6.456 MB / 0.6511 GB, free: 19.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.702e-05/0.9839, allocations: 64 kB / 0.6511 GB, free: 19.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/0.984, allocations: 132 kB / 0.6513 GB, free: 19.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001429/0.9841, allocations: 196 kB / 0.6515 GB, free: 18.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003799/0.988, allocations: 1.403 MB / 0.6528 GB, free: 17.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001291/0.9881, allocations: 261.5 kB / 0.6531 GB, free: 17.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003945/0.992, allocations: 374.2 kB / 0.6534 GB, free: 17.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004614/0.9925, allocations: 359.5 kB / 0.6538 GB, free: 16.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 733 * 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.0005274/0.9931, allocations: 0.5603 MB / 0.6543 GB, free: 16.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003985/0.9935, allocations: 339.6 kB / 0.6546 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.9952, allocations: 1.221 MB / 0.6558 GB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.9952, allocations: 16 kB / 0.6559 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.9952, allocations: 8 kB / 0.6559 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.9952, allocations: 7.781 kB / 0.6559 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007303/1.003, allocations: 5.783 MB / 0.6615 GB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/1.003, allocations: 16 kB / 0.6615 GB, free: 9.621 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000952/1.004, allocations: 282 kB / 0.6618 GB, free: 9.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.633e-05/1.004, allocations: 31.7 kB / 0.6618 GB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.753e-05/1.004, allocations: 51.89 kB / 0.6619 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.898e-05/1.004, allocations: 34.83 kB / 0.6619 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/1.004, allocations: 28.28 kB / 0.6619 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00349/1.007, allocations: 5.354 MB / 0.6672 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.009, allocations: 0.5276 MB / 0.6677 GB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004205/1.009, allocations: 47.47 kB / 0.6677 GB, free: 2.664 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/1.01, allocations: 93.42 kB / 0.6678 GB, free: 2.594 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/1.011, allocations: 146.6 kB / 0.668 GB, free: 2.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.014e-05/1.011, allocations: 75.75 kB / 0.668 GB, free: 2.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003486/1.014, allocations: 2.383 MB / 0.6704 GB, free: 288 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.014, allocations: 0 / 0.6704 GB, free: 288 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.008796/1.023, allocations: 1.154 MB / 0.6715 GB, free: 0 / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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.0005869/1.024, allocations: 214.1 kB / 0.6717 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005978/1.03, allocations: 3.517 MB / 0.6751 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.497e-05/1.03, allocations: 4 kB / 0.6751 GB, free: 12.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/1.031, allocations: 0.7133 MB / 0.6758 GB, free: 11.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/1.033, allocations: 435.3 kB / 0.6762 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/1.046, allocations: 7.033 MB / 0.6831 GB, free: 4.422 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003445/1.05, allocations: 3.186 MB / 0.6862 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.2073/1.257, allocations: 1.772 MB / 0.6879 GB, free: 90.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000866/1.258, allocations: 230.4 kB / 0.6882 GB, free: 90.33 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.258, allocations: 0 / 0.6882 GB, free: 90.33 MB / 426.7 MB Notification: Performance of Templates: time 0.05773/1.316, allocations: 25.67 MB / 0.7132 GB, free: 89.41 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches