Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_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.00111/0.00111, allocations: 114.1 kB / 17.07 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.001146/0.001146, allocations: 194.9 kB / 18.01 MB, free: 5.066 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.341/1.341, 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-master/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3345, allocations: 58.04 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.008968/0.3435, allocations: 8.106 MB / 0.5115 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009937/0.3535, allocations: 5.474 MB / 0.5169 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.3546, allocations: 30.03 kB / 0.5169 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01334/0.368, allocations: 5.237 MB / 0.522 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003059/0.371, allocations: 0.8486 MB / 0.5228 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.3728, allocations: 0.4917 MB / 0.5233 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004654/0.3775, allocations: 2.529 MB / 0.5258 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.3789, allocations: 0.6283 MB / 0.5264 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002033/0.3809, allocations: 0.7755 MB / 0.5272 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.3836, allocations: 1.024 MB / 0.5282 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006339/0.3842, allocations: 105.5 kB / 0.5283 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.3858, allocations: 371.8 kB / 0.5286 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.3871, allocations: 0.6609 MB / 0.5293 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001847/0.389, allocations: 0.6922 MB / 0.5299 GB, free: 8.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003298/0.3923, allocations: 1.726 MB / 0.5316 GB, free: 7.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.3923, allocations: 3.984 kB / 0.5316 GB, free: 7.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3923, allocations: 0.7812 kB / 0.5316 GB, free: 7.598 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.138e-05/0.3924, allocations: 0 / 0.5316 GB, free: 7.598 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.004905/0.3973, allocations: 1.626 MB / 0.5332 GB, free: 6.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3974, allocations: 21.3 kB / 0.5332 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003433/0.3977, allocations: 166.3 kB / 0.5334 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/0.3993, allocations: 223.5 kB / 0.5336 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.4017, allocations: 0.9617 MB / 0.5345 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.808e-05/0.4017, allocations: 72.52 kB / 0.5346 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004962/0.4023, allocations: 182.3 kB / 0.5348 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002463/0.4047, allocations: 1.565 MB / 0.5363 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.822e-05/0.4048, allocations: 11.23 kB / 0.5363 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.4049, allocations: 41.81 kB / 0.5364 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006321/0.4055, allocations: 148.4 kB / 0.5365 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.4076, allocations: 1.249 MB / 0.5377 GB, free: 3.695 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.009285/0.4169, allocations: 6.471 MB / 0.544 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.4186, allocations: 0.9149 MB / 0.5449 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007662/0.4194, allocations: 0.5005 MB / 0.5454 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.577e-05/0.4195, allocations: 13 kB / 0.5454 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.4195, allocations: 43.56 kB / 0.5455 GB, free: 13.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 3.687e-06/0.4195, allocations: 0 / 0.5455 GB, free: 13.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.007754/0.4273, allocations: 3.71 MB / 0.5491 GB, free: 9.336 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.4274, allocations: 90.11 kB / 0.5492 GB, free: 9.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009284/0.4283, allocations: 0.7313 MB / 0.5499 GB, free: 8.488 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.4284, allocations: 41.7 kB / 0.5499 GB, free: 8.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.4289, allocations: 0.5744 MB / 0.5505 GB, free: 7.859 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003523/0.4292, allocations: 380.8 kB / 0.5509 GB, free: 7.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003915/0.4296, allocations: 230.9 kB / 0.5511 GB, free: 7.254 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.4298, allocations: 414.7 kB / 0.5515 GB, free: 6.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009922/0.4308, allocations: 0.5647 MB / 0.552 GB, free: 6.273 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.432, allocations: 0.8854 MB / 0.5529 GB, free: 5.258 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.008255/0.4402, allocations: 3.228 MB / 0.5561 GB, free: 1.906 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.4403, allocations: 4 kB / 0.5561 GB, free: 1.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.007147/0.4474, allocations: 2.741 MB / 0.5587 GB, free: 15.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.4475, allocations: 12 kB / 0.5587 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/0.4475, allocations: 8 kB / 0.5588 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004791/0.4523, allocations: 1.167 MB / 0.5599 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009145/0.4533, allocations: 195.7 kB / 0.5601 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/0.4716, allocations: 12.29 MB / 0.5721 GB, free: 1.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.4726, allocations: 60.02 kB / 0.5721 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001775/0.4728, allocations: 59.92 kB / 0.5722 GB, free: 1.059 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.0007393/0.4736, allocations: 393.4 kB / 0.5726 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002359/0.4738, allocations: 103.3 kB / 0.5727 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.4762, allocations: 1.408 MB / 0.574 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4762, allocations: 8 kB / 0.5741 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4762, allocations: 4 kB / 0.5741 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.4762, allocations: 3.984 kB / 0.5741 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004822/0.4811, allocations: 2.676 MB / 0.5767 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4811, allocations: 8.031 kB / 0.5767 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.4826, allocations: 271.7 kB / 0.5769 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001835/0.4828, allocations: 61.61 kB / 0.577 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4829, allocations: 35.98 kB / 0.577 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.4849, allocations: 2.835 MB / 0.5798 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.4849, allocations: 11.92 kB / 0.5798 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.4879, allocations: 1.897 MB / 0.5817 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.4886, allocations: 264.3 kB / 0.5819 GB, free: 6.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/0.4888, allocations: 39.98 kB / 0.582 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008178/0.4897, allocations: 39.95 kB / 0.582 GB, free: 6.453 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.4899, allocations: 68.78 kB / 0.5821 GB, free: 6.387 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.49, allocations: 32 kB / 0.5821 GB, free: 6.355 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009094/0.4909, allocations: 0.4912 MB / 0.5826 GB, free: 5.867 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4909, allocations: 0 / 0.5826 GB, free: 5.867 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002078/0.493, allocations: 376 kB / 0.5829 GB, free: 5.5 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.003548/0.4965, allocations: 2.47 MB / 0.5853 GB, free: 2.934 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004602/0.5011, allocations: 2.136 MB / 0.5874 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5012, allocations: 256 / 0.5874 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.5024, allocations: 0.7528 MB / 0.5882 GB, free: 15.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.5037, allocations: 215.6 kB / 0.5884 GB, free: 15.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02404/0.5277, allocations: 14.03 MB / 0.6021 GB, free: 1.297 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5289, allocations: 1.298 MB / 0.6033 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008757/0.5298, allocations: 315.9 kB / 0.6036 GB, free: 15.65 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007162/0.5305, allocations: 459.3 kB / 0.6041 GB, free: 15.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5305, allocations: 0 / 0.6041 GB, free: 15.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06746/0.598, allocations: 30.25 MB / 0.6336 GB, free: 1.184 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/14.08, allocations: 3.859 kB / 0.6336 GB, free: 1.18 MB / 494.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)