Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.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_DFIG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG",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.001041/0.001041, allocations: 111 kB / 17.06 MB, free: 5.965 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.001141/0.001141, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.297/1.297, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1813/0.1813, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.001573/0.001573, allocations: 68.47 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.09744, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.0124/0.1099, allocations: 10.59 MB / 497.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1207, allocations: 6.293 MB / 0.4917 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.122, allocations: 47.75 kB / 0.4917 GB, free: 7.848 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.0121/0.1341, allocations: 5.504 MB / 0.4971 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003339/0.1375, allocations: 1.069 MB / 0.4981 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.1395, allocations: 0.6511 MB / 0.4988 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005192/0.1447, allocations: 3.208 MB / 0.5019 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.1467, allocations: 1.004 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002048/0.1488, allocations: 1.074 MB / 0.5039 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.1515, allocations: 1.343 MB / 0.5053 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005769/0.1521, allocations: 144 kB / 0.5054 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001355/0.1535, allocations: 427.5 kB / 0.5058 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.1547, allocations: 0.8456 MB / 0.5066 GB, free: 8.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00163/0.1564, allocations: 0.9369 MB / 0.5075 GB, free: 7.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003152/0.1595, allocations: 2.262 MB / 0.5098 GB, free: 5.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1595, allocations: 0 / 0.5098 GB, free: 5.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1596, allocations: 0 / 0.5098 GB, free: 5.316 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.55e-05/0.1597, allocations: 0 / 0.5098 GB, free: 5.316 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005645/0.1653, allocations: 2.06 MB / 0.5118 GB, free: 3.195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.1654, allocations: 11.89 kB / 0.5118 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005289/0.1659, allocations: 228 kB / 0.512 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/0.1679, allocations: 278.5 kB / 0.5123 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/0.1712, allocations: 1.202 MB / 0.5134 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.932e-05/0.1713, allocations: 106.6 kB / 0.5135 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006589/0.172, allocations: 227.7 kB / 0.5138 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0039/0.1759, allocations: 2.111 MB / 0.5158 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.174e-05/0.176, allocations: 11.94 kB / 0.5158 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001552/0.1761, allocations: 51.98 kB / 0.5159 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006794/0.1768, allocations: 182.6 kB / 0.516 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.1801, allocations: 1.713 MB / 0.5177 GB, free: 12.93 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.01262/0.1928, allocations: 7.91 MB / 0.5254 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/0.1952, allocations: 1.62 MB / 0.527 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.1962, allocations: 0.6684 MB / 0.5277 GB, free: 2.305 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.356e-05/0.1963, allocations: 16.98 kB / 0.5277 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.1964, allocations: 51.5 kB / 0.5277 GB, free: 2.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.266e-06/0.1964, allocations: 0 / 0.5277 GB, free: 2.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.2198/0.4162, allocations: 5.078 MB / 0.5327 GB, free: 51.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.4163, allocations: 94.14 kB / 0.5328 GB, free: 51.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.4175, allocations: 0.9313 MB / 0.5337 GB, free: 50.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.4176, allocations: 54.45 kB / 0.5338 GB, free: 50.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004182/0.418, allocations: 0.7199 MB / 0.5345 GB, free: 50.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.4183, allocations: 0.4995 MB / 0.5349 GB, free: 49.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004281/0.4188, allocations: 305.6 kB / 0.5352 GB, free: 49.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.4188, allocations: 307.2 kB / 0.5355 GB, free: 49.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.4199, allocations: 0.7067 MB / 0.5362 GB, free: 49.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.4212, allocations: 1.154 MB / 0.5373 GB, free: 48.43 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.009826/0.431, allocations: 4.074 MB / 0.5413 GB, free: 46.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.431, allocations: 3.969 kB / 0.5413 GB, free: 46.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006481/0.4375, allocations: 3.355 MB / 0.5446 GB, free: 45.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.4376, allocations: 11.67 kB / 0.5446 GB, free: 45.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/0.4376, allocations: 17.47 kB / 0.5446 GB, free: 45.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00289/0.4405, allocations: 1.193 MB / 0.5458 GB, free: 45.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.4417, allocations: 298.6 kB / 0.5461 GB, free: 45.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01549/0.4572, allocations: 15.13 MB / 0.5609 GB, free: 35.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.4584, allocations: 74.56 kB / 0.5609 GB, free: 35.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.4585, allocations: 65.47 kB / 0.561 GB, free: 35.74 MB / 414.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 $DER.inertia.w = 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: 60 * 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 (146): * Single equations (assignments): 142 * 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 {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007255/0.4592, allocations: 0.503 MB / 0.5615 GB, free: 35.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.4594, allocations: 131.3 kB / 0.5616 GB, free: 35.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.462, allocations: 2.014 MB / 0.5636 GB, free: 33.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.462, allocations: 16 kB / 0.5636 GB, free: 33.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.462, allocations: 0 / 0.5636 GB, free: 33.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.462, allocations: 19.25 kB / 0.5636 GB, free: 33.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005113/0.4672, allocations: 3.756 MB / 0.5673 GB, free: 29.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.4672, allocations: 4 kB / 0.5673 GB, free: 29.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/0.4687, allocations: 324.9 kB / 0.5676 GB, free: 28.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004249/0.4691, allocations: 193.5 kB / 0.5678 GB, free: 28.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.697e-05/0.4692, allocations: 47.98 kB / 0.5678 GB, free: 28.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003629/0.4729, allocations: 6.665 MB / 0.5743 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4729, allocations: 7.938 kB / 0.5743 GB, free: 21.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003326/0.4762, allocations: 2.723 MB / 0.577 GB, free: 18.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006628/0.4769, allocations: 311.3 kB / 0.5773 GB, free: 18.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.4771, allocations: 51.92 kB / 0.5773 GB, free: 18.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.4777, allocations: 55.94 kB / 0.5774 GB, free: 18.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.4779, allocations: 97.12 kB / 0.5775 GB, free: 17.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.478, allocations: 51.92 kB / 0.5775 GB, free: 17.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006615/0.4787, allocations: 0.6205 MB / 0.5782 GB, free: 17.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4787, allocations: 0 / 0.5782 GB, free: 17.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001639/0.4803, allocations: 488 kB / 0.5786 GB, free: 16.81 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,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],inertia.phi,inertia.w,meterDC.pav,inverter2.vDC1) * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 4 systems {(1,10,100.0%), (1,1,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.003388/0.4837, allocations: 3.313 MB / 0.5819 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003897/0.4877, allocations: 2.723 MB / 0.5845 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4877, allocations: 0 / 0.5845 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.4891, allocations: 1.242 MB / 0.5857 GB, free: 9.301 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.4905, allocations: 321.7 kB / 0.586 GB, free: 8.988 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02476/0.5153, allocations: 17.29 MB / 0.6029 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.5167, allocations: 1.525 MB / 0.6044 GB, free: 5.535 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001162/0.5179, allocations: 395.6 kB / 0.6048 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000793/0.5187, allocations: 0.6282 MB / 0.6054 GB, free: 4.516 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5187, allocations: 0 / 0.6054 GB, free: 4.516 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08744/0.6062, allocations: 39.97 MB / 0.6444 GB, free: 12.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.56, allocations: 11.84 kB / 0.6444 GB, free: 12.42 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)