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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 110.9 kB / 17.06 MB, free: 5.984 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.001172/0.001172, allocations: 196 kB / 18 MB, free: 5.074 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 59.91 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.341, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007247/0.3483, allocations: 7.451 MB / 0.5109 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004919/0.3532, allocations: 2.977 MB / 0.5138 GB, free: 216 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005517/0.3538, allocations: 25.84 kB / 0.5138 GB, free: 208 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.3559, allocations: 0.7898 MB / 0.5146 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.3581, allocations: 0.6922 MB / 0.5153 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.3593, allocations: 385 kB / 0.5156 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001956/0.3612, allocations: 1.326 MB / 0.5169 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.3624, allocations: 0.7455 MB / 0.5177 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.3635, allocations: 0.5621 MB / 0.5182 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/0.3646, allocations: 0.6279 MB / 0.5188 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.3648, allocations: 74.44 kB / 0.5189 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.3658, allocations: 472.1 kB / 0.5194 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005954/0.3664, allocations: 460 kB / 0.5198 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006698/0.3671, allocations: 0.51 MB / 0.5203 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002215/0.3693, allocations: 1.429 MB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3694, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3694, allocations: 4 kB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.3694, allocations: 1 kB / 0.5217 GB, free: 12.7 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.002843/0.3722, allocations: 1.283 MB / 0.5229 GB, free: 11.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.3723, allocations: 13.48 kB / 0.523 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00021/0.3725, allocations: 142.6 kB / 0.5231 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.3739, allocations: 210.3 kB / 0.5233 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.3756, allocations: 0.7232 MB / 0.524 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.582e-05/0.3757, allocations: 66.98 kB / 0.5241 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002583/0.3759, allocations: 102.6 kB / 0.5242 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.3778, allocations: 1.109 MB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.3779, allocations: 2.234 kB / 0.5252 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.378, allocations: 32.31 kB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001781/0.3782, allocations: 72.09 kB / 0.5253 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.3797, allocations: 0.8859 MB / 0.5262 GB, free: 10.38 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.005667/0.3854, allocations: 4.081 MB / 0.5302 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005906/0.386, allocations: 421.3 kB / 0.5306 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003613/0.3864, allocations: 277.3 kB / 0.5309 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3864, allocations: 6.125 kB / 0.5309 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.3864, allocations: 35.75 kB / 0.5309 GB, free: 7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.274e-06/0.3864, allocations: 0 / 0.5309 GB, free: 7 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004345/0.3908, allocations: 2.004 MB / 0.5329 GB, free: 5.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.3909, allocations: 82.77 kB / 0.5329 GB, free: 5.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006963/0.3916, allocations: 0.5655 MB / 0.5335 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.3916, allocations: 40.05 kB / 0.5335 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.392, allocations: 487 kB / 0.534 GB, free: 4.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.3921, allocations: 202.7 kB / 0.5342 GB, free: 4.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.3924, allocations: 144.7 kB / 0.5343 GB, free: 4.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3925, allocations: 383.7 kB / 0.5347 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.393, allocations: 277.5 kB / 0.535 GB, free: 4.133 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000586/0.3936, allocations: 0.5056 MB / 0.5354 GB, free: 3.688 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.003173/0.3967, allocations: 1.397 MB / 0.5368 GB, free: 2.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3968, allocations: 6.875 kB / 0.5368 GB, free: 2.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002072/0.3988, allocations: 1.089 MB / 0.5379 GB, free: 2.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3989, allocations: 11.7 kB / 0.5379 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001255/0.4001, allocations: 0.7585 MB / 0.5386 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005148/0.4007, allocations: 164.3 kB / 0.5388 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.4013, allocations: 174.6 kB / 0.539 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.4053, allocations: 4.852 MB / 0.5437 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006311/0.4059, allocations: 37.84 kB / 0.5437 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.406, allocations: 39.48 kB / 0.5438 GB, free: 12.85 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.0005279/0.4065, allocations: 318.7 kB / 0.5441 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.4066, allocations: 79.09 kB / 0.5441 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.4077, allocations: 0.6394 MB / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.4077, allocations: 5.812 kB / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.4077, allocations: 0 / 0.5448 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.4077, allocations: 5.328 kB / 0.5448 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002625/0.4104, allocations: 1.516 MB / 0.5463 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.4104, allocations: 1.469 kB / 0.5463 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006268/0.411, allocations: 128.1 kB / 0.5464 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.411, allocations: 3.781 kB / 0.5464 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.4111, allocations: 18.73 kB / 0.5464 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.4111, allocations: 7.75 kB / 0.5464 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.4111, allocations: 6.406 kB / 0.5464 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.4124, allocations: 0.9553 MB / 0.5474 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.4128, allocations: 184.7 kB / 0.5475 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.4129, allocations: 16 kB / 0.5475 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.4132, allocations: 23.97 kB / 0.5476 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.4133, allocations: 36.34 kB / 0.5476 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.4133, allocations: 19.98 kB / 0.5476 GB, free: 10.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004673/0.4138, allocations: 411 kB / 0.548 GB, free: 9.824 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4138, allocations: 0 / 0.548 GB, free: 9.824 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009893/0.4148, allocations: 231.9 kB / 0.5482 GB, free: 9.598 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.001784/0.4166, allocations: 1.547 MB / 0.5497 GB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.4182, allocations: 1.023 MB / 0.5507 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4182, allocations: 0 / 0.5507 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003736/0.4186, allocations: 270.3 kB / 0.551 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.4195, allocations: 148.2 kB / 0.5511 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.4298, allocations: 7.15 MB / 0.5581 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007589/0.4305, allocations: 1.082 MB / 0.5592 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005525/0.4311, allocations: 197.8 kB / 0.5594 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004981/0.4316, allocations: 335.3 kB / 0.5597 GB, free: 13.37 MB / 430.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4316, allocations: 0 / 0.5597 GB, free: 13.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04805/0.4797, allocations: 15.98 MB / 0.5753 GB, free: 13.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.18, allocations: 14.44 kB / 0.5753 GB, free: 13.52 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)