Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json 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/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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.001341, allocations: 108.8 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 68.08 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3757, allocations: 58.06 MB / 0.5041 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008641/0.3843, allocations: 7.442 MB / 0.5114 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004992/0.3894, allocations: 2.984 MB / 0.5143 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005974/0.39, allocations: 24.81 kB / 0.5143 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.3928, allocations: 0.7866 MB / 0.5151 GB, free: 12 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003392/0.3962, allocations: 0.6819 MB / 0.5157 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.3985, allocations: 378.3 kB / 0.5161 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.4022, allocations: 1.328 MB / 0.5174 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.4039, allocations: 0.7508 MB / 0.5181 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.4058, allocations: 0.5484 MB / 0.5187 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.4074, allocations: 0.6271 MB / 0.5193 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.4077, allocations: 74.12 kB / 0.5194 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001553/0.4092, allocations: 479.7 kB / 0.5198 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006972/0.41, allocations: 462.1 kB / 0.5203 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008409/0.4108, allocations: 0.4969 MB / 0.5207 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002895/0.4137, allocations: 1.433 MB / 0.5221 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4137, allocations: 0 / 0.5221 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4138, allocations: 1.469 kB / 0.5221 GB, free: 13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.711e-05/0.4138, allocations: 4 kB / 0.5221 GB, free: 13 MB / 398.1 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.003493/0.4173, allocations: 1.286 MB / 0.5234 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.4174, allocations: 12.77 kB / 0.5234 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001943/0.4193, allocations: 214.9 kB / 0.5236 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.4215, allocations: 0.7279 MB / 0.5243 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/0.4216, allocations: 61.7 kB / 0.5244 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003489/0.422, allocations: 92.84 kB / 0.5245 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002787/0.4248, allocations: 1.118 MB / 0.5256 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.4249, allocations: 2.453 kB / 0.5256 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.425, allocations: 36.53 kB / 0.5256 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002477/0.4252, allocations: 68.59 kB / 0.5257 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/0.4277, allocations: 0.8912 MB / 0.5265 GB, free: 10.76 MB / 398.1 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.008627/0.4363, allocations: 4.064 MB / 0.5305 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009419/0.4373, allocations: 419.7 kB / 0.5309 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003889/0.4377, allocations: 269.4 kB / 0.5312 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.4378, allocations: 13.39 kB / 0.5312 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.4378, allocations: 36.12 kB / 0.5312 GB, free: 7.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.524e-06/0.4378, allocations: 1.469 kB / 0.5312 GB, free: 7.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004986/0.4428, allocations: 2.014 MB / 0.5332 GB, free: 6.137 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.4429, allocations: 83.3 kB / 0.5333 GB, free: 6.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000846/0.4437, allocations: 0.5699 MB / 0.5338 GB, free: 5.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.993e-05/0.4438, allocations: 32.02 kB / 0.5338 GB, free: 5.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003747/0.4442, allocations: 486.2 kB / 0.5343 GB, free: 5.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.4444, allocations: 203.8 kB / 0.5345 GB, free: 5.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.4446, allocations: 151.9 kB / 0.5346 GB, free: 4.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.4449, allocations: 380.3 kB / 0.535 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.4453, allocations: 273.3 kB / 0.5353 GB, free: 4.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.446, allocations: 0.5059 MB / 0.5358 GB, free: 4.027 MB / 398.1 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.003112/0.4491, allocations: 1.397 MB / 0.5371 GB, free: 3.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/0.4491, allocations: 6.281 kB / 0.5371 GB, free: 3.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002041/0.4512, allocations: 1.101 MB / 0.5382 GB, free: 2.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.4512, allocations: 8.406 kB / 0.5382 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00129/0.4525, allocations: 0.7545 MB / 0.539 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005593/0.4531, allocations: 164.7 kB / 0.5391 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.4537, allocations: 174.2 kB / 0.5393 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004467/0.4582, allocations: 4.855 MB / 0.544 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/0.4589, allocations: 39.44 kB / 0.5441 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.459, allocations: 29.66 kB / 0.5441 GB, free: 13.19 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. 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 (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000564/0.4595, allocations: 319.9 kB / 0.5444 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.4597, allocations: 74.53 kB / 0.5445 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.4608, allocations: 0.6429 MB / 0.5451 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.4608, allocations: 5.656 kB / 0.5451 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.4608, allocations: 1.031 kB / 0.5451 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4609, allocations: 5.359 kB / 0.5451 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.4635, allocations: 1.511 MB / 0.5466 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4635, allocations: 1.406 kB / 0.5466 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/0.4641, allocations: 128.3 kB / 0.5467 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.239e-05/0.4642, allocations: 12.94 kB / 0.5467 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.173e-05/0.4642, allocations: 17.84 kB / 0.5467 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.4642, allocations: 3.688 kB / 0.5467 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4642, allocations: 2.562 kB / 0.5467 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.4655, allocations: 0.9693 MB / 0.5477 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.4658, allocations: 184.7 kB / 0.5479 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.466, allocations: 16 kB / 0.5479 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4663, allocations: 19.98 kB / 0.5479 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.4664, allocations: 40.27 kB / 0.5479 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.4664, allocations: 20 kB / 0.548 GB, free: 10.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004956/0.4669, allocations: 407 kB / 0.5483 GB, free: 9.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4669, allocations: 0 / 0.5483 GB, free: 9.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000955/0.4679, allocations: 235.9 kB / 0.5486 GB, free: 9.711 MB / 414.1 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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003025/0.4682, allocations: 143 kB / 0.5487 GB, free: 9.562 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.47, allocations: 1.02 MB / 0.5497 GB, free: 8.508 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.47, allocations: 4 kB / 0.5497 GB, free: 8.504 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.4704, allocations: 270.2 kB / 0.55 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008154/0.4712, allocations: 137.9 kB / 0.5501 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.4745, allocations: 1.977 MB / 0.552 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007299/0.4752, allocations: 1.075 MB / 0.5531 GB, free: 4.984 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005083/0.4757, allocations: 205.8 kB / 0.5533 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.4759, allocations: 59.42 kB / 0.5533 GB, free: 4.723 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4759, allocations: 0 / 0.5533 GB, free: 4.723 MB / 414.1 MB Notification: Performance of Templates: time 0.01626/0.4922, allocations: 8.833 MB / 0.5619 GB, free: 11.93 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)