Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",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.001806/0.001806, allocations: 106.8 kB / 16.92 MB, free: 5.77 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.002071/0.002071, allocations: 187.3 kB / 17.85 MB, free: 5.172 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.389/1.389, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1871/0.1871, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 54.2 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09541/0.09679, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01311/0.11, allocations: 11.02 MB / 468 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.1225, allocations: 7.086 MB / 475.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.1241, allocations: 51.69 kB / 475.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02046/0.1446, allocations: 12.86 MB / 488 MB, free: 8.863 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003159/0.1478, allocations: 1.124 MB / 489.1 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.1499, allocations: 0.6901 MB / 489.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009034/0.1589, allocations: 4.001 MB / 493.8 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003185/0.1622, allocations: 1.004 MB / 494.8 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002633/0.1649, allocations: 1.113 MB / 495.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.1676, allocations: 1.448 MB / 497.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007343/0.1683, allocations: 152 kB / 497.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.1699, allocations: 0.511 MB / 498 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.1712, allocations: 0.9002 MB / 498.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002065/0.1733, allocations: 0.9834 MB / 499.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00371/0.177, allocations: 2.527 MB / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1771, allocations: 0 / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1771, allocations: 0 / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001185/0.1772, allocations: 3.938 kB / 0.4906 GB, free: 10.35 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.006274/0.1835, allocations: 2.224 MB / 0.4928 GB, free: 8.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.1836, allocations: 11.89 kB / 0.4928 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005768/0.1841, allocations: 228.5 kB / 0.4931 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.1863, allocations: 334 kB / 0.4934 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003098/0.1895, allocations: 1.284 MB / 0.4946 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.1896, allocations: 102.7 kB / 0.4947 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006581/0.1902, allocations: 235.8 kB / 0.4949 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.1939, allocations: 2.192 MB / 0.4971 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.625e-05/0.194, allocations: 11.84 kB / 0.4971 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001599/0.1941, allocations: 59.98 kB / 0.4972 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006614/0.1948, allocations: 186.8 kB / 0.4973 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003138/0.198, allocations: 1.83 MB / 0.4991 GB, free: 1.438 MB / 382.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.1924/0.3904, allocations: 8.561 MB / 0.5075 GB, free: 52.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.3933, allocations: 1.903 MB / 0.5093 GB, free: 51.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.3947, allocations: 0.8043 MB / 0.5101 GB, free: 51.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.3949, allocations: 23.48 kB / 0.5101 GB, free: 51.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.3949, allocations: 49.42 kB / 0.5102 GB, free: 51.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.988e-06/0.3949, allocations: 0 / 0.5102 GB, free: 51.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01352/0.4084, allocations: 5.951 MB / 0.516 GB, free: 48.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.4085, allocations: 93.84 kB / 0.5161 GB, free: 48.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.4104, allocations: 1.064 MB / 0.5171 GB, free: 47.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.4105, allocations: 50.89 kB / 0.5172 GB, free: 47.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005532/0.4111, allocations: 0.7854 MB / 0.5179 GB, free: 47.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.4115, allocations: 0.5256 MB / 0.5185 GB, free: 46.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000487/0.412, allocations: 325 kB / 0.5188 GB, free: 46.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.412, allocations: 310.8 kB / 0.5191 GB, free: 46.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4133, allocations: 0.741 MB / 0.5198 GB, free: 46.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.4147, allocations: 1.227 MB / 0.521 GB, free: 45.32 MB / 382.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.009839/0.4246, allocations: 4.35 MB / 0.5252 GB, free: 43.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.861e-05/0.4246, allocations: 4.344 kB / 0.5252 GB, free: 43.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.00725/0.4319, allocations: 3.966 MB / 0.5291 GB, free: 41.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.449e-05/0.4319, allocations: 15.22 kB / 0.5291 GB, free: 41.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.432, allocations: 15.12 kB / 0.5291 GB, free: 41.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003776/0.4358, allocations: 1.461 MB / 0.5306 GB, free: 40.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.4368, allocations: 295.5 kB / 0.5309 GB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0205/0.4573, allocations: 20.98 MB / 0.5513 GB, free: 18.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.4589, allocations: 87.78 kB / 0.5514 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002958/0.4592, allocations: 87.92 kB / 0.5515 GB, free: 18.03 MB / 382.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001097/0.4603, allocations: 0.5168 MB / 0.552 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/0.4607, allocations: 142.2 kB / 0.5521 GB, free: 17.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003284/0.464, allocations: 2.221 MB / 0.5543 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.4641, allocations: 16 kB / 0.5543 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.4641, allocations: 4 kB / 0.5543 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.4641, allocations: 3.984 kB / 0.5543 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006316/0.4704, allocations: 3.986 MB / 0.5582 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.4705, allocations: 4 kB / 0.5582 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.4721, allocations: 339.8 kB / 0.5586 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004859/0.4726, allocations: 208 kB / 0.5588 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.4728, allocations: 51.97 kB / 0.5588 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004165/0.4769, allocations: 7.93 MB / 0.5666 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.477, allocations: 7.969 kB / 0.5666 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003948/0.4809, allocations: 2.932 MB / 0.5694 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007931/0.4817, allocations: 335.2 kB / 0.5697 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004171/0.4821, allocations: 47.92 kB / 0.5698 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.4832, allocations: 63.94 kB / 0.5698 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/0.4835, allocations: 105 kB / 0.5699 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.4837, allocations: 43.98 kB / 0.57 GB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00138/0.485, allocations: 0.71 MB / 0.5707 GB, free: 13.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4851, allocations: 0 / 0.5707 GB, free: 13.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002536/0.4876, allocations: 0.5427 MB / 0.5712 GB, free: 12.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],inverter2.vDC1,line.v[1,2],line.v[1,3],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],PI.x) * 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 (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (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.005221/0.4928, allocations: 3.573 MB / 0.5747 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007427/0.5003, allocations: 4.204 MB / 0.5788 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.5003, allocations: 0 / 0.5788 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.5025, allocations: 1.403 MB / 0.5802 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/0.5045, allocations: 334 kB / 0.5805 GB, free: 2.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03575/0.5403, allocations: 19.95 MB / 0.6 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/0.5424, allocations: 1.58 MB / 0.6015 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001593/0.544, allocations: 444.7 kB / 0.6019 GB, free: 11.99 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.5451, allocations: 0.6828 MB / 0.6026 GB, free: 11.3 MB / 430.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5451, allocations: 3.828 kB / 0.6026 GB, free: 11.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08945/0.6346, allocations: 43.21 MB / 0.6448 GB, free: 344 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.81, allocations: 11.09 kB / 0.6448 GB, free: 336 kB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI_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_PSGI.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)