Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009407/0.0009409, allocations: 171.9 kB / 16.07 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007291/0.0007291, allocations: 91.64 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1595/0.1595, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003185, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2337, allocations: 56.32 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.009182/0.2429, allocations: 11.42 MB / 491 MB, free: 1.344 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009707/0.2527, allocations: 6.464 MB / 497.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.2543, allocations: 84.06 kB / 497.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009848/0.2642, allocations: 4.862 MB / 0.4907 GB, free: 11.32 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.2677, allocations: 1.127 MB / 0.4918 GB, free: 10.43 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.2699, allocations: 0.6584 MB / 0.4924 GB, free: 9.941 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004825/0.2747, allocations: 3.801 MB / 0.4961 GB, free: 7.809 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.2772, allocations: 1.296 MB / 0.4974 GB, free: 6.934 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.2792, allocations: 0.8947 MB / 0.4983 GB, free: 6.461 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002367/0.2816, allocations: 1.327 MB / 0.4996 GB, free: 5.781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003975/0.282, allocations: 78.78 kB / 0.4996 GB, free: 5.777 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.2832, allocations: 355.2 kB / 0.5 GB, free: 5.629 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.2843, allocations: 0.7917 MB / 0.5008 GB, free: 5.152 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.2857, allocations: 0.8133 MB / 0.5015 GB, free: 4.379 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001641/0.2873, allocations: 1.691 MB / 0.5032 GB, free: 2.684 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2873, allocations: 0 / 0.5032 GB, free: 2.684 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2874, allocations: 0 / 0.5032 GB, free: 2.684 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.2874, allocations: 0 / 0.5032 GB, free: 2.684 MB / 330.7 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.003097/0.2905, allocations: 1.752 MB / 0.5049 GB, free: 0.8711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2905, allocations: 8.031 kB / 0.5049 GB, free: 0.8633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.2918, allocations: 282.5 kB / 0.5052 GB, free: 0.5859 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.2938, allocations: 1.152 MB / 0.5063 GB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/0.2939, allocations: 106.5 kB / 0.5064 GB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000446/0.2944, allocations: 219.7 kB / 0.5066 GB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/0.2973, allocations: 2.103 MB / 0.5087 GB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/0.2973, allocations: 7.938 kB / 0.5087 GB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.2975, allocations: 63.92 kB / 0.5087 GB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005724/0.2981, allocations: 182.7 kB / 0.5089 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00266/0.3007, allocations: 1.709 MB / 0.5106 GB, free: 10.9 MB / 346.7 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.01027/0.311, allocations: 7.968 MB / 0.5184 GB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.3134, allocations: 1.627 MB / 0.52 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009701/0.3143, allocations: 0.6567 MB / 0.5206 GB, free: 220 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.55e-05/0.3144, allocations: 24.91 kB / 0.5206 GB, free: 196 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.3145, allocations: 47.56 kB / 0.5207 GB, free: 140 kB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 3.637e-06/0.3145, allocations: 0 / 0.5207 GB, free: 140 kB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.008482/0.323, allocations: 5.115 MB / 0.5257 GB, free: 10.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.3231, allocations: 94.36 kB / 0.5258 GB, free: 10.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.3241, allocations: 0.9308 MB / 0.5267 GB, free: 9.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.123e-05/0.3242, allocations: 49.7 kB / 0.5267 GB, free: 9.723 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004607/0.3247, allocations: 0.7249 MB / 0.5274 GB, free: 8.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.325, allocations: 0.4967 MB / 0.5279 GB, free: 8.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.876e-05/0.3251, allocations: 36 kB / 0.5279 GB, free: 8.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3253, allocations: 373.9 kB / 0.5283 GB, free: 8.074 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.3264, allocations: 0.7105 MB / 0.529 GB, free: 7.363 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.3277, allocations: 1.147 MB / 0.5301 GB, free: 6.027 MB / 362.7 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.009232/0.337, allocations: 4.082 MB / 0.5341 GB, free: 1.773 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.337, allocations: 4 kB / 0.5341 GB, free: 1.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006091/0.3431, allocations: 3.343 MB / 0.5374 GB, free: 14.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3432, allocations: 15.98 kB / 0.5374 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.3432, allocations: 12 kB / 0.5374 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002752/0.3459, allocations: 1.188 MB / 0.5385 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.3471, allocations: 307.5 kB / 0.5388 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01673/0.3639, allocations: 13.8 MB / 0.5523 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.3649, allocations: 83.94 kB / 0.5524 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.3651, allocations: 68 kB / 0.5525 GB, free: 14.36 MB / 394.7 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 rotor.A = 3.141592653589793 * rotor.R ^ 2.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 18} * Non-linear torn systems: 2 {3 15,21 20} Notification: Performance of prepare postOptimizeDAE: time 0.0008092/0.3659, allocations: 0.4972 MB / 0.5529 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.3661, allocations: 134.3 kB / 0.5531 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003018/0.3691, allocations: 2.03 MB / 0.5551 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.3691, allocations: 12 kB / 0.5551 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3691, allocations: 4 kB / 0.5551 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.3692, allocations: 7.969 kB / 0.5551 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005683/0.3749, allocations: 3.783 MB / 0.5588 GB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3749, allocations: 4 kB / 0.5588 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/0.3764, allocations: 323.6 kB / 0.5591 GB, free: 7.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004674/0.3769, allocations: 191.3 kB / 0.5593 GB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.377, allocations: 47.92 kB / 0.5593 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/0.3817, allocations: 6.15 MB / 0.5653 GB, free: 392 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3817, allocations: 4 kB / 0.5653 GB, free: 388 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003774/0.3855, allocations: 2.724 MB / 0.568 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005323/0.386, allocations: 315.4 kB / 0.5683 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.3862, allocations: 55.86 kB / 0.5683 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.3869, allocations: 59.94 kB / 0.5684 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.3871, allocations: 101.1 kB / 0.5685 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.3872, allocations: 39.98 kB / 0.5685 GB, free: 12.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007638/0.3879, allocations: 0.6166 MB / 0.5691 GB, free: 12.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.523e-06/0.3879, allocations: 112 / 0.5691 GB, free: 12.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001512/0.3895, allocations: 491.9 kB / 0.5696 GB, free: 11.84 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 10,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002039/0.3897, allocations: 162.7 kB / 0.5698 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.3938, allocations: 2.681 MB / 0.5724 GB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3938, allocations: 3.938 kB / 0.5724 GB, free: 8.938 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.3954, allocations: 1.237 MB / 0.5736 GB, free: 7.652 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.3971, allocations: 297.8 kB / 0.5739 GB, free: 7.359 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007287/0.4044, allocations: 5.992 MB / 0.5797 GB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4055, allocations: 1.525 MB / 0.5812 GB, free: 15.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.406, allocations: 103.4 kB / 0.5813 GB, free: 15.62 MB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/0.406, allocations: 0 / 0.5813 GB, free: 15.62 MB / 426.7 MB Notification: Performance of Templates: time 0.04562/0.4516, allocations: 42.83 MB / 0.6231 GB, free: 4.715 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & ./PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)