Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_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.001598/0.001598, allocations: 110.5 kB / 17.06 MB, free: 6.098 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.00197/0.001969, allocations: 200.1 kB / 18 MB, free: 5.168 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1725/0.1725, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 59.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.324, allocations: 58.07 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.0114/0.3355, allocations: 10.95 MB / 0.5143 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.3482, allocations: 7.083 MB / 0.5212 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.3502, allocations: 45.53 kB / 0.5213 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02376/0.3739, allocations: 12.91 MB / 0.5339 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00334/0.3773, allocations: 1.122 MB / 0.535 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002303/0.3796, allocations: 0.6482 MB / 0.5356 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007058/0.3867, allocations: 3.907 MB / 0.5394 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.3886, allocations: 0.9912 MB / 0.5404 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002179/0.3908, allocations: 1.099 MB / 0.5415 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002524/0.3933, allocations: 1.39 MB / 0.5428 GB, free: 492 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006256/0.394, allocations: 151.9 kB / 0.543 GB, free: 340 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.3958, allocations: 0.5033 MB / 0.5435 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/0.3973, allocations: 0.8923 MB / 0.5443 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.3993, allocations: 0.9601 MB / 0.5453 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.4028, allocations: 2.502 MB / 0.5477 GB, free: 11.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.4028, allocations: 4 kB / 0.5477 GB, free: 11.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4028, allocations: 0 / 0.5477 GB, free: 11.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.098e-05/0.4029, allocations: 0 / 0.5477 GB, free: 11.45 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.004439/0.4073, allocations: 2.21 MB / 0.5499 GB, free: 9.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.4074, allocations: 12.03 kB / 0.5499 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002887/0.4077, allocations: 224.2 kB / 0.5501 GB, free: 8.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.4095, allocations: 339.2 kB / 0.5504 GB, free: 8.605 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.4123, allocations: 1.289 MB / 0.5517 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.751e-05/0.4124, allocations: 102.7 kB / 0.5518 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005717/0.413, allocations: 235.8 kB / 0.552 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/0.4162, allocations: 2.149 MB / 0.5541 GB, free: 4.684 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.4163, allocations: 11.94 kB / 0.5541 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.4164, allocations: 59.92 kB / 0.5542 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006369/0.4171, allocations: 182.7 kB / 0.5544 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.4199, allocations: 1.752 MB / 0.5561 GB, free: 2.676 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.01205/0.4319, allocations: 8.587 MB / 0.5644 GB, free: 9.664 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/0.4346, allocations: 1.825 MB / 0.5662 GB, free: 7.719 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.4361, allocations: 0.762 MB / 0.567 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.4362, allocations: 20.97 kB / 0.567 GB, free: 6.934 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.4363, allocations: 51.56 kB / 0.567 GB, free: 6.871 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.809e-06/0.4363, allocations: 0 / 0.567 GB, free: 6.871 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01864/0.4549, allocations: 7.604 MB / 0.5745 GB, free: 15.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/0.455, allocations: 94.42 kB / 0.5746 GB, free: 15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.4564, allocations: 1.037 MB / 0.5756 GB, free: 13.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.4566, allocations: 53.69 kB / 0.5756 GB, free: 13.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000524/0.4571, allocations: 0.7856 MB / 0.5764 GB, free: 13.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.4575, allocations: 0.5578 MB / 0.5769 GB, free: 12.53 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004759/0.458, allocations: 339.4 kB / 0.5773 GB, free: 12.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.4581, allocations: 301.1 kB / 0.5775 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.4593, allocations: 0.7769 MB / 0.5783 GB, free: 11.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.4608, allocations: 1.247 MB / 0.5795 GB, free: 9.676 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.01557/0.4764, allocations: 5.681 MB / 0.5851 GB, free: 3.816 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.118e-05/0.4764, allocations: 4 kB / 0.5851 GB, free: 3.812 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009255/0.4857, allocations: 3.922 MB / 0.5889 GB, free: 15.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.4857, allocations: 12.09 kB / 0.5889 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.4858, allocations: 20 kB / 0.5889 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00565/0.4914, allocations: 1.735 MB / 0.5906 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.4926, allocations: 267.5 kB / 0.5909 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02692/0.5196, allocations: 18.51 MB / 0.609 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.5211, allocations: 83.88 kB / 0.609 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.5213, allocations: 75.98 kB / 0.6091 GB, free: 10.57 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.00107/0.5223, allocations: 0.5406 MB / 0.6096 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.5227, allocations: 151 kB / 0.6098 GB, free: 9.867 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004979/0.5276, allocations: 2.393 MB / 0.6121 GB, free: 7.402 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.5277, allocations: 19.98 kB / 0.6121 GB, free: 7.383 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.5277, allocations: 11.94 kB / 0.6122 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.5277, allocations: 3.984 kB / 0.6122 GB, free: 7.367 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008324/0.536, allocations: 4.32 MB / 0.6164 GB, free: 2.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.5361, allocations: 11.98 kB / 0.6164 GB, free: 2.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.5376, allocations: 303.9 kB / 0.6167 GB, free: 2.602 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002481/0.5401, allocations: 0.562 MB / 0.6172 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.5402, allocations: 51.97 kB / 0.6173 GB, free: 1.973 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009702/0.5499, allocations: 10.14 MB / 0.6272 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5499, allocations: 4 kB / 0.6272 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005883/0.5558, allocations: 3.213 MB / 0.6303 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.5567, allocations: 352 kB / 0.6307 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.5569, allocations: 47.92 kB / 0.6307 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000787/0.5577, allocations: 67.94 kB / 0.6308 GB, free: 3.328 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.5579, allocations: 113.1 kB / 0.6309 GB, free: 3.219 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.384e-05/0.558, allocations: 43.98 kB / 0.6309 GB, free: 3.176 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008776/0.5589, allocations: 0.697 MB / 0.6316 GB, free: 2.473 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5589, allocations: 0 / 0.6316 GB, free: 2.473 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001827/0.5608, allocations: 0.5703 MB / 0.6322 GB, free: 1.902 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.006214/0.567, allocations: 3.853 MB / 0.6359 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005223/0.5722, allocations: 3.124 MB / 0.639 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.5723, allocations: 0 / 0.639 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.5746, allocations: 1.584 MB / 0.6405 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.5762, allocations: 330.8 kB / 0.6408 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03341/0.6096, allocations: 18.96 MB / 0.6593 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.611, allocations: 1.592 MB / 0.6609 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001076/0.6121, allocations: 400.5 kB / 0.6613 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008366/0.6129, allocations: 0.6632 MB / 0.6619 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of SimCode: time 7.41e-07/0.6129, allocations: 4 kB / 0.6619 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08559/0.6985, allocations: 46.63 MB / 0.7075 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.62, allocations: 10.89 kB / 0.7075 GB, free: 4.121 MB / 0.5606 GB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)