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.001181/0.001181, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.28/1.28, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009249/0.0009251, allocations: 95.67 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.695e-05, allocations: 4 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09823, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3648/0.4631, allocations: 96.45 MB / 490.7 MB, free: 7.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.4634, allocations: 99.75 kB / 490.8 MB, free: 6.984 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4717/0.9351, allocations: 85.97 MB / 0.5632 GB, free: 97.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.9351, allocations: 1.188 kB / 0.5632 GB, free: 97.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001875/0.9353, allocations: 82.41 kB / 0.5633 GB, free: 97.52 MB / 426.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.01162/0.947, allocations: 3.827 MB / 0.5671 GB, free: 95.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.947, allocations: 12.19 kB / 0.5671 GB, free: 95.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01222/0.9593, allocations: 2.44 MB / 0.5695 GB, free: 95.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.974, allocations: 4.768 MB / 0.5741 GB, free: 94.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/0.9744, allocations: 313.6 kB / 0.5744 GB, free: 94.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/0.9758, allocations: 410.2 kB / 0.5748 GB, free: 94.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01695/0.9928, allocations: 9.936 MB / 0.5845 GB, free: 92.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001663/0.993, allocations: 66.27 kB / 0.5846 GB, free: 92.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005667/0.9936, allocations: 203.4 kB / 0.5848 GB, free: 92.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001359/0.9949, allocations: 1.006 MB / 0.5857 GB, free: 92.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/1.009, allocations: 7.649 MB / 0.5932 GB, free: 90.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03862/1.047, allocations: 45.67 MB / 0.6378 GB, free: 54.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005661/1.053, allocations: 2.827 MB / 0.6406 GB, free: 53.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/1.054, allocations: 0.8447 MB / 0.6414 GB, free: 52.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005567/1.06, allocations: 3.795 MB / 0.6451 GB, free: 49.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/1.06, allocations: 63.02 kB / 0.6452 GB, free: 49.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 4.358e-06/1.06, allocations: 0 / 0.6452 GB, free: 49.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.01845/1.078, allocations: 8.334 MB / 0.6533 GB, free: 42.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/1.079, allocations: 149.2 kB / 0.6534 GB, free: 41.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004376/1.083, allocations: 3.425 MB / 0.6568 GB, free: 38.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/1.083, allocations: 45.7 kB / 0.6568 GB, free: 38.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/1.085, allocations: 3.093 MB / 0.6598 GB, free: 36.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004773/1.085, allocations: 0.6049 MB / 0.6604 GB, free: 35.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/1.085, allocations: 116 kB / 0.6605 GB, free: 35.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/1.085, allocations: 0.5498 MB / 0.6611 GB, free: 35.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/1.087, allocations: 1.479 MB / 0.6625 GB, free: 33.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003251/1.091, allocations: 5.223 MB / 0.6676 GB, free: 26.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002946/1.093, allocations: 2.784 MB / 0.6703 GB, free: 24.42 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.337e-05/1.094, allocations: 36 kB / 0.6704 GB, free: 24.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.00828/1.102, allocations: 6.451 MB / 0.6767 GB, free: 18.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.071e-05/1.102, allocations: 69.47 kB / 0.6767 GB, free: 18.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.892e-05/1.102, allocations: 132 kB / 0.6769 GB, free: 18.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001396/1.102, allocations: 196 kB / 0.6771 GB, free: 18.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003567/1.106, allocations: 1.396 MB / 0.6784 GB, free: 16.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001328/1.106, allocations: 262.9 kB / 0.6787 GB, free: 16.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/1.11, allocations: 368 kB / 0.679 GB, free: 16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004226/1.111, allocations: 371.9 kB / 0.6794 GB, free: 15.64 MB / 426.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.0005752/1.111, allocations: 0.5631 MB / 0.6799 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004146/1.112, allocations: 339.5 kB / 0.6803 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/1.113, allocations: 1.213 MB / 0.6814 GB, free: 13.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/1.113, allocations: 19.94 kB / 0.6815 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.113, allocations: 3.984 kB / 0.6815 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/1.113, allocations: 7.984 kB / 0.6815 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007843/1.121, allocations: 5.766 MB / 0.6871 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/1.121, allocations: 24.03 kB / 0.6871 GB, free: 7.391 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008777/1.122, allocations: 283.5 kB / 0.6874 GB, free: 7.113 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.482e-05/1.122, allocations: 28 kB / 0.6874 GB, free: 7.086 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-05/1.122, allocations: 51.98 kB / 0.6875 GB, free: 7.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.488e-05/1.122, allocations: 39.86 kB / 0.6875 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.599e-05/1.122, allocations: 27.88 kB / 0.6875 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003395/1.126, allocations: 5.331 MB / 0.6927 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007558/1.127, allocations: 416.5 kB / 0.6931 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002836/1.127, allocations: 55.98 kB / 0.6932 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/1.128, allocations: 87.92 kB / 0.6933 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/1.128, allocations: 151.4 kB / 0.6934 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-05/1.128, allocations: 67.83 kB / 0.6935 GB, free: 272 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004122/1.132, allocations: 2.369 MB / 0.6958 GB, free: 13.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.132, allocations: 0 / 0.6958 GB, free: 13.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00569/1.138, allocations: 0.8788 MB / 0.6967 GB, free: 13.04 MB / 442.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.0004519/1.139, allocations: 210.6 kB / 0.6969 GB, free: 12.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005873/1.144, allocations: 3.519 MB / 0.7003 GB, free: 9.344 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/1.144, allocations: 4.375 kB / 0.7003 GB, free: 9.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/1.145, allocations: 0.7171 MB / 0.701 GB, free: 8.625 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002345/1.148, allocations: 428.1 kB / 0.7014 GB, free: 8.219 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/1.161, allocations: 7.016 MB / 0.7083 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2677/1.429, allocations: 3.173 MB / 0.7114 GB, free: 96.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005806/1.435, allocations: 1.774 MB / 0.7131 GB, free: 96.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005976/1.436, allocations: 230.3 kB / 0.7133 GB, free: 96.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.403e-06/1.436, allocations: 0 / 0.7133 GB, free: 96.75 MB / 442.7 MB Notification: Performance of Templates: time 0.06647/1.502, allocations: 25.61 MB / 0.7383 GB, free: 95.75 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/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