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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001172/0.001172, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.171/1.171, allocations: 194.2 MB / 212.2 MB, free: 2.371 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001831/0.001831, allocations: 130.2 kB / 256.6 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1637/0.1637, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.91 kB / 401.8 MB, free: 68.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07732/0.07846, allocations: 52.19 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.00996/0.08847, allocations: 12.62 MB / 466.6 MB, free: 3.91 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.09946, allocations: 7.066 MB / 473.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.1018, allocations: 91.44 kB / 473.8 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.1124, allocations: 5.395 MB / 479.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002445/0.1148, allocations: 1.004 MB / 480.2 MB, free: 6.316 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.1164, allocations: 0.5811 MB / 480.7 MB, free: 5.734 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004846/0.1213, allocations: 4.737 MB / 485.5 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001403/0.1227, allocations: 0.8989 MB / 486.4 MB, free: 64 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.1243, allocations: 0.9258 MB / 487.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002106/0.1264, allocations: 1.417 MB / 488.7 MB, free: 13.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003839/0.1268, allocations: 92 kB / 488.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.1279, allocations: 383.5 kB / 489.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008889/0.1288, allocations: 0.8104 MB / 490 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.13, allocations: 0.8744 MB / 490.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002163/0.1322, allocations: 2.177 MB / 493 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1322, allocations: 0 / 493 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1322, allocations: 0 / 493 MB, free: 9.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.598e-05/0.1323, allocations: 0 / 493 MB, free: 9.371 MB / 346.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.00428/0.1366, allocations: 2.071 MB / 495.1 MB, free: 7.238 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1366, allocations: 12.03 kB / 495.1 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001341/0.138, allocations: 278.1 kB / 495.4 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002222/0.1402, allocations: 1.159 MB / 496.6 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.1403, allocations: 98.62 kB / 496.7 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004365/0.1408, allocations: 223.7 kB / 496.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002881/0.1436, allocations: 2.107 MB / 499 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.815e-05/0.1437, allocations: 4 kB / 499 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.1438, allocations: 59.92 kB / 499 MB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006233/0.1445, allocations: 182.7 kB / 499.2 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002626/0.1471, allocations: 1.713 MB / 0.4892 GB, free: 1.266 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.01055/0.1577, allocations: 7.961 MB / 0.497 GB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002186/0.1599, allocations: 1.612 MB / 0.4985 GB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008765/0.1608, allocations: 0.6606 MB / 0.4992 GB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.176e-05/0.1609, allocations: 24.97 kB / 0.4992 GB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.1609, allocations: 47.56 kB / 0.4993 GB, free: 6.516 MB / 362.7 MB Notification: Performance of pre-optimization done (n=127): time 3.046e-06/0.1609, allocations: 0 / 0.4993 GB, free: 6.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=139): time 0.009474/0.1704, allocations: 6.021 MB / 0.5051 GB, free: 272 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.1705, allocations: 90.42 kB / 0.5052 GB, free: 160 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1579/0.3284, allocations: 0.9349 MB / 0.5061 GB, free: 67.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002349/0.3286, allocations: 56.02 kB / 0.5062 GB, free: 67.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004282/0.3291, allocations: 0.7165 MB / 0.5069 GB, free: 66.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003486/0.3294, allocations: 0.5011 MB / 0.5074 GB, free: 66.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004052/0.3298, allocations: 306.8 kB / 0.5077 GB, free: 66.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.39e-05/0.3299, allocations: 301.9 kB / 0.508 GB, free: 66.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.331, allocations: 0.7089 MB / 0.5086 GB, free: 65.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.3322, allocations: 1.155 MB / 0.5098 GB, free: 65.21 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.009392/0.3416, allocations: 4.083 MB / 0.5138 GB, free: 63.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.3416, allocations: 3.938 kB / 0.5138 GB, free: 63.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.006019/0.3477, allocations: 3.358 MB / 0.517 GB, free: 62.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.3477, allocations: 14.69 kB / 0.5171 GB, free: 62.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/0.3477, allocations: 13.75 kB / 0.5171 GB, free: 62.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002702/0.3504, allocations: 1.18 MB / 0.5182 GB, free: 62.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3515, allocations: 301.3 kB / 0.5185 GB, free: 62.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01433/0.3659, allocations: 13.78 MB / 0.532 GB, free: 51.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.3671, allocations: 87.78 kB / 0.5321 GB, free: 51.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3672, allocations: 68 kB / 0.5321 GB, free: 51.76 MB / 362.7 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 (147): * Single equations (assignments): 143 * 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.0006623/0.3679, allocations: 0.4937 MB / 0.5326 GB, free: 51.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.368, allocations: 130.4 kB / 0.5327 GB, free: 51.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/0.3706, allocations: 2.03 MB / 0.5347 GB, free: 49.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.3706, allocations: 19.38 kB / 0.5347 GB, free: 49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3706, allocations: 0 / 0.5347 GB, free: 49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.3706, allocations: 11.97 kB / 0.5347 GB, free: 48.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.3754, allocations: 3.775 MB / 0.5384 GB, free: 45.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3754, allocations: 4 kB / 0.5384 GB, free: 45.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.3768, allocations: 327.6 kB / 0.5387 GB, free: 44.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004128/0.3772, allocations: 199.9 kB / 0.5389 GB, free: 44.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.601e-05/0.3773, allocations: 43.98 kB / 0.539 GB, free: 44.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.3804, allocations: 6.148 MB / 0.545 GB, free: 37.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3804, allocations: 4 kB / 0.545 GB, free: 37.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/0.4016, allocations: 19.86 MB / 0.5644 GB, free: 16.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005655/0.4022, allocations: 319.2 kB / 0.5647 GB, free: 16.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.4023, allocations: 51.66 kB / 0.5647 GB, free: 16.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006351/0.403, allocations: 60.12 kB / 0.5648 GB, free: 16.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.4032, allocations: 97.06 kB / 0.5649 GB, free: 16.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.107e-05/0.4033, allocations: 51.92 kB / 0.5649 GB, free: 16.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005799/0.4039, allocations: 0.6205 MB / 0.5655 GB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4039, allocations: 4 kB / 0.5655 GB, free: 15.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001733/0.4056, allocations: 0.6406 MB / 0.5662 GB, free: 15.12 MB / 362.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.phi_el,generator.w_el,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],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 (130): * Single equations (assignments): 125 * 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.0001518/0.4058, allocations: 155 kB / 0.5663 GB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003437/0.4092, allocations: 2.67 MB / 0.5689 GB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4092, allocations: 4 kB / 0.5689 GB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.4106, allocations: 1.245 MB / 0.5701 GB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.4119, allocations: 305 kB / 0.5704 GB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.4191, allocations: 6.946 MB / 0.5772 GB, free: 3.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009343/0.4201, allocations: 1.581 MB / 0.5788 GB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001264/0.4214, allocations: 439.6 kB / 0.5792 GB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.4217, allocations: 107.4 kB / 0.5793 GB, free: 1.438 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4218, allocations: 0 / 0.5793 GB, free: 1.438 MB / 362.7 MB Notification: Performance of Templates: time 0.04193/0.4637, allocations: 28.9 MB / 0.6075 GB, free: 4.547 MB / 394.7 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)