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.001606/0.001606, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001729/0.001729, allocations: 200 kB / 18.01 MB, free: 5.066 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1739/0.1739, allocations: 38.03 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3182, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01043/0.3287, allocations: 11.02 MB / 0.5144 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.3409, allocations: 7.076 MB / 0.5213 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.3423, allocations: 52.97 kB / 0.5213 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02247/0.3648, allocations: 12.88 MB / 0.5339 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.3687, allocations: 1.132 MB / 0.535 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002358/0.3711, allocations: 0.6965 MB / 0.5357 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008113/0.3792, allocations: 4.014 MB / 0.5396 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.3812, allocations: 0.9887 MB / 0.5406 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002485/0.3837, allocations: 1.13 MB / 0.5417 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.3866, allocations: 1.445 MB / 0.5431 GB, free: 208 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005737/0.3872, allocations: 152 kB / 0.5432 GB, free: 56 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.389, allocations: 0.511 MB / 0.5437 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.3903, allocations: 0.9117 MB / 0.5446 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.3923, allocations: 0.9795 MB / 0.5456 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004307/0.3967, allocations: 2.565 MB / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3967, allocations: 4 kB / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3967, allocations: 0 / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001449/0.3968, allocations: 4 kB / 0.5481 GB, free: 11.06 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.006062/0.4029, allocations: 2.275 MB / 0.5503 GB, free: 8.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.403, allocations: 15.89 kB / 0.5503 GB, free: 8.711 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002925/0.4033, allocations: 228.5 kB / 0.5505 GB, free: 8.477 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001868/0.4052, allocations: 351.1 kB / 0.5509 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002942/0.4081, allocations: 1.335 MB / 0.5522 GB, free: 6.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.216e-05/0.4082, allocations: 106.7 kB / 0.5523 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000556/0.4088, allocations: 239.8 kB / 0.5525 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/0.4122, allocations: 2.192 MB / 0.5547 GB, free: 4.117 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.585e-05/0.4122, allocations: 7.891 kB / 0.5547 GB, free: 4.109 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/0.4124, allocations: 67.92 kB / 0.5547 GB, free: 4.043 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006588/0.4131, allocations: 190.8 kB / 0.5549 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002915/0.416, allocations: 1.83 MB / 0.5567 GB, free: 2.02 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.01192/0.4279, allocations: 8.542 MB / 0.565 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.4305, allocations: 1.905 MB / 0.5669 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.4319, allocations: 0.7903 MB / 0.5677 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.452e-05/0.432, allocations: 17.38 kB / 0.5677 GB, free: 6.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.432, allocations: 59.81 kB / 0.5677 GB, free: 6.152 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.818e-06/0.4321, allocations: 0 / 0.5677 GB, free: 6.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02352/0.4556, allocations: 9.248 MB / 0.5768 GB, free: 12.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.4557, allocations: 102.4 kB / 0.5769 GB, free: 12.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.4572, allocations: 1.071 MB / 0.5779 GB, free: 11.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.4573, allocations: 61.64 kB / 0.578 GB, free: 11.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000653/0.458, allocations: 0.8054 MB / 0.5788 GB, free: 10.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005844/0.4586, allocations: 0.6159 MB / 0.5794 GB, free: 9.965 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/0.4591, allocations: 347.5 kB / 0.5797 GB, free: 9.621 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4593, allocations: 301.1 kB / 0.58 GB, free: 9.324 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.4607, allocations: 0.8511 MB / 0.5808 GB, free: 8.469 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.4626, allocations: 1.348 MB / 0.5821 GB, free: 6.914 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.01371/0.4763, allocations: 5.187 MB / 0.5872 GB, free: 1.555 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/0.4763, allocations: 8 kB / 0.5872 GB, free: 1.547 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009356/0.4857, allocations: 4.197 MB / 0.5913 GB, free: 13.28 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.4857, allocations: 12 kB / 0.5913 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.4858, allocations: 16 kB / 0.5913 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004856/0.4906, allocations: 1.603 MB / 0.5929 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.492, allocations: 315.5 kB / 0.5932 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02792/0.52, allocations: 20.89 MB / 0.6136 GB, free: 5.566 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.5217, allocations: 91.94 kB / 0.6137 GB, free: 5.477 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.5219, allocations: 83.97 kB / 0.6138 GB, free: 5.395 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.001067/0.523, allocations: 0.5616 MB / 0.6143 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003917/0.5234, allocations: 159 kB / 0.6145 GB, free: 4.668 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00537/0.5288, allocations: 2.805 MB / 0.6172 GB, free: 1.758 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.5288, allocations: 16 kB / 0.6172 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.047e-05/0.5288, allocations: 4 kB / 0.6172 GB, free: 1.738 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.416e-05/0.5289, allocations: 7.969 kB / 0.6172 GB, free: 1.73 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00981/0.5387, allocations: 4.824 MB / 0.6219 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.5387, allocations: 4 kB / 0.622 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.5406, allocations: 343.9 kB / 0.6223 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.5423, allocations: 497.5 kB / 0.6228 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002156/0.5425, allocations: 55.97 kB / 0.6228 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/0.5555, allocations: 12.75 MB / 0.6353 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.5555, allocations: 8.125 kB / 0.6353 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007313/0.5629, allocations: 3.717 MB / 0.6389 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001436/0.5643, allocations: 375.9 kB / 0.6393 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/0.5647, allocations: 51.92 kB / 0.6393 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.5658, allocations: 79.92 kB / 0.6394 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/0.5662, allocations: 125.1 kB / 0.6395 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.5663, allocations: 47.98 kB / 0.6395 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001059/0.5674, allocations: 0.7139 MB / 0.6402 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.2e-07/0.5674, allocations: 4 kB / 0.6402 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002407/0.5698, allocations: 0.5937 MB / 0.6408 GB, free: 8.203 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.007265/0.5771, allocations: 4.363 MB / 0.6451 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006774/0.5839, allocations: 3.503 MB / 0.6485 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.584, allocations: 4 kB / 0.6485 GB, free: 104 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003251/0.5872, allocations: 1.893 MB / 0.6504 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.5892, allocations: 339.9 kB / 0.6507 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03687/0.626, allocations: 20 MB / 0.6702 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.6276, allocations: 1.645 MB / 0.6718 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00131/0.6289, allocations: 437.3 kB / 0.6722 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000967/0.6299, allocations: 0.7023 MB / 0.6729 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/0.6299, allocations: 4 kB / 0.6729 GB, free: 6.156 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1029/0.7328, allocations: 47.81 MB / 0.7196 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.52, allocations: 8.047 kB / 0.7196 GB, free: 6.605 MB / 0.5762 GB (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)