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: translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 115.7 kB / 17.74 MB, free: 5.312 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.001161/0.001161, allocations: 185.6 kB / 18.67 MB, free: 4.395 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.364/1.364, allocations: 205.1 MB / 224.5 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.1712/0.1712, allocations: 37.98 MB / 309.9 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.001692/0.001692, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1179, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01241/0.1303, allocations: 10.6 MB / 498.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.1409, allocations: 6.277 MB / 0.4928 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.1422, allocations: 47.75 kB / 0.4929 GB, free: 7.352 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.01194/0.1542, allocations: 5.504 MB / 0.4982 GB, free: 1.836 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.1572, allocations: 1.077 MB / 0.4993 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.1592, allocations: 0.6472 MB / 0.4999 GB, free: 108 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004965/0.1642, allocations: 3.208 MB / 0.5031 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.166, allocations: 1.008 MB / 0.504 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002074/0.1681, allocations: 1.086 MB / 0.5051 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.1706, allocations: 1.339 MB / 0.5064 GB, free: 9.422 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005872/0.1712, allocations: 144 kB / 0.5066 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001347/0.1725, allocations: 423.5 kB / 0.507 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001219/0.1738, allocations: 0.8456 MB / 0.5078 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001924/0.1757, allocations: 0.9291 MB / 0.5087 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00337/0.1791, allocations: 2.266 MB / 0.5109 GB, free: 4.812 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1791, allocations: 0 / 0.5109 GB, free: 4.812 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1791, allocations: 4 kB / 0.5109 GB, free: 4.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001022/0.1792, allocations: 0 / 0.5109 GB, free: 4.809 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.005218/0.1845, allocations: 2.052 MB / 0.5129 GB, free: 2.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1845, allocations: 11.89 kB / 0.5129 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001793/0.1863, allocations: 282.5 kB / 0.5132 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002777/0.1891, allocations: 1.21 MB / 0.5144 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.1892, allocations: 102.6 kB / 0.5145 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006525/0.1899, allocations: 231.7 kB / 0.5147 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003985/0.1939, allocations: 2.103 MB / 0.5167 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/0.194, allocations: 11.94 kB / 0.5168 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001813/0.1942, allocations: 63.95 kB / 0.5168 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006863/0.1949, allocations: 182.6 kB / 0.517 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.1982, allocations: 1.705 MB / 0.5187 GB, free: 12.65 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.01226/0.2104, allocations: 7.902 MB / 0.5264 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.2129, allocations: 1.632 MB / 0.528 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.214, allocations: 0.6528 MB / 0.5286 GB, free: 2.043 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.379e-05/0.2141, allocations: 24.97 kB / 0.5286 GB, free: 2.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.2141, allocations: 55.5 kB / 0.5287 GB, free: 1.957 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.417e-06/0.2142, allocations: 0 / 0.5287 GB, free: 1.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.2549/0.469, allocations: 5.066 MB / 0.5336 GB, free: 51.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.4691, allocations: 104.9 kB / 0.5337 GB, free: 51.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.471, allocations: 0.9398 MB / 0.5346 GB, free: 51.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.4712, allocations: 47.64 kB / 0.5347 GB, free: 51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006276/0.4719, allocations: 0.7163 MB / 0.5354 GB, free: 50.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005462/0.4724, allocations: 0.5009 MB / 0.5359 GB, free: 50.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006599/0.4731, allocations: 305.4 kB / 0.5362 GB, free: 49.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.4732, allocations: 301.7 kB / 0.5365 GB, free: 49.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.4746, allocations: 0.7073 MB / 0.5371 GB, free: 49.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/0.4763, allocations: 1.15 MB / 0.5383 GB, free: 48.65 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.01048/0.4868, allocations: 4.082 MB / 0.5423 GB, free: 47.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.132e-05/0.4868, allocations: 4.844 kB / 0.5423 GB, free: 47.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007103/0.4939, allocations: 3.351 MB / 0.5455 GB, free: 45.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/0.494, allocations: 11.19 kB / 0.5455 GB, free: 45.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/0.494, allocations: 13.03 kB / 0.5456 GB, free: 45.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003176/0.4972, allocations: 1.204 MB / 0.5467 GB, free: 45.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.4985, allocations: 295.9 kB / 0.547 GB, free: 45.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/0.5161, allocations: 15.12 MB / 0.5618 GB, free: 35.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.5176, allocations: 89.19 kB / 0.5619 GB, free: 35.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003219/0.5179, allocations: 68 kB / 0.5619 GB, free: 35.8 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.001193/0.5191, allocations: 0.4939 MB / 0.5624 GB, free: 35.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003838/0.5195, allocations: 130.4 kB / 0.5625 GB, free: 35.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.5226, allocations: 2.022 MB / 0.5645 GB, free: 33.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.5226, allocations: 16 kB / 0.5645 GB, free: 33.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.5226, allocations: 0 / 0.5645 GB, free: 33.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.5226, allocations: 7.984 kB / 0.5645 GB, free: 33.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005889/0.5285, allocations: 3.759 MB / 0.5682 GB, free: 29.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.5286, allocations: 4 kB / 0.5682 GB, free: 29.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/0.53, allocations: 324 kB / 0.5685 GB, free: 28.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004541/0.5305, allocations: 195.2 kB / 0.5687 GB, free: 28.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/0.5307, allocations: 50.39 kB / 0.5688 GB, free: 28.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.5346, allocations: 6.669 MB / 0.5753 GB, free: 21.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.5346, allocations: 7.938 kB / 0.5753 GB, free: 21.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003507/0.5381, allocations: 2.72 MB / 0.5779 GB, free: 18.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007668/0.5389, allocations: 319.2 kB / 0.5782 GB, free: 18.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.5393, allocations: 43.98 kB / 0.5783 GB, free: 18.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009628/0.5403, allocations: 59.94 kB / 0.5783 GB, free: 18.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.5405, allocations: 101.1 kB / 0.5784 GB, free: 17.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.454e-05/0.5406, allocations: 42.92 kB / 0.5785 GB, free: 17.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009779/0.5416, allocations: 0.6283 MB / 0.5791 GB, free: 17.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5416, allocations: 4 kB / 0.5791 GB, free: 17.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002915/0.5445, allocations: 484 kB / 0.5796 GB, free: 16.82 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.0003122/0.5449, allocations: 154.4 kB / 0.5797 GB, free: 16.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004603/0.5495, allocations: 2.729 MB / 0.5824 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.5495, allocations: 7.828 kB / 0.5824 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.5511, allocations: 1.239 MB / 0.5836 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.5528, allocations: 312.4 kB / 0.5839 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007728/0.5605, allocations: 5.013 MB / 0.5888 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/0.562, allocations: 1.513 MB / 0.5903 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004686/0.5625, allocations: 107.4 kB / 0.5904 GB, free: 5.582 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5625, allocations: 0 / 0.5904 GB, free: 5.582 MB / 414.1 MB Notification: Performance of Templates: time 0.05089/0.6134, allocations: 43.16 MB / 0.6325 GB, free: 10.34 MB / 462.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (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 & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)