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.001123/0.001123, allocations: 110.6 kB / 17.06 MB, free: 5.98 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.001297/0.001297, allocations: 195 kB / 18 MB, free: 5.066 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.344/1.344, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1746/0.1746, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001417/0.001417, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09797, allocations: 55.25 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01198/0.11, allocations: 11.02 MB / 497.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.1211, allocations: 7.128 MB / 0.4929 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.1223, allocations: 47.75 kB / 0.493 GB, free: 6.574 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.01939/0.1417, allocations: 12.85 MB / 0.5055 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.1444, allocations: 1.116 MB / 0.5066 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.1461, allocations: 0.694 MB / 0.5073 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005145/0.1513, allocations: 4.008 MB / 0.5112 GB, free: 3.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.1528, allocations: 0.9886 MB / 0.5122 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.1546, allocations: 1.132 MB / 0.5133 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002014/0.1566, allocations: 1.433 MB / 0.5147 GB, free: 288 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.1569, allocations: 155.9 kB / 0.5148 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008697/0.1578, allocations: 0.5227 MB / 0.5153 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007235/0.1585, allocations: 0.904 MB / 0.5162 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008864/0.1594, allocations: 0.9795 MB / 0.5172 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002266/0.1617, allocations: 2.566 MB / 0.5197 GB, free: 11.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1617, allocations: 0 / 0.5197 GB, free: 11.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1617, allocations: 0 / 0.5197 GB, free: 11.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.203e-05/0.1617, allocations: 0 / 0.5197 GB, free: 11.14 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.004039/0.1658, allocations: 2.228 MB / 0.5219 GB, free: 8.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1658, allocations: 15.89 kB / 0.5219 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002526/0.1661, allocations: 232.5 kB / 0.5221 GB, free: 8.598 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/0.1677, allocations: 330.1 kB / 0.5224 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002708/0.1704, allocations: 1.338 MB / 0.5237 GB, free: 6.891 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.1705, allocations: 106.7 kB / 0.5238 GB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005052/0.171, allocations: 239.8 kB / 0.524 GB, free: 6.551 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002972/0.174, allocations: 2.2 MB / 0.5262 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.013e-05/0.1741, allocations: 7.906 kB / 0.5262 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001314/0.1742, allocations: 55.98 kB / 0.5262 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006171/0.1748, allocations: 186.8 kB / 0.5264 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002754/0.1776, allocations: 1.838 MB / 0.5282 GB, free: 2.156 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.2251/0.4027, allocations: 8.494 MB / 0.5365 GB, free: 47.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.4053, allocations: 1.91 MB / 0.5384 GB, free: 46.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.4067, allocations: 0.7884 MB / 0.5392 GB, free: 46.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.613e-05/0.4068, allocations: 21.77 kB / 0.5392 GB, free: 46.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.4068, allocations: 44.91 kB / 0.5392 GB, free: 46.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.036e-06/0.4068, allocations: 5.031 kB / 0.5392 GB, free: 46.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=165): time 0.0238/0.4306, allocations: 9.211 MB / 0.5482 GB, free: 42.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.4307, allocations: 95.7 kB / 0.5483 GB, free: 42.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.4322, allocations: 1.069 MB / 0.5494 GB, free: 42.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.146e-05/0.4323, allocations: 53.75 kB / 0.5494 GB, free: 42.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/0.4328, allocations: 0.7859 MB / 0.5502 GB, free: 41.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004028/0.4333, allocations: 0.5892 MB / 0.5507 GB, free: 41.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005344/0.4338, allocations: 356 kB / 0.5511 GB, free: 40.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.4339, allocations: 309.1 kB / 0.5514 GB, free: 40.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.4352, allocations: 0.8533 MB / 0.5522 GB, free: 40.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.4367, allocations: 1.339 MB / 0.5535 GB, free: 39.45 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.01182/0.4485, allocations: 5.192 MB / 0.5586 GB, free: 36.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.4486, allocations: 8.359 kB / 0.5586 GB, free: 36.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.007758/0.4563, allocations: 4.184 MB / 0.5627 GB, free: 33.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.4564, allocations: 12 kB / 0.5627 GB, free: 33.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.4564, allocations: 16 kB / 0.5627 GB, free: 33.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003901/0.4603, allocations: 1.611 MB / 0.5643 GB, free: 32.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.4614, allocations: 318.8 kB / 0.5646 GB, free: 31.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0203/0.4817, allocations: 20.87 MB / 0.585 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.4832, allocations: 91.92 kB / 0.5851 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.4834, allocations: 88.81 kB / 0.5851 GB, free: 10.04 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.0009197/0.4843, allocations: 0.5432 MB / 0.5857 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.4845, allocations: 150.3 kB / 0.5858 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004176/0.4887, allocations: 2.809 MB / 0.5886 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.4888, allocations: 16 kB / 0.5886 GB, free: 6.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.4888, allocations: 7.938 kB / 0.5886 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4888, allocations: 15.8 kB / 0.5886 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007229/0.496, allocations: 4.826 MB / 0.5933 GB, free: 1.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/0.496, allocations: 4 kB / 0.5933 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/0.4976, allocations: 339.5 kB / 0.5936 GB, free: 1.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001269/0.4988, allocations: 0.4937 MB / 0.5941 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.499, allocations: 55.97 kB / 0.5942 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01175/0.5107, allocations: 12.75 MB / 0.6066 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.5107, allocations: 4 kB / 0.6066 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006565/0.5173, allocations: 3.709 MB / 0.6102 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008749/0.5182, allocations: 363.1 kB / 0.6106 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.5184, allocations: 51.92 kB / 0.6106 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000857/0.5193, allocations: 71.92 kB / 0.6107 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003109/0.5196, allocations: 133 kB / 0.6108 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.5197, allocations: 47.98 kB / 0.6109 GB, free: 14.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001127/0.5208, allocations: 0.7139 MB / 0.6116 GB, free: 13.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5209, allocations: 0 / 0.6116 GB, free: 13.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002259/0.5231, allocations: 0.5959 MB / 0.6122 GB, free: 12.96 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.006519/0.5296, allocations: 4.34 MB / 0.6164 GB, free: 8.469 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006569/0.5362, allocations: 3.515 MB / 0.6198 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5362, allocations: 0 / 0.6198 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002978/0.5392, allocations: 1.884 MB / 0.6217 GB, free: 2.918 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.5408, allocations: 356.6 kB / 0.622 GB, free: 2.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/0.5755, allocations: 19.92 MB / 0.6415 GB, free: 13.88 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.5771, allocations: 1.637 MB / 0.6431 GB, free: 12.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.5784, allocations: 445.3 kB / 0.6435 GB, free: 11.77 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009793/0.5794, allocations: 0.7063 MB / 0.6442 GB, free: 11.06 MB / 478.1 MB Notification: Performance of SimCode: time 1.493e-06/0.5794, allocations: 0 / 0.6442 GB, free: 11.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/0.6893, allocations: 48.89 MB / 0.6919 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.3, allocations: 0 / 0.6919 GB, free: 10.05 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)