Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001042, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.161/1.161, allocations: 221.4 MB / 234.6 MB, free: 14.38 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.0007937/0.0007938, allocations: 98.78 kB / 285.6 MB, free: 12.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03731/0.03731, allocations: 8.833 MB / 345.3 MB, free: 1.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.309e-05, allocations: 7.984 kB / 405.6 MB, free: 61.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07919/0.07923, allocations: 52.38 MB / 457.9 MB, free: 9.055 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3185/0.3978, allocations: 88.58 MB / 0.5337 GB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.398, allocations: 75.84 kB / 0.5338 GB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1447/0.5427, allocations: 62.11 MB / 0.5944 GB, free: 5.164 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5428, allocations: 4 kB / 0.5944 GB, free: 5.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.929e-05/0.5429, allocations: 48 kB / 0.5945 GB, free: 5.113 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006036/0.5489, allocations: 2.728 MB / 0.5972 GB, free: 2.324 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.549, allocations: 8.031 kB / 0.5972 GB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008233/0.5572, allocations: 1.973 MB / 0.5991 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003447/0.5607, allocations: 1.657 MB / 0.6007 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.5609, allocations: 237.7 kB / 0.6009 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007895/0.5617, allocations: 291.9 kB / 0.6012 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.576, allocations: 7.54 MB / 0.6086 GB, free: 6.191 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-05/0.5762, allocations: 19.62 kB / 0.6086 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004968/0.5767, allocations: 135.9 kB / 0.6087 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001335/0.578, allocations: 0.896 MB / 0.6096 GB, free: 5.145 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01295/0.591, allocations: 6.923 MB / 0.6164 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04359/0.6346, allocations: 24.13 MB / 0.6399 GB, free: 5.578 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006086/0.6408, allocations: 2.108 MB / 0.642 GB, free: 3.332 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.6423, allocations: 0.6925 MB / 0.6427 GB, free: 2.637 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1989/0.8412, allocations: 3.994 MB / 0.6466 GB, free: 125.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.8413, allocations: 43.16 kB / 0.6466 GB, free: 125.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 4.238e-06/0.8413, allocations: 0.875 kB / 0.6466 GB, free: 125.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=117): time 0.007185/0.8485, allocations: 3.759 MB / 0.6503 GB, free: 124.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.8485, allocations: 64.73 kB / 0.6503 GB, free: 124.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/0.8515, allocations: 2.284 MB / 0.6526 GB, free: 124.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.484e-05/0.8515, allocations: 44.7 kB / 0.6526 GB, free: 124.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009766/0.8525, allocations: 2.115 MB / 0.6547 GB, free: 123.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.8528, allocations: 458.2 kB / 0.6551 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.8529, allocations: 72.5 kB / 0.6552 GB, free: 122.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.8531, allocations: 467 kB / 0.6556 GB, free: 122.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.8546, allocations: 1.104 MB / 0.6567 GB, free: 122.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/0.8568, allocations: 3.238 MB / 0.6599 GB, free: 119.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.8591, allocations: 1.917 MB / 0.6617 GB, free: 119.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.621e-05/0.8591, allocations: 22.03 kB / 0.6618 GB, free: 119.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=486) (initialization): time 0.005939/0.8651, allocations: 4.297 MB / 0.666 GB, free: 119.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.8651, allocations: 39.17 kB / 0.666 GB, free: 119.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.688e-05/0.8652, allocations: 75.62 kB / 0.6661 GB, free: 119.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.5e-05/0.8653, allocations: 117.8 kB / 0.6662 GB, free: 119.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00214/0.8674, allocations: 0.837 MB / 0.667 GB, free: 119.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.098e-05/0.8675, allocations: 151.5 kB / 0.6671 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.8697, allocations: 183.1 kB / 0.6673 GB, free: 119.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/0.8699, allocations: 222.9 kB / 0.6675 GB, free: 119.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 344 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (458): * Single equations (assignments): 453 * Array equations: 5 * 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.0003431/0.8703, allocations: 386.3 kB / 0.6679 GB, free: 119.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002024/0.8705, allocations: 205.2 kB / 0.6681 GB, free: 119 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.8722, allocations: 1.341 MB / 0.6694 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001154/0.8723, allocations: 30.19 kB / 0.6694 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.8723, allocations: 0 / 0.6694 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.8723, allocations: 7.188 kB / 0.6694 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005889/0.8782, allocations: 4.705 MB / 0.674 GB, free: 118.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.8783, allocations: 3.625 kB / 0.674 GB, free: 118.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007063/0.879, allocations: 178.6 kB / 0.6742 GB, free: 118.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.219e-05/0.879, allocations: 18.23 kB / 0.6742 GB, free: 118.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.997e-05/0.8791, allocations: 31.16 kB / 0.6743 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.815e-06/0.8791, allocations: 13.36 kB / 0.6743 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8791, allocations: 10.88 kB / 0.6743 GB, free: 118.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002178/0.8813, allocations: 2.643 MB / 0.6769 GB, free: 116.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000424/0.8817, allocations: 304.8 kB / 0.6771 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.8819, allocations: 30.73 kB / 0.6772 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007191/0.8826, allocations: 52.92 kB / 0.6772 GB, free: 116.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/0.8828, allocations: 74.3 kB / 0.6773 GB, free: 116.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.8828, allocations: 41.62 kB / 0.6773 GB, free: 116.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.8846, allocations: 1.609 MB / 0.6789 GB, free: 115.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.8846, allocations: 0 / 0.6789 GB, free: 115.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002496/0.8871, allocations: 0.6395 MB / 0.6795 GB, free: 115.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 5 * 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.0003028/0.8874, allocations: 166.8 kB / 0.6797 GB, free: 115.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003051/0.8904, allocations: 2.513 MB / 0.6821 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.8905, allocations: 3.875 kB / 0.6821 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005926/0.8911, allocations: 0.5988 MB / 0.6827 GB, free: 114.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.8925, allocations: 339.8 kB / 0.6831 GB, free: 114.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007836/0.9003, allocations: 5.212 MB / 0.6881 GB, free: 112.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/0.9024, allocations: 2.615 MB / 0.6907 GB, free: 111 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002446/0.9048, allocations: 1.113 MB / 0.6918 GB, free: 110.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003458/0.9052, allocations: 157.4 kB / 0.6919 GB, free: 110.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9052, allocations: 3.969 kB / 0.6919 GB, free: 110.9 MB / 458.7 MB Notification: Performance of Templates: time 0.03158/0.9368, allocations: 21.1 MB / 0.7126 GB, free: 104.2 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)