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.001304/0.001304, allocations: 108.8 kB / 17.06 MB, free: 5.781 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.001295/0.001295, allocations: 193.4 kB / 18 MB, free: 4.945 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.414/1.414, 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.1859/0.1859, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.89 kB / 457.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3223, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007796/0.3302, allocations: 7.454 MB / 0.5109 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004459/0.3346, allocations: 2.977 MB / 0.5138 GB, free: 192 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006696/0.3354, allocations: 24.56 kB / 0.5138 GB, free: 184 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002308/0.3377, allocations: 0.784 MB / 0.5146 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.3401, allocations: 0.6851 MB / 0.5153 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.3414, allocations: 385.7 kB / 0.5156 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.3441, allocations: 1.32 MB / 0.5169 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001225/0.3453, allocations: 0.7461 MB / 0.5177 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.3468, allocations: 0.5556 MB / 0.5182 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.3484, allocations: 0.6328 MB / 0.5188 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.3486, allocations: 73.53 kB / 0.5189 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.3498, allocations: 471.1 kB / 0.5193 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006334/0.3504, allocations: 455.9 kB / 0.5198 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006496/0.3511, allocations: 0.5115 MB / 0.5203 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002142/0.3532, allocations: 1.425 MB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3532, allocations: 0.5625 kB / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3532, allocations: 0 / 0.5217 GB, free: 12.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.3533, allocations: 0 / 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.002661/0.356, allocations: 1.293 MB / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.356, allocations: 13.48 kB / 0.5229 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.3562, allocations: 142 kB / 0.5231 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/0.3574, allocations: 211.3 kB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.359, allocations: 0.7224 MB / 0.524 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.359, allocations: 65.58 kB / 0.524 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/0.3593, allocations: 97.03 kB / 0.5241 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.3611, allocations: 1.112 MB / 0.5252 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.3611, allocations: 1.531 kB / 0.5252 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.35e-05/0.3612, allocations: 37.34 kB / 0.5253 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/0.3614, allocations: 68.7 kB / 0.5253 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.3629, allocations: 0.8902 MB / 0.5262 GB, free: 10.37 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.005962/0.3689, allocations: 4.075 MB / 0.5302 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006366/0.3695, allocations: 416.6 kB / 0.5306 GB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004034/0.3699, allocations: 278.4 kB / 0.5308 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.37, allocations: 4.906 kB / 0.5308 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.37, allocations: 37.88 kB / 0.5309 GB, free: 7.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.525e-06/0.37, allocations: 0 / 0.5309 GB, free: 7.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004524/0.3746, allocations: 2.004 MB / 0.5328 GB, free: 5.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.3746, allocations: 87.08 kB / 0.5329 GB, free: 5.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000731/0.3754, allocations: 0.5694 MB / 0.5335 GB, free: 5.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.3754, allocations: 39.92 kB / 0.5335 GB, free: 5.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.3758, allocations: 487 kB / 0.534 GB, free: 4.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.376, allocations: 194.4 kB / 0.5342 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.3762, allocations: 152.6 kB / 0.5343 GB, free: 4.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3764, allocations: 384 kB / 0.5347 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.3769, allocations: 269.2 kB / 0.5349 GB, free: 4.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006497/0.3776, allocations: 0.506 MB / 0.5354 GB, free: 3.734 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.003318/0.3809, allocations: 1.402 MB / 0.5368 GB, free: 2.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3809, allocations: 2.562 kB / 0.5368 GB, free: 2.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002109/0.383, allocations: 1.096 MB / 0.5379 GB, free: 2.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.383, allocations: 8.031 kB / 0.5379 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001341/0.3844, allocations: 0.7549 MB / 0.5386 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005428/0.385, allocations: 160.8 kB / 0.5388 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006205/0.3856, allocations: 179.1 kB / 0.5389 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.3902, allocations: 4.859 MB / 0.5437 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006689/0.3909, allocations: 38.84 kB / 0.5437 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.3909, allocations: 29.75 kB / 0.5437 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.000558/0.3915, allocations: 323.5 kB / 0.5441 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.3916, allocations: 77.78 kB / 0.5441 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.3927, allocations: 0.6402 MB / 0.5447 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.3927, allocations: 5.5 kB / 0.5448 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3928, allocations: 3.984 kB / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3928, allocations: 1.516 kB / 0.5448 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002597/0.3954, allocations: 1.523 MB / 0.5462 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3954, allocations: 1.125 kB / 0.5462 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/0.396, allocations: 124.5 kB / 0.5464 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.396, allocations: 8.156 kB / 0.5464 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.3961, allocations: 10.5 kB / 0.5464 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.3961, allocations: 9.062 kB / 0.5464 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.3961, allocations: 5.469 kB / 0.5464 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.3975, allocations: 0.9648 MB / 0.5473 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.3978, allocations: 180.7 kB / 0.5475 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.911e-05/0.3979, allocations: 19.98 kB / 0.5475 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003311/0.3983, allocations: 19.98 kB / 0.5476 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.628e-05/0.3983, allocations: 36.33 kB / 0.5476 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/0.3984, allocations: 20 kB / 0.5476 GB, free: 10.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005088/0.3989, allocations: 411 kB / 0.548 GB, free: 9.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3989, allocations: 0 / 0.548 GB, free: 9.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008895/0.3998, allocations: 227.9 kB / 0.5482 GB, free: 9.617 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.001798/0.4016, allocations: 1.543 MB / 0.5497 GB, free: 8.027 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.4033, allocations: 1.031 MB / 0.5507 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4033, allocations: 0 / 0.5507 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000413/0.4038, allocations: 266.3 kB / 0.551 GB, free: 6.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008616/0.4046, allocations: 157.9 kB / 0.5511 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.415, allocations: 7.15 MB / 0.5581 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008094/0.4159, allocations: 1.078 MB / 0.5592 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000563/0.4165, allocations: 201.8 kB / 0.5594 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.4169, allocations: 323.3 kB / 0.5597 GB, free: 13.39 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4169, allocations: 4 kB / 0.5597 GB, free: 13.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05101/0.468, allocations: 15.98 MB / 0.5753 GB, free: 13.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.73, allocations: 12.06 kB / 0.5753 GB, free: 13.54 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)