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.001095/0.001095, allocations: 103.8 kB / 16.92 MB, free: 6.145 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.001324, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.336/1.336, allocations: 222.9 MB / 241.6 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.1804/0.1804, allocations: 38.03 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 63.95 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.09636, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01372/0.1101, allocations: 10.94 MB / 467.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1214, allocations: 7.093 MB / 475 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.1225, allocations: 47.69 kB / 475 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02208/0.1446, allocations: 12.9 MB / 487.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.1478, allocations: 1.097 MB / 489 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.1497, allocations: 0.6588 MB / 489.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005316/0.155, allocations: 3.903 MB / 493.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001499/0.1565, allocations: 1 MB / 494.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.1582, allocations: 1.082 MB / 495.7 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002032/0.1603, allocations: 1.394 MB / 497.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004216/0.1607, allocations: 144 kB / 497.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.1619, allocations: 0.5188 MB / 497.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008635/0.1628, allocations: 0.8806 MB / 498.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.1642, allocations: 0.9562 MB / 499.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.1668, allocations: 2.469 MB / 0.4903 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1668, allocations: 0 / 0.4903 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.307e-06/0.1668, allocations: 3.984 kB / 0.4903 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.916e-05/0.1669, allocations: 0 / 0.4903 GB, free: 10.75 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004607/0.1715, allocations: 2.154 MB / 0.4924 GB, free: 8.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1716, allocations: 11.89 kB / 0.4924 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003176/0.1719, allocations: 228.2 kB / 0.4926 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.1738, allocations: 318.3 kB / 0.4929 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002972/0.1767, allocations: 1.233 MB / 0.4941 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.1769, allocations: 98.66 kB / 0.4942 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007386/0.1776, allocations: 235.7 kB / 0.4944 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003952/0.1816, allocations: 2.149 MB / 0.4965 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.194e-05/0.1817, allocations: 3.938 kB / 0.4965 GB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.1819, allocations: 67.91 kB / 0.4966 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006885/0.1826, allocations: 190.7 kB / 0.4968 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003213/0.1858, allocations: 1.752 MB / 0.4985 GB, free: 2.09 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.2112/0.397, allocations: 8.606 MB / 0.5069 GB, free: 52.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.3994, allocations: 1.819 MB / 0.5087 GB, free: 51.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.4008, allocations: 0.7802 MB / 0.5094 GB, free: 51.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.287e-05/0.4009, allocations: 22.48 kB / 0.5095 GB, free: 51.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.401, allocations: 50.94 kB / 0.5095 GB, free: 51.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.347e-06/0.401, allocations: 0 / 0.5095 GB, free: 51.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01138/0.4123, allocations: 5.443 MB / 0.5148 GB, free: 48.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.4124, allocations: 91.33 kB / 0.5149 GB, free: 48.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.4139, allocations: 1.041 MB / 0.5159 GB, free: 48.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.4141, allocations: 50.98 kB / 0.516 GB, free: 48.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004651/0.4146, allocations: 0.7717 MB / 0.5167 GB, free: 47.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004003/0.415, allocations: 0.4932 MB / 0.5172 GB, free: 47.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00046/0.4154, allocations: 312.1 kB / 0.5175 GB, free: 47.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.535e-05/0.4155, allocations: 302.9 kB / 0.5178 GB, free: 46.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.4167, allocations: 0.7173 MB / 0.5185 GB, free: 46.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.4181, allocations: 1.184 MB / 0.5196 GB, free: 45.84 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.01104/0.4292, allocations: 5.009 MB / 0.5245 GB, free: 43.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.5e-05/0.4292, allocations: 8.938 kB / 0.5245 GB, free: 43.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006595/0.4358, allocations: 3.596 MB / 0.5281 GB, free: 41.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.4359, allocations: 11.47 kB / 0.5281 GB, free: 41.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/0.4359, allocations: 16.72 kB / 0.5281 GB, free: 41.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003403/0.4393, allocations: 1.258 MB / 0.5293 GB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.4406, allocations: 315.1 kB / 0.5296 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01671/0.4573, allocations: 16.03 MB / 0.5453 GB, free: 24.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.4587, allocations: 75.86 kB / 0.5453 GB, free: 24.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4588, allocations: 80.02 kB / 0.5454 GB, free: 24.49 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.000779/0.4596, allocations: 0.5214 MB / 0.5459 GB, free: 23.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.4598, allocations: 138.3 kB / 0.5461 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002614/0.4624, allocations: 2.146 MB / 0.5482 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.4625, allocations: 16 kB / 0.5482 GB, free: 21.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4625, allocations: 0 / 0.5482 GB, free: 21.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.4625, allocations: 11.97 kB / 0.5482 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/0.4674, allocations: 3.835 MB / 0.5519 GB, free: 17.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4674, allocations: 7.859 kB / 0.5519 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.4689, allocations: 323.6 kB / 0.5522 GB, free: 17.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004953/0.4694, allocations: 208.6 kB / 0.5524 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.4696, allocations: 51.91 kB / 0.5525 GB, free: 16.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003964/0.4735, allocations: 7.94 MB / 0.5602 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4735, allocations: 4 kB / 0.5603 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.4768, allocations: 2.822 MB / 0.563 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005705/0.4774, allocations: 327.3 kB / 0.5633 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.4776, allocations: 47.92 kB / 0.5634 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007272/0.4784, allocations: 59.94 kB / 0.5634 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.4786, allocations: 93.12 kB / 0.5635 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-05/0.4786, allocations: 39.98 kB / 0.5635 GB, free: 4.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007251/0.4794, allocations: 0.6931 MB / 0.5642 GB, free: 4.129 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4794, allocations: 4 kB / 0.5642 GB, free: 4.125 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001679/0.4811, allocations: 0.5076 MB / 0.5647 GB, free: 3.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (126): * Single equations (assignments): 120 * 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.003569/0.4846, allocations: 3.452 MB / 0.5681 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006511/0.4912, allocations: 3.694 MB / 0.5717 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.4912, allocations: 2.078 kB / 0.5717 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/0.4936, allocations: 1.366 MB / 0.573 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.4954, allocations: 318.6 kB / 0.5733 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03096/0.5263, allocations: 18.9 MB / 0.5918 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/0.5278, allocations: 1.549 MB / 0.5933 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001459/0.5293, allocations: 444.1 kB / 0.5937 GB, free: 4.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.5303, allocations: 0.6594 MB / 0.5944 GB, free: 4.09 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5303, allocations: 0 / 0.5944 GB, free: 4.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08939/0.6197, allocations: 41.37 MB / 0.6348 GB, free: 10.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.89, allocations: 8 kB / 0.6348 GB, free: 10.94 MB / 462.1 MB (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)