Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000935/0.000935, allocations: 174.7 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.154/1.154, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0008747/0.0008746, allocations: 102.8 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03798/0.03798, allocations: 8.838 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.912e-05/1.914e-05, allocations: 0 / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06626/0.06629, allocations: 52.39 MB / 457.9 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2833/0.3496, allocations: 95.7 MB / 0.5407 GB, free: 6.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001699/0.3498, allocations: 80.44 kB / 0.5407 GB, free: 6.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4452/0.795, allocations: 110.5 MB / 0.6487 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.7951, allocations: 0 / 0.6487 GB, free: 100.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001721/0.7953, allocations: 94.73 kB / 0.6488 GB, free: 100.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2108 * Number of variables: 2108 Notification: Performance of Generate backend data structure: time 0.01415/0.8094, allocations: 4.936 MB / 0.6536 GB, free: 99.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.8095, allocations: 9.266 kB / 0.6536 GB, free: 99.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01729/0.8268, allocations: 3.744 MB / 0.6573 GB, free: 99.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007123/0.8339, allocations: 2.915 MB / 0.6601 GB, free: 98.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003729/0.8343, allocations: 397.9 kB / 0.6605 GB, free: 98.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/0.8362, allocations: 0.5122 MB / 0.661 GB, free: 98.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02163/0.8579, allocations: 14.33 MB / 0.675 GB, free: 95.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.858, allocations: 60.12 kB / 0.6751 GB, free: 95.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007363/0.8588, allocations: 252.5 kB / 0.6753 GB, free: 95.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001627/0.8604, allocations: 1.626 MB / 0.6769 GB, free: 95.48 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01658/0.877, allocations: 12.85 MB / 0.6894 GB, free: 95.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0467/0.9237, allocations: 57.62 MB / 0.7457 GB, free: 53.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/0.9297, allocations: 4.077 MB / 0.7497 GB, free: 51.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.9313, allocations: 1.4 MB / 0.7511 GB, free: 50.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007347/0.9386, allocations: 6.41 MB / 0.7573 GB, free: 46.15 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.9387, allocations: 51.81 kB / 0.7574 GB, free: 46.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 4.429e-06/0.9387, allocations: 4 kB / 0.7574 GB, free: 46.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.01285/0.9516, allocations: 8.378 MB / 0.7655 GB, free: 38.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.9516, allocations: 149.8 kB / 0.7657 GB, free: 38.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004938/0.9566, allocations: 4.476 MB / 0.7701 GB, free: 34.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.9567, allocations: 57.7 kB / 0.7701 GB, free: 34.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.9582, allocations: 4.03 MB / 0.7741 GB, free: 30.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000499/0.9588, allocations: 0.8907 MB / 0.7749 GB, free: 29.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/0.959, allocations: 159.4 kB / 0.7751 GB, free: 29.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002857/0.9593, allocations: 0.6404 MB / 0.7757 GB, free: 29.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002683/0.962, allocations: 2.36 MB / 0.778 GB, free: 26.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004015/0.966, allocations: 7.224 MB / 0.7851 GB, free: 17.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004174/0.9702, allocations: 4.256 MB / 0.7892 GB, free: 13.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.694e-05/0.9703, allocations: 48 kB / 0.7893 GB, free: 13.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=1031) (initialization): time 0.01193/0.9822, allocations: 9.419 MB / 0.7985 GB, free: 5.488 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/0.9823, allocations: 79.8 kB / 0.7985 GB, free: 5.414 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/0.9825, allocations: 176 kB / 0.7987 GB, free: 5.242 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006142/0.9831, allocations: 381.4 kB / 0.7991 GB, free: 4.895 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004671/0.9878, allocations: 1.796 MB / 0.8008 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.9901, allocations: 2.814 MB / 0.8036 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004728/0.9949, allocations: 412.3 kB / 0.804 GB, free: 244 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002026/0.9969, allocations: 0.5908 MB / 0.8045 GB, free: 0 / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 29 (worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],cutForce.world.gravityArrowColor[3],cutForce.world.gravityArrowColor[2],cutForce.world.gravityArrowColor[1],cutForce.world.axisColor_x[3],cutForce.world.axisColor_x[2],cutForce.world.axisColor_x[1],cutForce.world.groundColor[3],cutForce.world.groundColor[2],cutForce.world.groundColor[1],cutForce.world.gravitySphereColor[3],cutForce.world.gravitySphereColor[2],cutForce.world.gravitySphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (969): * Single equations (assignments): 961 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001071/0.998, allocations: 0.6957 MB / 0.8052 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006559/0.9986, allocations: 410.7 kB / 0.8056 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/1.003, allocations: 2.45 MB / 0.808 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001259/1.003, allocations: 43.34 kB / 0.808 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/1.003, allocations: 7.375 kB / 0.8081 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/1.003, allocations: 9.562 kB / 0.8081 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/1.017, allocations: 8.422 MB / 0.8163 GB, free: 5.656 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.685e-05/1.017, allocations: 4.562 kB / 0.8163 GB, free: 5.652 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/1.019, allocations: 343.5 kB / 0.8166 GB, free: 5.316 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003665/1.019, allocations: 137.9 kB / 0.8167 GB, free: 5.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/1.019, allocations: 43.98 kB / 0.8168 GB, free: 5.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/1.021, allocations: 2.271 MB / 0.819 GB, free: 2.738 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.021, allocations: 8 kB / 0.819 GB, free: 2.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2184/1.24, allocations: 5.653 MB / 0.8245 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/1.241, allocations: 0.4891 MB / 0.825 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004366/1.241, allocations: 36.58 kB / 0.825 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/1.243, allocations: 110.7 kB / 0.8252 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/1.243, allocations: 128.9 kB / 0.8253 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/1.243, allocations: 67.56 kB / 0.8253 GB, free: 102.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004786/1.248, allocations: 3.119 MB / 0.8284 GB, free: 102 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.248, allocations: 0 / 0.8284 GB, free: 102 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005635/1.254, allocations: 1.177 MB / 0.8295 GB, free: 102 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (171): * Single equations (assignments): 163 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003973/1.254, allocations: 187.7 kB / 0.8297 GB, free: 101.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008117/1.262, allocations: 5.621 MB / 0.8352 GB, free: 101.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.262, allocations: 0 / 0.8352 GB, free: 101.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/1.264, allocations: 1.488 MB / 0.8367 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/1.267, allocations: 0.5132 MB / 0.8372 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01731/1.284, allocations: 9.454 MB / 0.8464 GB, free: 99.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003747/1.288, allocations: 4.24 MB / 0.8505 GB, free: 98.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005384/1.293, allocations: 2.474 MB / 0.8529 GB, free: 98.85 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/1.294, allocations: 313.8 kB / 0.8532 GB, free: 98.84 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/1.294, allocations: 0 / 0.8532 GB, free: 98.84 MB / 474.7 MB Notification: Performance of Templates: time 0.05914/1.353, allocations: 37.94 MB / 0.8903 GB, free: 97.04 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)