Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_latest_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.001633/0.001633, allocations: 108.9 kB / 17.06 MB, free: 5.969 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.00181/0.00181, allocations: 200 kB / 18.01 MB, free: 5.051 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.396/1.396, 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-master/package.mo): time 0.1865/0.1865, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 59.91 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3137, allocations: 58.07 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007159/0.3208, allocations: 7.451 MB / 0.5109 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00418/0.3251, allocations: 2.98 MB / 0.5138 GB, free: 160 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004558/0.3255, allocations: 25.34 kB / 0.5138 GB, free: 152 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.3276, allocations: 0.7821 MB / 0.5146 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00192/0.3295, allocations: 0.6934 MB / 0.5153 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.3308, allocations: 374.4 kB / 0.5156 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00226/0.3331, allocations: 1.327 MB / 0.5169 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.3342, allocations: 0.7386 MB / 0.5177 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.3353, allocations: 0.5548 MB / 0.5182 GB, free: 14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.3367, allocations: 0.624 MB / 0.5188 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.3368, allocations: 78.81 kB / 0.5189 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.338, allocations: 479.2 kB / 0.5193 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005562/0.3386, allocations: 459.6 kB / 0.5198 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007241/0.3393, allocations: 0.5071 MB / 0.5203 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00231/0.3416, allocations: 1.433 MB / 0.5217 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3417, allocations: 1.188 kB / 0.5217 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3417, allocations: 0 / 0.5217 GB, free: 12.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.3417, allocations: 0 / 0.5217 GB, free: 12.66 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.002711/0.3444, allocations: 1.289 MB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.3445, allocations: 13.48 kB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.3447, allocations: 138 kB / 0.5231 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/0.346, allocations: 214.1 kB / 0.5233 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.3476, allocations: 0.7197 MB / 0.524 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.3477, allocations: 69.98 kB / 0.5241 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002428/0.348, allocations: 96.44 kB / 0.5241 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.3499, allocations: 1.115 MB / 0.5252 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.3499, allocations: 3.391 kB / 0.5252 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.754e-05/0.35, allocations: 31.78 kB / 0.5253 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/0.3502, allocations: 67.8 kB / 0.5253 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.3517, allocations: 0.8909 MB / 0.5262 GB, free: 10.34 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.005697/0.3575, allocations: 4.07 MB / 0.5302 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006347/0.3581, allocations: 424.5 kB / 0.5306 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.3585, allocations: 270.5 kB / 0.5308 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.3586, allocations: 9.734 kB / 0.5309 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.3586, allocations: 38.22 kB / 0.5309 GB, free: 7.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.3586, allocations: 0 / 0.5309 GB, free: 7.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004379/0.363, allocations: 2.006 MB / 0.5328 GB, free: 5.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.3631, allocations: 82.77 kB / 0.5329 GB, free: 5.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.3638, allocations: 0.5701 MB / 0.5335 GB, free: 5.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.3638, allocations: 31.98 kB / 0.5335 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000358/0.3642, allocations: 490.2 kB / 0.534 GB, free: 4.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.3644, allocations: 199 kB / 0.5342 GB, free: 4.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002244/0.3646, allocations: 148.6 kB / 0.5343 GB, free: 4.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.3648, allocations: 387.7 kB / 0.5347 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004339/0.3653, allocations: 269.7 kB / 0.5349 GB, free: 4.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006211/0.3659, allocations: 0.5052 MB / 0.5354 GB, free: 3.73 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.003221/0.3691, allocations: 1.401 MB / 0.5368 GB, free: 2.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.3691, allocations: 2.625 kB / 0.5368 GB, free: 2.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002012/0.3711, allocations: 1.093 MB / 0.5379 GB, free: 2.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3712, allocations: 12.94 kB / 0.5379 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001296/0.3725, allocations: 0.7574 MB / 0.5386 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005337/0.373, allocations: 164.5 kB / 0.5388 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00061/0.3736, allocations: 175.2 kB / 0.5389 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/0.3781, allocations: 4.851 MB / 0.5437 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/0.3788, allocations: 43.22 kB / 0.5437 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.3788, allocations: 30.12 kB / 0.5438 GB, free: 12.89 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.0005681/0.3794, allocations: 322.7 kB / 0.5441 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3796, allocations: 75.75 kB / 0.5441 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.3807, allocations: 0.6422 MB / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3807, allocations: 6.484 kB / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3807, allocations: 5.984 kB / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3807, allocations: 0 / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002579/0.3833, allocations: 1.514 MB / 0.5463 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3833, allocations: 10.88 kB / 0.5463 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006088/0.3839, allocations: 124.3 kB / 0.5464 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.384, allocations: 4.062 kB / 0.5464 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.384, allocations: 18.41 kB / 0.5464 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.384, allocations: 7.578 kB / 0.5464 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.384, allocations: 6.656 kB / 0.5464 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.3855, allocations: 0.9609 MB / 0.5474 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.3858, allocations: 180.7 kB / 0.5475 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-05/0.3859, allocations: 15.98 kB / 0.5475 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.3862, allocations: 23.98 kB / 0.5476 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.477e-05/0.3863, allocations: 40.33 kB / 0.5476 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.34e-05/0.3864, allocations: 12 kB / 0.5476 GB, free: 10.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005486/0.3869, allocations: 411 kB / 0.548 GB, free: 9.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3869, allocations: 0 / 0.548 GB, free: 9.859 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009243/0.3879, allocations: 235.9 kB / 0.5482 GB, free: 9.629 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.001931/0.3898, allocations: 1.542 MB / 0.5497 GB, free: 8.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.3915, allocations: 1.026 MB / 0.5507 GB, free: 6.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3916, allocations: 0 / 0.5507 GB, free: 6.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/0.392, allocations: 259.8 kB / 0.551 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000859/0.3928, allocations: 161 kB / 0.5511 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.404, allocations: 7.151 MB / 0.5581 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009615/0.405, allocations: 1.078 MB / 0.5592 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006096/0.4056, allocations: 209.7 kB / 0.5594 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.4061, allocations: 323.3 kB / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4061, allocations: 0 / 0.5597 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04782/0.454, allocations: 16 MB / 0.5753 GB, free: 13.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.38, allocations: 11.23 kB / 0.5753 GB, free: 13.59 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_PowerAngle.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)