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.001047/0.001047, allocations: 173.3 kB / 16.11 MB, free: 5.57 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.361/1.361, allocations: 223.2 MB / 240.1 MB, free: 15.93 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.0007569/0.000757, allocations: 101.7 kB / 291.3 MB, free: 4.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04034/0.04034, allocations: 8.94 MB / 351.4 MB, free: 4.047 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004027, allocations: 8 kB / 414.4 MB, free: 4.957 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2321, allocations: 52.37 MB / 466.8 MB, free: 69.13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09253/0.3247, allocations: 88.64 MB / 0.5424 GB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.3249, allocations: 79.95 kB / 0.5425 GB, free: 12.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2983/0.6232, allocations: 61.52 MB / 0.6026 GB, free: 54.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.6233, allocations: 7.938 kB / 0.6026 GB, free: 54.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.6234, allocations: 51.94 kB / 0.6026 GB, free: 54.16 MB / 378.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.008689/0.6321, allocations: 2.763 MB / 0.6053 GB, free: 51.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.6322, allocations: 8.031 kB / 0.6053 GB, free: 51.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008761/0.6409, allocations: 1.966 MB / 0.6072 GB, free: 49.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004157/0.6451, allocations: 1.689 MB / 0.6089 GB, free: 47.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.6454, allocations: 222.2 kB / 0.6091 GB, free: 47.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/0.6472, allocations: 300.2 kB / 0.6094 GB, free: 47.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01789/0.6651, allocations: 7.595 MB / 0.6168 GB, free: 39.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001695/0.6653, allocations: 24 kB / 0.6168 GB, free: 39.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.6667, allocations: 139.8 kB / 0.617 GB, free: 38.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001456/0.6682, allocations: 0.8999 MB / 0.6178 GB, free: 38.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.6812, allocations: 7.008 MB / 0.6247 GB, free: 31.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03599/0.7172, allocations: 24.11 MB / 0.6482 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004149/0.7214, allocations: 2.141 MB / 0.6503 GB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.7226, allocations: 0.7096 MB / 0.651 GB, free: 3.461 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005325/0.7279, allocations: 3.984 MB / 0.6549 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.728, allocations: 47.5 kB / 0.655 GB, free: 15.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 3.487e-06/0.728, allocations: 0 / 0.655 GB, free: 15.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=117): time 0.009905/0.7379, allocations: 4.328 MB / 0.6592 GB, free: 10.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.738, allocations: 60.41 kB / 0.6592 GB, free: 10.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005361/0.7434, allocations: 2.557 MB / 0.6617 GB, free: 8.027 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.7436, allocations: 41.7 kB / 0.6618 GB, free: 7.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001758/0.7454, allocations: 2.119 MB / 0.6638 GB, free: 5.828 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006708/0.7461, allocations: 458 kB / 0.6643 GB, free: 5.375 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/0.7464, allocations: 72 kB / 0.6644 GB, free: 5.305 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003898/0.7468, allocations: 466.1 kB / 0.6648 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.7492, allocations: 1.147 MB / 0.6659 GB, free: 3.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004316/0.7535, allocations: 3.288 MB / 0.6691 GB, free: 15.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006257/0.7598, allocations: 4.748 MB / 0.6738 GB, free: 9.543 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.025e-05/0.7599, allocations: 20 kB / 0.6738 GB, free: 9.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=486) (initialization): time 0.00866/0.7686, allocations: 4.385 MB / 0.6781 GB, free: 5.141 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-05/0.7687, allocations: 36 kB / 0.6781 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/0.7689, allocations: 76 kB / 0.6782 GB, free: 5.031 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.769, allocations: 100 kB / 0.6783 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/0.7719, allocations: 0.8383 MB / 0.6791 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001315/0.772, allocations: 151.4 kB / 0.6792 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/0.7746, allocations: 180 kB / 0.6794 GB, free: 3.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004835/0.7751, allocations: 236 kB / 0.6796 GB, free: 3.539 MB / 410.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 () * Number of clocked 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.003136/0.7783, allocations: 1.568 MB / 0.6812 GB, free: 1.957 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004671/0.7787, allocations: 213.2 kB / 0.6814 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002767/0.7815, allocations: 1.367 MB / 0.6827 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/0.7817, allocations: 27.97 kB / 0.6827 GB, free: 348 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.7817, allocations: 0 / 0.6827 GB, free: 348 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.7817, allocations: 7.969 kB / 0.6827 GB, free: 340 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.7937, allocations: 4.738 MB / 0.6874 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.7938, allocations: 4 kB / 0.6874 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008851/0.7947, allocations: 179.7 kB / 0.6875 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.798e-05/0.7947, allocations: 8 kB / 0.6875 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.7948, allocations: 32.27 kB / 0.6876 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.39e-05/0.7948, allocations: 8.5 kB / 0.6876 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.725e-05/0.7949, allocations: 11.94 kB / 0.6876 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.799, allocations: 2.312 MB / 0.6899 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.8001, allocations: 306.4 kB / 0.6901 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007275/0.8009, allocations: 23.98 kB / 0.6902 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.8021, allocations: 55.94 kB / 0.6902 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.8024, allocations: 72.3 kB / 0.6903 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.8025, allocations: 36 kB / 0.6903 GB, free: 8.312 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004475/0.807, allocations: 1.648 MB / 0.6919 GB, free: 6.648 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.807, allocations: 0 / 0.6919 GB, free: 6.648 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004287/0.8113, allocations: 0.625 MB / 0.6925 GB, free: 6.023 MB / 426.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 () * Number of clocked 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.000498/0.8118, allocations: 171 kB / 0.6927 GB, free: 5.844 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004726/0.8165, allocations: 2.571 MB / 0.6952 GB, free: 3.293 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.597e-06/0.8166, allocations: 4 kB / 0.6952 GB, free: 3.289 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.8175, allocations: 0.61 MB / 0.6958 GB, free: 2.672 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003579/0.8211, allocations: 348.9 kB / 0.6961 GB, free: 2.332 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.8353, allocations: 7.725 MB / 0.7037 GB, free: 10.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004166/0.8395, allocations: 2.554 MB / 0.7062 GB, free: 7.922 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003302/0.8429, allocations: 1.117 MB / 0.7073 GB, free: 6.801 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004381/0.8433, allocations: 163.4 kB / 0.7074 GB, free: 6.641 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/0.8433, allocations: 0 / 0.7074 GB, free: 6.641 MB / 442.7 MB Notification: Performance of Templates: time 0.04433/0.8877, allocations: 21.19 MB / 0.7281 GB, free: 1.555 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)