Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001529/0.001529, allocations: 184.6 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.924/1.924, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001088, allocations: 91.16 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2931/0.2931, allocations: 37.98 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.133e-05, allocations: 0 / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 56.33 MB / 473.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5483/0.6523, allocations: 112.1 MB / 0.5715 GB, free: 7.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003951/0.6528, allocations: 91.94 kB / 0.5716 GB, free: 7.492 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.153/0.8058, allocations: 29.69 MB / 0.6006 GB, free: 9.441 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.8059, allocations: 0 / 0.6006 GB, free: 9.441 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.744e-05/0.806, allocations: 24 kB / 0.6006 GB, free: 9.418 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003632/0.8096, allocations: 1.029 MB / 0.6016 GB, free: 8.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.8097, allocations: 15.97 kB / 0.6017 GB, free: 8.324 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.8117, allocations: 190.7 kB / 0.6018 GB, free: 8.137 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005204/0.817, allocations: 1.177 MB / 0.603 GB, free: 6.918 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.513e-05/0.8171, allocations: 61.98 kB / 0.603 GB, free: 6.859 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003461/0.8175, allocations: 91.98 kB / 0.6031 GB, free: 6.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00314/0.8206, allocations: 1.077 MB / 0.6042 GB, free: 5.641 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.727e-05/0.8207, allocations: 4 kB / 0.6042 GB, free: 5.637 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.8209, allocations: 32 kB / 0.6042 GB, free: 5.605 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001959/0.8211, allocations: 69.95 kB / 0.6043 GB, free: 5.539 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.8239, allocations: 0.8549 MB / 0.6051 GB, free: 4.68 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/0.8343, allocations: 4.092 MB / 0.6091 GB, free: 392 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.8354, allocations: 414.2 kB / 0.6095 GB, free: 15.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006861/0.8362, allocations: 265.7 kB / 0.6098 GB, free: 15.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-05/0.8363, allocations: 12 kB / 0.6098 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.8363, allocations: 38.5 kB / 0.6098 GB, free: 15.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 3.296e-06/0.8363, allocations: 0 / 0.6098 GB, free: 15.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.007053/0.8434, allocations: 1.793 MB / 0.6116 GB, free: 13.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.8435, allocations: 85.5 kB / 0.6116 GB, free: 13.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.8446, allocations: 0.493 MB / 0.6121 GB, free: 13.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.8448, allocations: 37.7 kB / 0.6122 GB, free: 13.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004397/0.8452, allocations: 492.8 kB / 0.6126 GB, free: 12.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.8456, allocations: 193.3 kB / 0.6128 GB, free: 12.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.8456, allocations: 19.94 kB / 0.6128 GB, free: 12.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.8458, allocations: 342.8 kB / 0.6132 GB, free: 12.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007905/0.8466, allocations: 261.5 kB / 0.6134 GB, free: 11.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009389/0.8476, allocations: 498.2 kB / 0.6139 GB, free: 11.24 MB / 458.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/0.8518, allocations: 0.6983 MB / 0.6146 GB, free: 10.54 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.8518, allocations: 4 kB / 0.6146 GB, free: 10.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00412/0.8559, allocations: 1.12 MB / 0.6157 GB, free: 9.383 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.856, allocations: 8 kB / 0.6157 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003133/0.8591, allocations: 0.8194 MB / 0.6165 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.8603, allocations: 215.4 kB / 0.6167 GB, free: 8.301 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.8616, allocations: 163.7 kB / 0.6168 GB, free: 8.141 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009551/0.8712, allocations: 6.257 MB / 0.6229 GB, free: 1.336 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009829/0.8722, allocations: 43.88 kB / 0.623 GB, free: 1.293 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.681e-05/0.8723, allocations: 31.98 kB / 0.623 GB, free: 1.262 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003139/0.8727, allocations: 168.6 kB / 0.6232 GB, free: 1.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.8729, allocations: 63.25 kB / 0.6232 GB, free: 1.027 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.8747, allocations: 0.6235 MB / 0.6238 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.8747, allocations: 4 kB / 0.6238 GB, free: 400 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.8747, allocations: 4 kB / 0.6239 GB, free: 396 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.8747, allocations: 0 / 0.6239 GB, free: 396 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/0.8793, allocations: 1.506 MB / 0.6253 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.8794, allocations: 4.031 kB / 0.6253 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.8806, allocations: 119.9 kB / 0.6254 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.8807, allocations: 4 kB / 0.6254 GB, free: 14.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.01e-05/0.8808, allocations: 12 kB / 0.6255 GB, free: 14.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.249e-05/0.8808, allocations: 7.938 kB / 0.6255 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.8808, allocations: 4 kB / 0.6255 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.8831, allocations: 1.014 MB / 0.6265 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005443/0.8837, allocations: 184.2 kB / 0.6266 GB, free: 13.37 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.8839, allocations: 15.98 kB / 0.6267 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006185/0.8845, allocations: 19.94 kB / 0.6267 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.8846, allocations: 36.39 kB / 0.6267 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.134e-05/0.8847, allocations: 16 kB / 0.6267 GB, free: 13.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000791/0.8855, allocations: 399.2 kB / 0.6271 GB, free: 12.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8855, allocations: 0 / 0.6271 GB, free: 12.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001385/0.8869, allocations: 235.9 kB / 0.6273 GB, free: 12.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003587/0.8873, allocations: 151 kB / 0.6275 GB, free: 12.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003075/0.8904, allocations: 1.126 MB / 0.6286 GB, free: 11.33 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.8905, allocations: 256 / 0.6286 GB, free: 11.33 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007287/0.8912, allocations: 262.4 kB / 0.6288 GB, free: 11.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.8924, allocations: 127.5 kB / 0.6289 GB, free: 10.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004873/0.8973, allocations: 1.649 MB / 0.6306 GB, free: 9.238 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/0.8987, allocations: 1.091 MB / 0.6316 GB, free: 8.117 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/0.8991, allocations: 67.42 kB / 0.6317 GB, free: 8.051 MB / 474.7 MB Notification: Performance of SimCode: time 1.193e-06/0.8991, allocations: 0 / 0.6317 GB, free: 8.051 MB / 474.7 MB Notification: Performance of Templates: time 0.341/1.24, allocations: 16 MB / 0.6473 GB, free: 128.9 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)