Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 173.1 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007697/0.0007697, allocations: 92.8 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1746/0.1746, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.0003517, allocations: 16 kB / 423.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2837, allocations: 56.32 MB / 480.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.4289, allocations: 112.3 MB / 0.5786 GB, free: 6.055 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.4293, allocations: 95.95 kB / 0.5787 GB, free: 5.961 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07886/0.5082, allocations: 29.48 MB / 0.6075 GB, free: 8.109 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.5082, allocations: 0 / 0.6075 GB, free: 8.109 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.637e-05/0.5083, allocations: 23.88 kB / 0.6075 GB, free: 8.086 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.002055/0.5103, allocations: 1.119 MB / 0.6086 GB, free: 6.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.5104, allocations: 8.031 kB / 0.6086 GB, free: 6.902 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.5114, allocations: 191.6 kB / 0.6088 GB, free: 6.715 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.5133, allocations: 0.8899 MB / 0.6097 GB, free: 5.785 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.5134, allocations: 65.92 kB / 0.6098 GB, free: 5.719 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/0.5136, allocations: 87.92 kB / 0.6098 GB, free: 5.633 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001644/0.5153, allocations: 1.097 MB / 0.6109 GB, free: 4.488 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.5153, allocations: 7.938 kB / 0.6109 GB, free: 4.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.017e-05/0.5154, allocations: 32 kB / 0.6109 GB, free: 4.449 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000107/0.5155, allocations: 65.95 kB / 0.611 GB, free: 4.383 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.5172, allocations: 0.8782 MB / 0.6119 GB, free: 3.508 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.005167/0.5224, allocations: 4.096 MB / 0.6159 GB, free: 15.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.5229, allocations: 416.7 kB / 0.6163 GB, free: 14.76 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003603/0.5233, allocations: 269.6 kB / 0.6165 GB, free: 14.49 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.5234, allocations: 4 kB / 0.6165 GB, free: 14.49 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.5234, allocations: 34.56 kB / 0.6166 GB, free: 14.45 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 3.977e-06/0.5234, allocations: 0 / 0.6166 GB, free: 14.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=52): time 0.004087/0.5275, allocations: 1.993 MB / 0.6185 GB, free: 12.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.5276, allocations: 81.55 kB / 0.6186 GB, free: 12.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006241/0.5282, allocations: 0.5655 MB / 0.6191 GB, free: 11.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.5282, allocations: 29.7 kB / 0.6192 GB, free: 11.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.5285, allocations: 474.4 kB / 0.6196 GB, free: 11.22 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.5287, allocations: 189.3 kB / 0.6198 GB, free: 11.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.5287, allocations: 16 kB / 0.6198 GB, free: 11.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.5289, allocations: 378.8 kB / 0.6202 GB, free: 10.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.5293, allocations: 261.8 kB / 0.6204 GB, free: 10.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/0.5298, allocations: 0.5042 MB / 0.6209 GB, free: 9.773 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.003457/0.5333, allocations: 1.732 MB / 0.6226 GB, free: 7.922 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5333, allocations: 3.938 kB / 0.6226 GB, free: 7.918 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002222/0.5355, allocations: 1.162 MB / 0.6237 GB, free: 6.715 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.5355, allocations: 8 kB / 0.6238 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001653/0.5372, allocations: 0.828 MB / 0.6246 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006348/0.5378, allocations: 215.2 kB / 0.6248 GB, free: 5.625 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.5384, allocations: 167.7 kB / 0.6249 GB, free: 5.461 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005564/0.544, allocations: 6.268 MB / 0.631 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.5446, allocations: 51.94 kB / 0.6311 GB, free: 14.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.5447, allocations: 28 kB / 0.6311 GB, free: 14.57 MB / 474.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 () * Number of clocked 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.0005415/0.5452, allocations: 321.3 kB / 0.6314 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.5453, allocations: 67.19 kB / 0.6315 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.5463, allocations: 0.6395 MB / 0.6321 GB, free: 13.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.5463, allocations: 4 kB / 0.6321 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.5464, allocations: 4 kB / 0.6321 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5464, allocations: 3.984 kB / 0.6321 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.5487, allocations: 1.518 MB / 0.6336 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.5487, allocations: 3.984 kB / 0.6336 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005983/0.5493, allocations: 123.8 kB / 0.6337 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.5493, allocations: 4 kB / 0.6337 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.285e-05/0.5494, allocations: 15.98 kB / 0.6338 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.5494, allocations: 8.188 kB / 0.6338 GB, free: 11.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5494, allocations: 7.938 kB / 0.6338 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.5506, allocations: 0.9434 MB / 0.6347 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.5509, allocations: 184.3 kB / 0.6349 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.527e-05/0.551, allocations: 12 kB / 0.6349 GB, free: 10.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/0.5513, allocations: 23.89 kB / 0.6349 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.5514, allocations: 40.27 kB / 0.6349 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.5515, allocations: 16 kB / 0.635 GB, free: 10.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004886/0.5519, allocations: 407 kB / 0.6353 GB, free: 10.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.552, allocations: 4 kB / 0.6353 GB, free: 10.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000802/0.5528, allocations: 227.9 kB / 0.6356 GB, free: 9.871 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: 2 (system.initime,$cse3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.000215/0.553, allocations: 143.2 kB / 0.6357 GB, free: 9.719 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.5547, allocations: 1.143 MB / 0.6368 GB, free: 8.527 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5547, allocations: 0 / 0.6368 GB, free: 8.527 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.5551, allocations: 274.6 kB / 0.6371 GB, free: 8.258 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000973/0.5561, allocations: 134.9 kB / 0.6372 GB, free: 8.129 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.5594, allocations: 2.466 MB / 0.6396 GB, free: 5.613 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000661/0.56, allocations: 1.078 MB / 0.6407 GB, free: 4.508 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.5602, allocations: 59.42 kB / 0.6407 GB, free: 4.449 MB / 474.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5603, allocations: 4 kB / 0.6407 GB, free: 4.445 MB / 474.7 MB Notification: Performance of Templates: time 0.2271/0.7874, allocations: 16.6 MB / 0.6569 GB, free: 131.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)