Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8029/0.8029, allocations: 110.8 MB / 123.3 MB, free: 10.78 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001834/0.001834, allocations: 147.5 kB / 149.1 MB, free: 0.9883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.688e-05, allocations: 4 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04951/0.04955, allocations: 25.18 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1778/0.2274, allocations: 47.74 MB / 253.1 MB, free: 19.72 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.2277, allocations: 76.61 kB / 253.2 MB, free: 19.72 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7375/0.9651, allocations: 182.4 MB / 435.6 MB, free: 26.49 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.9652, allocations: 0 / 435.6 MB, free: 26.49 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002028/0.9654, allocations: 108.9 kB / 435.7 MB, free: 26.48 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2050 * Number of variables: 2050 Notification: Performance of Generate backend data structure: time 0.02808/0.9935, allocations: 7.542 MB / 443.3 MB, free: 24.23 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.9936, allocations: 9.688 kB / 443.3 MB, free: 24.23 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1239/1.117, allocations: 24.84 MB / 468.1 MB, free: 23.24 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/1.134, allocations: 7.065 MB / 475.2 MB, free: 22.56 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004665/1.135, allocations: 444.3 kB / 475.6 MB, free: 22.55 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004678/1.14, allocations: 0.553 MB / 476.2 MB, free: 22.54 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03966/1.179, allocations: 18.93 MB / 495.1 MB, free: 14.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001924/1.179, allocations: 39.5 kB / 495.1 MB, free: 14.71 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002246/1.182, allocations: 259.9 kB / 495.4 MB, free: 14.5 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04425/1.226, allocations: 10 MB / 0.4935 GB, free: 5.332 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03867/1.265, allocations: 19.58 MB / 0.5127 GB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7777/2.042, allocations: 126.7 MB / 0.6363 GB, free: 31.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007564/2.05, allocations: 4.672 MB / 0.6409 GB, free: 30.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00257/2.053, allocations: 2.138 MB / 0.643 GB, free: 30.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08738/2.14, allocations: 23.07 MB / 0.6655 GB, free: 28.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/2.14, allocations: 58.02 kB / 0.6656 GB, free: 28.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=195): time 5.751e-06/2.14, allocations: 0 / 0.6656 GB, free: 28.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=213): time 0.02448/2.165, allocations: 11.61 MB / 0.6769 GB, free: 24.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/2.165, allocations: 147.9 kB / 0.6771 GB, free: 24.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006096/2.171, allocations: 4.699 MB / 0.6816 GB, free: 23.69 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004631/2.171, allocations: 51.98 kB / 0.6817 GB, free: 23.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/2.173, allocations: 4.113 MB / 0.6857 GB, free: 20.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000796/2.174, allocations: 0.8406 MB / 0.6865 GB, free: 19.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004139/2.174, allocations: 152 kB / 0.6867 GB, free: 19.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003062/2.175, allocations: 0.6386 MB / 0.6873 GB, free: 18.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/2.179, allocations: 3.029 MB / 0.6903 GB, free: 16.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005672/2.184, allocations: 7.994 MB / 0.6981 GB, free: 5.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00499/2.189, allocations: 4.086 MB / 0.7021 GB, free: 1.957 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.997e-05/2.189, allocations: 52 kB / 0.7021 GB, free: 1.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=1028) (initialization): time 0.01762/2.207, allocations: 10.2 MB / 0.7121 GB, free: 7.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/2.207, allocations: 87.83 kB / 0.7122 GB, free: 7.855 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002416/2.207, allocations: 183.9 kB / 0.7123 GB, free: 7.676 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002545/2.208, allocations: 256 kB / 0.7126 GB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006388/2.214, allocations: 1.953 MB / 0.7145 GB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002645/2.214, allocations: 350.5 kB / 0.7148 GB, free: 5.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01382/2.228, allocations: 1.879 MB / 0.7167 GB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/2.23, allocations: 0.6794 MB / 0.7173 GB, free: 2.57 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 809 * Number of states: 0 () * Number of discrete variables: 33 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (984): * Single equations (assignments): 971 * Array equations: 13 * 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.001623/2.232, allocations: 0.7116 MB / 0.718 GB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/2.233, allocations: 430.4 kB / 0.7184 GB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1551/2.388, allocations: 1.719 MB / 0.7201 GB, free: 58.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01295/2.401, allocations: 2.663 MB / 0.7227 GB, free: 58.86 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-05/2.401, allocations: 2.156 kB / 0.7227 GB, free: 58.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-05/2.401, allocations: 10.17 kB / 0.7227 GB, free: 58.86 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05259/2.454, allocations: 16.29 MB / 0.7386 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-05/2.454, allocations: 20.39 kB / 0.7386 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/2.456, allocations: 377.1 kB / 0.739 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-05/2.456, allocations: 31.62 kB / 0.739 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004011/2.456, allocations: 137.8 kB / 0.7392 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.633e-05/2.456, allocations: 35.25 kB / 0.7392 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-05/2.456, allocations: 31.31 kB / 0.7392 GB, free: 57.7 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00843/2.465, allocations: 9.459 MB / 0.7485 GB, free: 53.53 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003438/2.468, allocations: 1.005 MB / 0.7494 GB, free: 53.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/2.469, allocations: 69.47 kB / 0.7495 GB, free: 53.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008079/2.477, allocations: 1.392 MB / 0.7509 GB, free: 53.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/2.477, allocations: 179.2 kB / 0.751 GB, free: 53.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003837/2.478, allocations: 254.3 kB / 0.7513 GB, free: 53.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.005314/2.483, allocations: 3.253 MB / 0.7545 GB, free: 53.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.42e-07/2.483, allocations: 0 / 0.7545 GB, free: 53.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.007699/2.491, allocations: 1.292 MB / 0.7557 GB, free: 53.21 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 85 * 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 (187): * Single equations (assignments): 174 * Array equations: 13 * 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.0007071/2.492, allocations: 215.7 kB / 0.7559 GB, free: 53.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.009266/2.501, allocations: 6.722 MB / 0.7625 GB, free: 52.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.822e-05/2.501, allocations: 7.25 kB / 0.7625 GB, free: 52.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/2.503, allocations: 1.861 MB / 0.7643 GB, free: 52.9 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/2.507, allocations: 455.1 kB / 0.7647 GB, free: 52.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/2.527, allocations: 10.13 MB / 0.7746 GB, free: 48.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004465/2.532, allocations: 4.112 MB / 0.7787 GB, free: 46.92 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.008966/2.541, allocations: 2.92 MB / 0.7815 GB, free: 45.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002591/2.543, allocations: 0.6676 MB / 0.7822 GB, free: 44.51 MB / 282.7 MB Notification: Performance of SimCode: time 9.02e-07/2.543, allocations: 0 / 0.7822 GB, free: 44.51 MB / 282.7 MB Notification: Performance of Templates: time 0.2608/2.804, allocations: 58.58 MB / 0.8394 GB, free: 52.55 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)