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.008957/0.008957, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.446/1.446, allocations: 223.2 MB / 239 MB, free: 40 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 98.16 kB / 290.2 MB, free: 4.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04015/0.04015, allocations: 8.945 MB / 350.3 MB, free: 4.152 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 4 kB / 413.1 MB, free: 5.246 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2838, allocations: 52.38 MB / 465.5 MB, free: 69.25 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.4325, allocations: 88.6 MB / 0.5411 GB, free: 12.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.4328, allocations: 79.97 kB / 0.5412 GB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4882/0.921, allocations: 62.04 MB / 0.6018 GB, free: 53.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.9211, allocations: 0 / 0.6018 GB, free: 53.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.522e-05/0.9212, allocations: 48 kB / 0.6018 GB, free: 53.87 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.007737/0.9289, allocations: 2.827 MB / 0.6046 GB, free: 50.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.929, allocations: 12.03 kB / 0.6046 GB, free: 50.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008595/0.9376, allocations: 1.961 MB / 0.6065 GB, free: 49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004812/0.9424, allocations: 1.676 MB / 0.6082 GB, free: 47.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.9426, allocations: 225.8 kB / 0.6084 GB, free: 47.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.944, allocations: 295.9 kB / 0.6087 GB, free: 46.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.9578, allocations: 7.602 MB / 0.6161 GB, free: 38.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-05/0.9579, allocations: 15.88 kB / 0.6161 GB, free: 38.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004778/0.9584, allocations: 139.9 kB / 0.6162 GB, free: 38.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001161/0.9596, allocations: 0.9037 MB / 0.6171 GB, free: 37.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.9709, allocations: 7.035 MB / 0.624 GB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03006/1.001, allocations: 24.14 MB / 0.6476 GB, free: 6.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/1.005, allocations: 2.146 MB / 0.6497 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006977/1.012, allocations: 4 MB / 0.6536 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.198e-05/1.012, allocations: 47.5 kB / 0.6536 GB, free: 15.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 4.418e-06/1.012, allocations: 0 / 0.6536 GB, free: 15.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=117): time 0.01055/1.023, allocations: 4.755 MB / 0.6582 GB, free: 10.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/1.023, allocations: 60.41 kB / 0.6583 GB, free: 10.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003684/1.026, allocations: 2.32 MB / 0.6606 GB, free: 8.047 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/1.027, allocations: 37.7 kB / 0.6606 GB, free: 8.004 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001413/1.028, allocations: 2.112 MB / 0.6627 GB, free: 5.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004487/1.028, allocations: 458.1 kB / 0.6631 GB, free: 5.406 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/1.029, allocations: 72 kB / 0.6632 GB, free: 5.336 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002844/1.029, allocations: 470.1 kB / 0.6636 GB, free: 4.871 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/1.031, allocations: 1.143 MB / 0.6647 GB, free: 3.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003232/1.034, allocations: 3.276 MB / 0.6679 GB, free: 15.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/1.037, allocations: 1.936 MB / 0.6698 GB, free: 13.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.198e-05/1.037, allocations: 24 kB / 0.6698 GB, free: 13.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=486) (initialization): time 0.007091/1.044, allocations: 4.385 MB / 0.6741 GB, free: 9.043 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.395e-05/1.044, allocations: 39.95 kB / 0.6742 GB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.198e-05/1.044, allocations: 79.98 kB / 0.6742 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001026/1.044, allocations: 112 kB / 0.6744 GB, free: 8.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/1.047, allocations: 0.8467 MB / 0.6752 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001159/1.047, allocations: 151.4 kB / 0.6753 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/1.049, allocations: 179.9 kB / 0.6755 GB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/1.05, allocations: 224 kB / 0.6757 GB, free: 7.426 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.002591/1.052, allocations: 1.564 MB / 0.6772 GB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003546/1.053, allocations: 209.3 kB / 0.6774 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/1.055, allocations: 1.363 MB / 0.6788 GB, free: 4.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001328/1.055, allocations: 27.97 kB / 0.6788 GB, free: 4.242 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.055, allocations: 0 / 0.6788 GB, free: 4.242 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/1.055, allocations: 3.984 kB / 0.6788 GB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008995/1.064, allocations: 4.741 MB / 0.6834 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/1.064, allocations: 12.75 kB / 0.6834 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008316/1.065, allocations: 179.7 kB / 0.6836 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.719e-05/1.065, allocations: 8 kB / 0.6836 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.516e-05/1.065, allocations: 31.98 kB / 0.6836 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.536e-05/1.065, allocations: 11.94 kB / 0.6837 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/1.065, allocations: 11.98 kB / 0.6837 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/1.069, allocations: 2.697 MB / 0.6863 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009113/1.07, allocations: 310.4 kB / 0.6866 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002187/1.07, allocations: 20 kB / 0.6866 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007695/1.071, allocations: 63.83 kB / 0.6867 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/1.071, allocations: 68.38 kB / 0.6867 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/1.071, allocations: 39.98 kB / 0.6868 GB, free: 11.65 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002772/1.074, allocations: 1.644 MB / 0.6884 GB, free: 9.988 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.91e-07/1.074, allocations: 0 / 0.6884 GB, free: 9.988 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003601/1.078, allocations: 0.6266 MB / 0.689 GB, free: 9.363 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.0004141/1.078, allocations: 178.9 kB / 0.6892 GB, free: 9.176 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004236/1.082, allocations: 2.571 MB / 0.6917 GB, free: 6.621 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.082, allocations: 0 / 0.6917 GB, free: 6.621 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/1.083, allocations: 0.6186 MB / 0.6923 GB, free: 6.004 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.085, allocations: 334.1 kB / 0.6926 GB, free: 5.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/1.097, allocations: 7.694 MB / 0.7001 GB, free: 13.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002794/1.099, allocations: 2.616 MB / 0.7027 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002958/1.102, allocations: 1.121 MB / 0.7038 GB, free: 10.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004148/1.103, allocations: 155.4 kB / 0.7039 GB, free: 9.953 MB / 442.7 MB Notification: Performance of SimCode: time 1.423e-06/1.103, allocations: 3.938 kB / 0.7039 GB, free: 9.949 MB / 442.7 MB Notification: Performance of Templates: time 0.2673/1.37, allocations: 21.07 MB / 0.7245 GB, free: 111.3 MB / 442.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)