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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001422/0.001422, allocations: 110.3 kB / 17.06 MB, free: 6.004 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.001562/0.001562, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1866/0.1866, allocations: 37.99 MB / 309.2 MB, free: 5.945 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 64.47 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1306, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01288/0.1435, allocations: 11.02 MB / 497.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.1577, allocations: 7.12 MB / 0.4929 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.1598, allocations: 51.69 kB / 0.493 GB, free: 6.57 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeComponents: time 0.02739/0.1873, allocations: 12.86 MB / 0.5055 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003757/0.1911, allocations: 1.12 MB / 0.5066 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.1935, allocations: 0.6901 MB / 0.5073 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007294/0.2008, allocations: 4.008 MB / 0.5112 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002405/0.2033, allocations: 0.9886 MB / 0.5122 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002803/0.2061, allocations: 1.132 MB / 0.5133 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002743/0.2089, allocations: 1.437 MB / 0.5147 GB, free: 268 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006575/0.2096, allocations: 152 kB / 0.5148 GB, free: 116 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001639/0.2112, allocations: 0.5228 MB / 0.5153 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.2126, allocations: 0.9078 MB / 0.5162 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.2149, allocations: 0.9795 MB / 0.5172 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.2193, allocations: 2.562 MB / 0.5197 GB, free: 11.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2193, allocations: 0 / 0.5197 GB, free: 11.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2193, allocations: 0 / 0.5197 GB, free: 11.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001248/0.2195, allocations: 0 / 0.5197 GB, free: 11.12 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.006545/0.226, allocations: 2.224 MB / 0.5219 GB, free: 8.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.2261, allocations: 15.89 kB / 0.5219 GB, free: 8.824 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006429/0.2267, allocations: 232.5 kB / 0.5221 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002131/0.2289, allocations: 334 kB / 0.5224 GB, free: 8.258 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00458/0.2335, allocations: 1.334 MB / 0.5237 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.2337, allocations: 102.7 kB / 0.5238 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.2348, allocations: 243.7 kB / 0.524 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00635/0.2412, allocations: 2.196 MB / 0.5262 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.2413, allocations: 15.83 kB / 0.5262 GB, free: 4.223 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/0.2416, allocations: 55.98 kB / 0.5263 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009712/0.2426, allocations: 182.8 kB / 0.5264 GB, free: 3.988 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005249/0.2479, allocations: 1.838 MB / 0.5282 GB, free: 2.145 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.3152/0.5631, allocations: 8.504 MB / 0.5365 GB, free: 47.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002859/0.566, allocations: 1.905 MB / 0.5384 GB, free: 46.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.5675, allocations: 0.7887 MB / 0.5392 GB, free: 46.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.443e-05/0.5676, allocations: 25.41 kB / 0.5392 GB, free: 46.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.5677, allocations: 47.03 kB / 0.5392 GB, free: 46.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.467e-06/0.5677, allocations: 0 / 0.5392 GB, free: 46.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.029/0.5967, allocations: 9.214 MB / 0.5482 GB, free: 42.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.5968, allocations: 102.8 kB / 0.5483 GB, free: 42.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.5987, allocations: 1.067 MB / 0.5494 GB, free: 42.13 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002895/0.599, allocations: 55.33 kB / 0.5494 GB, free: 42.08 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006188/0.5996, allocations: 0.782 MB / 0.5502 GB, free: 41.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000883/0.6005, allocations: 0.5858 MB / 0.5508 GB, free: 41.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007766/0.6013, allocations: 357 kB / 0.5511 GB, free: 40.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.711e-05/0.6014, allocations: 301.7 kB / 0.5514 GB, free: 40.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/0.6033, allocations: 0.8535 MB / 0.5522 GB, free: 40.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.6055, allocations: 1.343 MB / 0.5535 GB, free: 39.42 MB / 414.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.01363/0.6192, allocations: 5.19 MB / 0.5586 GB, free: 36.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.406e-05/0.6192, allocations: 3.312 kB / 0.5586 GB, free: 36.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009628/0.6289, allocations: 4.191 MB / 0.5627 GB, free: 33.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.629, allocations: 8 kB / 0.5627 GB, free: 33.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.664e-05/0.629, allocations: 16 kB / 0.5627 GB, free: 33.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004971/0.634, allocations: 1.617 MB / 0.5643 GB, free: 32.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.6355, allocations: 315.5 kB / 0.5646 GB, free: 31.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02688/0.6625, allocations: 20.86 MB / 0.585 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002656/0.6652, allocations: 99.98 kB / 0.5851 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004881/0.6657, allocations: 81.91 kB / 0.5851 GB, free: 10.01 MB / 414.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.001555/0.6673, allocations: 0.5457 MB / 0.5857 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005134/0.6678, allocations: 162.2 kB / 0.5858 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00691/0.6747, allocations: 2.805 MB / 0.5886 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.6748, allocations: 19.98 kB / 0.5886 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/0.6748, allocations: 4 kB / 0.5886 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.34e-05/0.6748, allocations: 11.97 kB / 0.5886 GB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.6893, allocations: 4.82 MB / 0.5933 GB, free: 1.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/0.6893, allocations: 4 kB / 0.5933 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002884/0.6922, allocations: 343.6 kB / 0.5936 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/0.6947, allocations: 0.49 MB / 0.5941 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003744/0.6951, allocations: 51.97 kB / 0.5942 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01771/0.7128, allocations: 12.75 MB / 0.6066 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.7129, allocations: 4.031 kB / 0.6066 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/0.7235, allocations: 3.706 MB / 0.6102 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/0.7252, allocations: 363.1 kB / 0.6106 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007163/0.7259, allocations: 51.97 kB / 0.6106 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/0.728, allocations: 79.92 kB / 0.6107 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005635/0.7286, allocations: 129 kB / 0.6108 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002359/0.7288, allocations: 54.61 kB / 0.6109 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002041/0.7309, allocations: 0.7061 MB / 0.6116 GB, free: 13.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7309, allocations: 0 / 0.6116 GB, free: 13.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004675/0.7356, allocations: 0.6002 MB / 0.6122 GB, free: 12.93 MB / 446.1 MB 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.01194/0.7476, allocations: 4.347 MB / 0.6164 GB, free: 8.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008744/0.7564, allocations: 3.51 MB / 0.6198 GB, free: 4.852 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.7564, allocations: 0.5625 kB / 0.6198 GB, free: 4.852 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005351/0.7618, allocations: 1.891 MB / 0.6217 GB, free: 2.875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/0.7651, allocations: 346.4 kB / 0.622 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05157/0.8167, allocations: 19.93 MB / 0.6415 GB, free: 13.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.8194, allocations: 1.637 MB / 0.6431 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00199/0.8214, allocations: 445.3 kB / 0.6435 GB, free: 11.73 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.8228, allocations: 0.7062 MB / 0.6442 GB, free: 11.02 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.8228, allocations: 0 / 0.6442 GB, free: 11.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1501/0.973, allocations: 48.88 MB / 0.6919 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.15/24.12, allocations: 0 / 0.6919 GB, free: 10.01 MB / 0.5137 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)