Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",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.001125/0.001125, 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.001051/0.001051, 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.341/1.341, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1775/0.1775, allocations: 38.03 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 68.03 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2972, allocations: 58.05 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.009453/0.3067, allocations: 10.96 MB / 0.5143 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.3174, allocations: 7.079 MB / 0.5212 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.3186, allocations: 45.38 kB / 0.5213 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02233/0.3409, allocations: 12.92 MB / 0.5339 GB, free: 6.164 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004138/0.3451, allocations: 1.107 MB / 0.535 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.3474, allocations: 0.6549 MB / 0.5356 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006696/0.3541, allocations: 3.907 MB / 0.5394 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.3557, allocations: 0.9923 MB / 0.5404 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.3578, allocations: 1.094 MB / 0.5415 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002468/0.3603, allocations: 1.392 MB / 0.5428 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005621/0.3609, allocations: 144 kB / 0.5429 GB, free: 400 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.3625, allocations: 0.5149 MB / 0.5435 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.3637, allocations: 0.8923 MB / 0.5443 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.3651, allocations: 0.9562 MB / 0.5453 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00294/0.3681, allocations: 2.502 MB / 0.5477 GB, free: 11.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3681, allocations: 4 kB / 0.5477 GB, free: 11.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3681, allocations: 0 / 0.5477 GB, free: 11.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.446e-05/0.3681, allocations: 0 / 0.5477 GB, free: 11.5 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004328/0.3725, allocations: 2.214 MB / 0.5499 GB, free: 9.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3725, allocations: 15.83 kB / 0.5499 GB, free: 9.211 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002753/0.3728, allocations: 224.2 kB / 0.5501 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.3746, allocations: 335.2 kB / 0.5504 GB, free: 8.652 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002625/0.3772, allocations: 1.281 MB / 0.5517 GB, free: 7.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.542e-05/0.3773, allocations: 106.6 kB / 0.5518 GB, free: 7.223 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000556/0.3779, allocations: 235.8 kB / 0.552 GB, free: 6.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003225/0.3811, allocations: 2.149 MB / 0.5541 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.427e-05/0.3812, allocations: 8 kB / 0.5541 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.3813, allocations: 63.97 kB / 0.5542 GB, free: 4.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006662/0.382, allocations: 182.7 kB / 0.5543 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.3849, allocations: 1.763 MB / 0.5561 GB, free: 2.715 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.01139/0.3963, allocations: 8.587 MB / 0.5644 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.3986, allocations: 1.809 MB / 0.5662 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.3999, allocations: 0.7699 MB / 0.567 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.317e-05/0.4, allocations: 17.06 kB / 0.567 GB, free: 6.988 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.4, allocations: 43.56 kB / 0.567 GB, free: 6.934 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 3.186e-06/0.4, allocations: 0 / 0.567 GB, free: 6.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01855/0.4186, allocations: 7.612 MB / 0.5745 GB, free: 15.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.4187, allocations: 94.42 kB / 0.5745 GB, free: 15.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.42, allocations: 1.033 MB / 0.5756 GB, free: 14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.4202, allocations: 53.69 kB / 0.5756 GB, free: 13.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005518/0.4207, allocations: 0.7856 MB / 0.5764 GB, free: 13.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004831/0.4212, allocations: 0.5578 MB / 0.5769 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004882/0.4217, allocations: 331.4 kB / 0.5772 GB, free: 12.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4218, allocations: 309.1 kB / 0.5775 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.4231, allocations: 0.7807 MB / 0.5783 GB, free: 11.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001512/0.4246, allocations: 1.247 MB / 0.5795 GB, free: 9.727 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.01571/0.4404, allocations: 5.685 MB / 0.5851 GB, free: 3.863 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/0.4404, allocations: 4 kB / 0.5851 GB, free: 3.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00896/0.4494, allocations: 3.925 MB / 0.5889 GB, free: 15.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.4494, allocations: 8.781 kB / 0.5889 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.901e-05/0.4495, allocations: 16 kB / 0.5889 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005737/0.4552, allocations: 1.748 MB / 0.5906 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.4563, allocations: 259.6 kB / 0.5909 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02541/0.4817, allocations: 18.5 MB / 0.6089 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.4834, allocations: 87.88 kB / 0.609 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.4836, allocations: 79.92 kB / 0.6091 GB, free: 10.61 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.generator.psi_rq[1] = 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: 63 * 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0009943/0.4846, allocations: 0.5354 MB / 0.6096 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.4848, allocations: 151 kB / 0.6098 GB, free: 9.918 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004946/0.4898, allocations: 2.405 MB / 0.6121 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.4898, allocations: 12 kB / 0.6121 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.4898, allocations: 7.938 kB / 0.6121 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.4899, allocations: 15.97 kB / 0.6122 GB, free: 7.406 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008442/0.4983, allocations: 4.321 MB / 0.6164 GB, free: 2.949 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.4983, allocations: 4 kB / 0.6164 GB, free: 2.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.4999, allocations: 307.6 kB / 0.6167 GB, free: 2.645 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002517/0.5024, allocations: 0.5545 MB / 0.6172 GB, free: 2.074 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/0.5025, allocations: 55.95 kB / 0.6173 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009714/0.5123, allocations: 10.13 MB / 0.6272 GB, free: 7.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.5123, allocations: 7.938 kB / 0.6272 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005951/0.5183, allocations: 3.215 MB / 0.6303 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007788/0.5191, allocations: 359.9 kB / 0.6307 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.5193, allocations: 55.91 kB / 0.6307 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008364/0.5201, allocations: 63.94 kB / 0.6308 GB, free: 3.371 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.5204, allocations: 109.1 kB / 0.6309 GB, free: 3.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-05/0.5205, allocations: 43.98 kB / 0.6309 GB, free: 3.223 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009034/0.5214, allocations: 0.6931 MB / 0.6316 GB, free: 2.523 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5214, allocations: 3.938 kB / 0.6316 GB, free: 2.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001876/0.5233, allocations: 0.5744 MB / 0.6322 GB, free: 1.945 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],meterDC.pav,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]) * 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 (119): * Single equations (assignments): 113 * 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): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006373/0.5297, allocations: 3.848 MB / 0.6359 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00525/0.535, allocations: 3.129 MB / 0.639 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.535, allocations: 4 kB / 0.639 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002258/0.5373, allocations: 1.572 MB / 0.6405 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.5388, allocations: 324.2 kB / 0.6408 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03164/0.5705, allocations: 18.97 MB / 0.6593 GB, free: 5.227 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.5718, allocations: 1.581 MB / 0.6609 GB, free: 3.617 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001101/0.5729, allocations: 404.5 kB / 0.6613 GB, free: 3.215 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008131/0.5737, allocations: 0.6555 MB / 0.6619 GB, free: 2.559 MB / 0.5138 GB Notification: Performance of SimCode: time 8.81e-07/0.5737, allocations: 3.938 kB / 0.6619 GB, free: 2.555 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1435/0.7173, allocations: 46.61 MB / 0.7074 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.13, allocations: 6.875 kB / 0.7074 GB, free: 4.184 MB / 0.5606 GB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR_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_PSGR.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)