Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006977/0.006977, 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.415/1.415, allocations: 223.2 MB / 239 MB, free: 1.773 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 99.44 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04104/0.04104, allocations: 8.942 MB / 350.3 MB, free: 2.059 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004023, allocations: 8.031 kB / 413.1 MB, free: 88.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1179, allocations: 52.4 MB / 465.5 MB, free: 41.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3864/0.5044, allocations: 85.97 MB / 0.5386 GB, free: 16.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.5047, allocations: 79.45 kB / 0.5386 GB, free: 16.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1229/0.6276, allocations: 54.49 MB / 0.5919 GB, free: 17.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6276, allocations: 0 / 0.5919 GB, free: 17.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.907e-05/0.6277, allocations: 50.5 kB / 0.5919 GB, free: 17.11 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.01076/0.6385, allocations: 2.67 MB / 0.5945 GB, free: 15.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.6385, allocations: 11.72 kB / 0.5945 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009361/0.6479, allocations: 1.885 MB / 0.5964 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/0.6532, allocations: 1.532 MB / 0.5979 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.6534, allocations: 190.1 kB / 0.598 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001745/0.6551, allocations: 246.4 kB / 0.5983 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01545/0.6706, allocations: 6.803 MB / 0.6049 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001926/0.6708, allocations: 15.88 kB / 0.6049 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001483/0.6723, allocations: 115.2 kB / 0.605 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001451/0.6738, allocations: 0.7943 MB / 0.6058 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.6895, allocations: 6.495 MB / 0.6122 GB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04182/0.7314, allocations: 21.17 MB / 0.6328 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004666/0.7361, allocations: 2.015 MB / 0.6348 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006606/0.7427, allocations: 3.284 MB / 0.638 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.7428, allocations: 43.22 kB / 0.6381 GB, free: 10.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.497e-06/0.7428, allocations: 0 / 0.6381 GB, free: 10.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.01325/0.7561, allocations: 5.821 MB / 0.6437 GB, free: 4.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.7562, allocations: 60.41 kB / 0.6438 GB, free: 4.016 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005113/0.7613, allocations: 2.045 MB / 0.6458 GB, free: 1.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.7615, allocations: 41.61 kB / 0.6458 GB, free: 1.887 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.7633, allocations: 1.831 MB / 0.6476 GB, free: 48 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005977/0.7639, allocations: 457.3 kB / 0.6481 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003242/0.7643, allocations: 67.94 kB / 0.6481 GB, free: 15.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004034/0.7647, allocations: 449.1 kB / 0.6485 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/0.767, allocations: 1.076 MB / 0.6496 GB, free: 14.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003573/0.7706, allocations: 2.935 MB / 0.6525 GB, free: 10.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00303/0.7736, allocations: 1.802 MB / 0.6542 GB, free: 8.359 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.462e-05/0.7737, allocations: 20 kB / 0.6542 GB, free: 8.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007804/0.7815, allocations: 4.087 MB / 0.6582 GB, free: 4.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.233e-05/0.7816, allocations: 36.25 kB / 0.6583 GB, free: 4.215 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/0.7817, allocations: 71.94 kB / 0.6583 GB, free: 4.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005891/0.7823, allocations: 212.7 kB / 0.6585 GB, free: 3.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.7846, allocations: 0.7213 MB / 0.6592 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.7877, allocations: 2.504 MB / 0.6617 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.7901, allocations: 168 kB / 0.6619 GB, free: 416 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004176/0.7906, allocations: 196.5 kB / 0.662 GB, free: 220 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 390 * Array equations: 4 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003029/0.7936, allocations: 1.429 MB / 0.6634 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004563/0.7941, allocations: 185.6 kB / 0.6636 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/0.7973, allocations: 1.588 MB / 0.6652 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001137/0.7974, allocations: 23.98 kB / 0.6652 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.7974, allocations: 4 kB / 0.6652 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.7975, allocations: 7.922 kB / 0.6652 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.8085, allocations: 4.863 MB / 0.6699 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.8085, allocations: 4.031 kB / 0.6699 GB, free: 7.996 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.8093, allocations: 159.8 kB / 0.6701 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003681/0.8097, allocations: 120.7 kB / 0.6702 GB, free: 7.719 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.569e-05/0.8098, allocations: 20 kB / 0.6702 GB, free: 7.699 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.8121, allocations: 2.03 MB / 0.6722 GB, free: 5.539 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.8121, allocations: 7.938 kB / 0.6722 GB, free: 5.531 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004422/0.8166, allocations: 2.706 MB / 0.6749 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009341/0.8175, allocations: 274.7 kB / 0.6751 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/0.818, allocations: 24.05 kB / 0.6752 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.8191, allocations: 59.69 kB / 0.6752 GB, free: 2.301 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.8193, allocations: 60.88 kB / 0.6753 GB, free: 2.242 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.191e-05/0.8194, allocations: 35.98 kB / 0.6753 GB, free: 2.207 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003367/0.8227, allocations: 1.453 MB / 0.6767 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8228, allocations: 4 kB / 0.6767 GB, free: 0.7266 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003473/0.8262, allocations: 0.5742 MB / 0.6773 GB, free: 156 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (87): * Single equations (assignments): 82 * Array equations: 4 * 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%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004264/0.8267, allocations: 162.7 kB / 0.6774 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004772/0.8315, allocations: 2.599 MB / 0.68 GB, free: 13.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.8315, allocations: 0.5 kB / 0.68 GB, free: 13.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.8327, allocations: 0.8086 MB / 0.6808 GB, free: 12.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.8345, allocations: 310.3 kB / 0.6811 GB, free: 12.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.8483, allocations: 6.624 MB / 0.6875 GB, free: 5.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004026/0.8523, allocations: 2.409 MB / 0.6899 GB, free: 3.129 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00309/0.8554, allocations: 1.044 MB / 0.6909 GB, free: 2.082 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005325/0.856, allocations: 147.4 kB / 0.691 GB, free: 1.938 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/0.856, allocations: 0 / 0.691 GB, free: 1.938 MB / 458.7 MB Notification: Performance of Templates: time 0.2581/1.114, allocations: 20.13 MB / 0.7107 GB, free: 121.7 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)