Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.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.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",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.001414/0.001414, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001659/0.001659, allocations: 195 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.423/1.423, 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.1686/0.1686, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3263, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.008144/0.3344, allocations: 8.095 MB / 0.5115 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008825/0.3433, allocations: 5.485 MB / 0.5169 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007754/0.3441, allocations: 30.5 kB / 0.5169 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.3555, allocations: 5.231 MB / 0.522 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002438/0.3579, allocations: 0.8452 MB / 0.5228 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.3593, allocations: 499.7 kB / 0.5233 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004188/0.3635, allocations: 2.526 MB / 0.5258 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.3646, allocations: 0.636 MB / 0.5264 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00153/0.3662, allocations: 0.7738 MB / 0.5271 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001868/0.368, allocations: 1.031 MB / 0.5282 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002052/0.3683, allocations: 106.2 kB / 0.5283 GB, free: 9.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009133/0.3692, allocations: 370.2 kB / 0.5286 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006894/0.3699, allocations: 0.6563 MB / 0.5292 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008526/0.3707, allocations: 0.6886 MB / 0.5299 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.3732, allocations: 1.733 MB / 0.5316 GB, free: 7.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3732, allocations: 0 / 0.5316 GB, free: 7.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3732, allocations: 1.125 kB / 0.5316 GB, free: 7.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.255e-05/0.3732, allocations: 0 / 0.5316 GB, free: 7.586 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003849/0.3771, allocations: 1.627 MB / 0.5332 GB, free: 6.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3772, allocations: 13.64 kB / 0.5332 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002283/0.3774, allocations: 174.6 kB / 0.5334 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.3787, allocations: 215.4 kB / 0.5336 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002122/0.3809, allocations: 0.9701 MB / 0.5345 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.381, allocations: 67.42 kB / 0.5346 GB, free: 5.395 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004779/0.3814, allocations: 183.4 kB / 0.5348 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.384, allocations: 1.561 MB / 0.5363 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/0.384, allocations: 15.75 kB / 0.5363 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.3841, allocations: 41.48 kB / 0.5364 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006525/0.3848, allocations: 150.7 kB / 0.5365 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002254/0.3871, allocations: 1.245 MB / 0.5377 GB, free: 3.684 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.009172/0.3963, allocations: 6.463 MB / 0.544 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3979, allocations: 0.9184 MB / 0.5449 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007563/0.3986, allocations: 0.5083 MB / 0.5454 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.459e-05/0.3987, allocations: 16.98 kB / 0.5454 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.3988, allocations: 39.56 kB / 0.5455 GB, free: 13.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 2.705e-06/0.3988, allocations: 0 / 0.5455 GB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.006799/0.4056, allocations: 3.71 MB / 0.5491 GB, free: 9.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.4057, allocations: 90.11 kB / 0.5492 GB, free: 9.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008726/0.4065, allocations: 0.7312 MB / 0.5499 GB, free: 8.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.067e-05/0.4066, allocations: 45.73 kB / 0.5499 GB, free: 8.426 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000373/0.407, allocations: 0.5705 MB / 0.5505 GB, free: 7.848 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.4073, allocations: 380.8 kB / 0.5509 GB, free: 7.473 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/0.4077, allocations: 234.8 kB / 0.5511 GB, free: 7.238 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.4079, allocations: 410.7 kB / 0.5515 GB, free: 6.828 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008915/0.4088, allocations: 0.5647 MB / 0.552 GB, free: 6.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.4098, allocations: 0.8854 MB / 0.5529 GB, free: 5.246 MB / 414.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.008259/0.4181, allocations: 3.236 MB / 0.556 GB, free: 1.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4181, allocations: 0 / 0.556 GB, free: 1.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005887/0.424, allocations: 2.745 MB / 0.5587 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.4241, allocations: 12.03 kB / 0.5587 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.4241, allocations: 8 kB / 0.5587 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002863/0.427, allocations: 1.155 MB / 0.5599 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008879/0.4279, allocations: 207.6 kB / 0.5601 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/0.4459, allocations: 12.29 MB / 0.5721 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.4469, allocations: 56.02 kB / 0.5721 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.4472, allocations: 55.94 kB / 0.5722 GB, free: 1.043 MB / 430.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0008296/0.448, allocations: 401.4 kB / 0.5726 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.4483, allocations: 99.34 kB / 0.5727 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/0.4507, allocations: 1.412 MB / 0.574 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4507, allocations: 15.94 kB / 0.5741 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4507, allocations: 0 / 0.5741 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4508, allocations: 3.984 kB / 0.5741 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.4555, allocations: 2.668 MB / 0.5767 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.4555, allocations: 4.219 kB / 0.5767 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.4571, allocations: 271.7 kB / 0.5769 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/0.4572, allocations: 61.66 kB / 0.577 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.4574, allocations: 43.97 kB / 0.577 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001878/0.4592, allocations: 2.843 MB / 0.5798 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4593, allocations: 0 / 0.5798 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/0.462, allocations: 1.905 MB / 0.5817 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005767/0.4626, allocations: 260.3 kB / 0.5819 GB, free: 6.508 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.4628, allocations: 35.98 kB / 0.5819 GB, free: 6.473 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.4634, allocations: 43.95 kB / 0.582 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.4636, allocations: 64.86 kB / 0.5821 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-05/0.4636, allocations: 27.98 kB / 0.5821 GB, free: 6.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006753/0.4643, allocations: 499 kB / 0.5826 GB, free: 5.855 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4643, allocations: 0 / 0.5826 GB, free: 5.855 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001449/0.4658, allocations: 380 kB / 0.5829 GB, free: 5.484 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * 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 (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00313/0.4689, allocations: 2.482 MB / 0.5853 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.4728, allocations: 2.124 MB / 0.5874 GB, free: 0.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4728, allocations: 0 / 0.5874 GB, free: 0.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.474, allocations: 0.7607 MB / 0.5882 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.4751, allocations: 210.4 kB / 0.5884 GB, free: 15.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02584/0.501, allocations: 14.02 MB / 0.602 GB, free: 1.289 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001792/0.5029, allocations: 1.306 MB / 0.6033 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.504, allocations: 312 kB / 0.6036 GB, free: 15.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008538/0.5048, allocations: 459.3 kB / 0.6041 GB, free: 15.19 MB / 478.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5049, allocations: 4 kB / 0.6041 GB, free: 15.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06501/0.5699, allocations: 30.24 MB / 0.6336 GB, free: 1.141 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.01, allocations: 14.97 kB / 0.6336 GB, free: 1.129 MB / 494.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)