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.001039/0.00104, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.0009889/0.000989, allocations: 191 kB / 18 MB, free: 4.977 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2401/0.2401, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 55.91 kB / 458.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3517, allocations: 58.05 MB / 0.5041 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007668/0.3594, allocations: 7.459 MB / 0.5114 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004471/0.364, allocations: 2.981 MB / 0.5143 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005393/0.3645, allocations: 28.81 kB / 0.5143 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.3666, allocations: 0.7717 MB / 0.5151 GB, free: 32 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001992/0.3686, allocations: 0.6962 MB / 0.5158 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.3698, allocations: 372.1 kB / 0.5161 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003231/0.373, allocations: 1.333 MB / 0.5174 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0015/0.3746, allocations: 0.7523 MB / 0.5181 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.3761, allocations: 0.5618 MB / 0.5187 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.3772, allocations: 0.6283 MB / 0.5193 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.3774, allocations: 74 kB / 0.5194 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.3785, allocations: 480.8 kB / 0.5198 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005402/0.3791, allocations: 456.7 kB / 0.5203 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005334/0.3796, allocations: 0.5035 MB / 0.5208 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001904/0.3815, allocations: 1.42 MB / 0.5221 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3815, allocations: 0.75 kB / 0.5221 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3815, allocations: 5.062 kB / 0.5222 GB, free: 13.01 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.3816, allocations: 0 / 0.5222 GB, free: 13.01 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.002292/0.3839, allocations: 1.264 MB / 0.5234 GB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3839, allocations: 13.48 kB / 0.5234 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001273/0.3852, allocations: 202 kB / 0.5236 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.3867, allocations: 0.7266 MB / 0.5243 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.276e-05/0.3868, allocations: 58.34 kB / 0.5244 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/0.3871, allocations: 96.08 kB / 0.5244 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.3891, allocations: 1.116 MB / 0.5255 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.3891, allocations: 11.67 kB / 0.5255 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.729e-05/0.3892, allocations: 38.52 kB / 0.5256 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001834/0.3894, allocations: 68.52 kB / 0.5257 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.391, allocations: 0.8949 MB / 0.5265 GB, free: 10.8 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.006001/0.397, allocations: 4.05 MB / 0.5305 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006831/0.3977, allocations: 422.9 kB / 0.5309 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/0.3981, allocations: 269.6 kB / 0.5311 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.3982, allocations: 9.156 kB / 0.5311 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.3982, allocations: 36.66 kB / 0.5312 GB, free: 7.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.316e-06/0.3983, allocations: 0.9688 kB / 0.5312 GB, free: 7.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004473/0.4027, allocations: 1.989 MB / 0.5331 GB, free: 6.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.4028, allocations: 82.58 kB / 0.5332 GB, free: 6.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007126/0.4035, allocations: 0.5621 MB / 0.5338 GB, free: 5.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.4036, allocations: 40.3 kB / 0.5338 GB, free: 5.719 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/0.4039, allocations: 476.8 kB / 0.5342 GB, free: 5.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.4041, allocations: 186.3 kB / 0.5344 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.4043, allocations: 147.6 kB / 0.5346 GB, free: 5.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.4045, allocations: 384.8 kB / 0.5349 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.405, allocations: 268.5 kB / 0.5352 GB, free: 4.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.4055, allocations: 0.5065 MB / 0.5357 GB, free: 4.105 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.003262/0.4088, allocations: 1.398 MB / 0.537 GB, free: 3.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4088, allocations: 6.344 kB / 0.5371 GB, free: 3.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002117/0.4109, allocations: 1.105 MB / 0.5381 GB, free: 2.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.411, allocations: 7.375 kB / 0.5381 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001239/0.4122, allocations: 0.7543 MB / 0.5389 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005534/0.4128, allocations: 164.3 kB / 0.539 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.4134, allocations: 175.3 kB / 0.5392 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00413/0.4176, allocations: 4.852 MB / 0.5439 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006601/0.4182, allocations: 37.84 kB / 0.544 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-05/0.4183, allocations: 31.5 kB / 0.544 GB, free: 13.27 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.0006045/0.4189, allocations: 318.8 kB / 0.5443 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.4191, allocations: 70.72 kB / 0.5444 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.4202, allocations: 0.6429 MB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4202, allocations: 5.625 kB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.4202, allocations: 1.375 kB / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4202, allocations: 0 / 0.545 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.4228, allocations: 1.516 MB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4228, allocations: 0.6562 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006078/0.4234, allocations: 128.6 kB / 0.5466 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.4235, allocations: 8.688 kB / 0.5466 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.4235, allocations: 14.23 kB / 0.5466 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.4235, allocations: 3.938 kB / 0.5466 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4235, allocations: 1.562 kB / 0.5466 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.4248, allocations: 0.9594 MB / 0.5476 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.4251, allocations: 188.2 kB / 0.5478 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.831e-05/0.4252, allocations: 16 kB / 0.5478 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.4255, allocations: 20.11 kB / 0.5478 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/0.4256, allocations: 40.27 kB / 0.5478 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.4256, allocations: 24 kB / 0.5479 GB, free: 10.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004903/0.4261, allocations: 411 kB / 0.5482 GB, free: 10.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4261, allocations: 0 / 0.5482 GB, free: 10.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001054/0.4272, allocations: 236 kB / 0.5485 GB, free: 9.785 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.0003547/0.4276, allocations: 134.8 kB / 0.5486 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.4292, allocations: 1.028 MB / 0.5496 GB, free: 8.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4293, allocations: 0 / 0.5496 GB, free: 8.586 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.4296, allocations: 270.2 kB / 0.5499 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008193/0.4305, allocations: 151.3 kB / 0.55 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.4342, allocations: 1.937 MB / 0.5519 GB, free: 6.191 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008665/0.4351, allocations: 1.075 MB / 0.5529 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005544/0.4357, allocations: 197.8 kB / 0.5531 GB, free: 4.895 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.4359, allocations: 63.41 kB / 0.5532 GB, free: 4.832 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4359, allocations: 0 / 0.5532 GB, free: 4.832 MB / 414.1 MB Notification: Performance of Templates: time 0.01656/0.4525, allocations: 8.84 MB / 0.5618 GB, free: 12.04 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)