Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_PSGI,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_latest_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.001386/0.001386, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001325/0.001325, allocations: 200 kB / 18.01 MB, free: 4.914 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.4/1.4, 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.181/0.181, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3213, allocations: 58.06 MB / 0.5036 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.0107/0.3321, allocations: 11.02 MB / 0.5144 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01359/0.3457, allocations: 7.075 MB / 0.5213 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.3476, allocations: 52.47 kB / 0.5213 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02509/0.3728, allocations: 12.87 MB / 0.5339 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004378/0.3772, allocations: 1.12 MB / 0.535 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002551/0.3797, allocations: 0.6922 MB / 0.5357 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00725/0.387, allocations: 4.015 MB / 0.5396 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.3887, allocations: 0.9921 MB / 0.5406 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002346/0.3911, allocations: 1.121 MB / 0.5417 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002734/0.3938, allocations: 1.434 MB / 0.5431 GB, free: 280 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000401/0.3943, allocations: 152 kB / 0.5432 GB, free: 128 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001388/0.3957, allocations: 0.5188 MB / 0.5437 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3969, allocations: 0.9078 MB / 0.5446 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001385/0.3983, allocations: 0.9834 MB / 0.5456 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003723/0.402, allocations: 2.565 MB / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4021, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4021, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.703e-05/0.4021, allocations: 4 kB / 0.5481 GB, free: 11.13 MB / 414.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.005197/0.4073, allocations: 2.281 MB / 0.5503 GB, free: 8.785 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.4074, allocations: 11.89 kB / 0.5503 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003206/0.4077, allocations: 228.5 kB / 0.5505 GB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001916/0.4096, allocations: 343.1 kB / 0.5509 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002859/0.4125, allocations: 1.343 MB / 0.5522 GB, free: 6.816 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.925e-05/0.4126, allocations: 106.7 kB / 0.5523 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005906/0.4132, allocations: 235.8 kB / 0.5525 GB, free: 6.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003645/0.4169, allocations: 2.192 MB / 0.5546 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.169e-05/0.4169, allocations: 15.88 kB / 0.5547 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/0.4171, allocations: 59.98 kB / 0.5547 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006616/0.4178, allocations: 182.8 kB / 0.5549 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003618/0.4214, allocations: 1.834 MB / 0.5567 GB, free: 2.09 MB / 414.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.01357/0.435, allocations: 8.542 MB / 0.565 GB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002871/0.4379, allocations: 1.905 MB / 0.5669 GB, free: 7.094 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.4393, allocations: 0.7886 MB / 0.5676 GB, free: 6.305 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.183e-05/0.4394, allocations: 25.36 kB / 0.5677 GB, free: 6.281 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.4395, allocations: 47.81 kB / 0.5677 GB, free: 6.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.467e-06/0.4395, allocations: 0 / 0.5677 GB, free: 6.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02479/0.4643, allocations: 9.267 MB / 0.5768 GB, free: 12.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.156e-05/0.4644, allocations: 94.42 kB / 0.5769 GB, free: 12.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.466, allocations: 1.075 MB / 0.5779 GB, free: 11.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.4662, allocations: 49.7 kB / 0.578 GB, free: 11.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006942/0.4669, allocations: 0.8054 MB / 0.5787 GB, free: 10.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005862/0.4675, allocations: 0.612 MB / 0.5793 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005951/0.4681, allocations: 359.5 kB / 0.5797 GB, free: 9.688 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4682, allocations: 301.1 kB / 0.58 GB, free: 9.391 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.4698, allocations: 0.8511 MB / 0.5808 GB, free: 8.535 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.4719, allocations: 1.344 MB / 0.5821 GB, free: 6.984 MB / 446.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.01428/0.4862, allocations: 5.195 MB / 0.5872 GB, free: 1.617 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.515e-05/0.4862, allocations: 4 kB / 0.5872 GB, free: 1.613 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009722/0.4959, allocations: 4.201 MB / 0.5913 GB, free: 13.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.496, allocations: 12 kB / 0.5913 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/0.496, allocations: 12 kB / 0.5913 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004895/0.5009, allocations: 1.602 MB / 0.5929 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.5022, allocations: 311.5 kB / 0.5932 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03019/0.5324, allocations: 20.89 MB / 0.6136 GB, free: 5.637 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.534, allocations: 96.06 kB / 0.6137 GB, free: 5.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003878/0.5344, allocations: 88.05 kB / 0.6138 GB, free: 5.457 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 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 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001647/0.5361, allocations: 0.56 MB / 0.6143 GB, free: 4.891 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005117/0.5366, allocations: 159 kB / 0.6145 GB, free: 4.734 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006151/0.5428, allocations: 2.797 MB / 0.6172 GB, free: 1.832 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/0.5428, allocations: 20 kB / 0.6172 GB, free: 1.812 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.5429, allocations: 4 kB / 0.6172 GB, free: 1.809 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/0.5429, allocations: 7.969 kB / 0.6172 GB, free: 1.801 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009849/0.5527, allocations: 4.829 MB / 0.6219 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.5528, allocations: 0 / 0.6219 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.5546, allocations: 343.5 kB / 0.6223 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.5562, allocations: 0.4977 MB / 0.6227 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/0.5564, allocations: 55.91 kB / 0.6228 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.5699, allocations: 12.74 MB / 0.6352 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.57, allocations: 0 / 0.6352 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007123/0.5771, allocations: 3.725 MB / 0.6389 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007899/0.5779, allocations: 375.9 kB / 0.6392 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002969/0.5782, allocations: 55.86 kB / 0.6393 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009634/0.5792, allocations: 71.92 kB / 0.6394 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/0.5795, allocations: 129 kB / 0.6395 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.5796, allocations: 47.98 kB / 0.6395 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001106/0.5808, allocations: 0.7178 MB / 0.6402 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5808, allocations: 0 / 0.6402 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00206/0.5828, allocations: 0.5936 MB / 0.6408 GB, free: 8.273 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007344/0.5902, allocations: 4.357 MB / 0.6451 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00642/0.5966, allocations: 3.507 MB / 0.6485 GB, free: 176 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.5966, allocations: 0 / 0.6485 GB, free: 176 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003141/0.5998, allocations: 1.893 MB / 0.6503 GB, free: 14.18 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.6015, allocations: 344.7 kB / 0.6507 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03765/0.6392, allocations: 20.02 MB / 0.6702 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001824/0.641, allocations: 1.637 MB / 0.6718 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001248/0.6423, allocations: 441.3 kB / 0.6722 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/0.6434, allocations: 0.7023 MB / 0.6729 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of SimCode: time 8.62e-07/0.6434, allocations: 0 / 0.6729 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/0.753, allocations: 47.83 MB / 0.7196 GB, free: 6.672 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/16.07, allocations: 16.05 kB / 0.7196 GB, free: 6.656 MB / 0.5763 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)