Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_PSGI,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001563, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001822/0.001822, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1878/0.1878, allocations: 38.04 MB / 329.7 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 65.23 kB / 398.8 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1019, allocations: 58.05 MB / 456.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01123/0.1131, allocations: 11.02 MB / 467.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.1232, allocations: 7.086 MB / 475 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009615/0.1242, allocations: 47.75 kB / 475 MB, free: 5.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0195/0.1437, allocations: 12.86 MB / 487.9 MB, free: 9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00343/0.1472, allocations: 1.12 MB / 489 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.149, allocations: 0.6862 MB / 489.7 MB, free: 7.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005126/0.1541, allocations: 4.009 MB / 493.7 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.1557, allocations: 1 MB / 494.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.1577, allocations: 1.113 MB / 495.8 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.16, allocations: 1.441 MB / 497.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005447/0.1605, allocations: 152 kB / 497.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.1617, allocations: 0.5188 MB / 497.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007734/0.1625, allocations: 0.904 MB / 498.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009329/0.1635, allocations: 0.9834 MB / 499.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.1657, allocations: 2.523 MB / 0.4905 GB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1657, allocations: 0 / 0.4905 GB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1657, allocations: 0 / 0.4905 GB, free: 10.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.1658, allocations: 0 / 0.4905 GB, free: 10.49 MB / 382.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.003917/0.1697, allocations: 2.228 MB / 0.4927 GB, free: 8.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1697, allocations: 11.89 kB / 0.4927 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001704/0.1714, allocations: 326.3 kB / 0.493 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/0.1737, allocations: 1.291 MB / 0.4943 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.208e-05/0.1737, allocations: 102.7 kB / 0.4944 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/0.1742, allocations: 231.8 kB / 0.4946 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/0.1771, allocations: 2.196 MB / 0.4968 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.1772, allocations: 7.906 kB / 0.4968 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.1773, allocations: 63.98 kB / 0.4968 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000659/0.178, allocations: 182.8 kB / 0.497 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002745/0.1808, allocations: 1.83 MB / 0.4988 GB, free: 1.816 MB / 382.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.2379/0.4187, allocations: 8.554 MB / 0.5071 GB, free: 52.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.4213, allocations: 1.909 MB / 0.509 GB, free: 51.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.4228, allocations: 0.8125 MB / 0.5098 GB, free: 51.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.47e-05/0.4229, allocations: 19.72 kB / 0.5098 GB, free: 51.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.423, allocations: 50 kB / 0.5099 GB, free: 51.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.156e-06/0.423, allocations: 1.219 kB / 0.5099 GB, free: 51.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01287/0.4358, allocations: 5.947 MB / 0.5157 GB, free: 48.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.4359, allocations: 96.08 kB / 0.5158 GB, free: 48.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001538/0.4375, allocations: 1.064 MB / 0.5168 GB, free: 47.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.911e-05/0.4376, allocations: 51.98 kB / 0.5169 GB, free: 47.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005768/0.4382, allocations: 0.792 MB / 0.5176 GB, free: 46.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.4386, allocations: 0.5212 MB / 0.5181 GB, free: 46.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000626/0.4392, allocations: 331.1 kB / 0.5185 GB, free: 46.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.305e-05/0.4393, allocations: 303.2 kB / 0.5187 GB, free: 46.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.4408, allocations: 0.7407 MB / 0.5195 GB, free: 45.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.4425, allocations: 1.222 MB / 0.5207 GB, free: 45.08 MB / 382.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.01005/0.4526, allocations: 4.345 MB / 0.5249 GB, free: 43.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.318e-05/0.4527, allocations: 4.438 kB / 0.5249 GB, free: 43.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007333/0.46, allocations: 3.979 MB / 0.5288 GB, free: 40.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.4601, allocations: 13.91 kB / 0.5288 GB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.204e-05/0.4601, allocations: 15.7 kB / 0.5288 GB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003761/0.4639, allocations: 1.461 MB / 0.5303 GB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.465, allocations: 290.5 kB / 0.5305 GB, free: 39.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01929/0.4843, allocations: 20.98 MB / 0.551 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00166/0.486, allocations: 87.84 kB / 0.5511 GB, free: 17.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.4861, allocations: 72 kB / 0.5512 GB, free: 17.91 MB / 382.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.PI.x = 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008713/0.487, allocations: 0.525 MB / 0.5517 GB, free: 17.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.4872, allocations: 148 kB / 0.5518 GB, free: 17.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/0.49, allocations: 2.212 MB / 0.554 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.49, allocations: 16 kB / 0.554 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.49, allocations: 3.938 kB / 0.554 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.49, allocations: 11.97 kB / 0.554 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005129/0.4951, allocations: 3.991 MB / 0.5579 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.4952, allocations: 0 / 0.5579 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.4967, allocations: 339.5 kB / 0.5582 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004822/0.4972, allocations: 220.2 kB / 0.5584 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4974, allocations: 43.98 kB / 0.5585 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004108/0.5015, allocations: 7.93 MB / 0.5662 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5015, allocations: 4 kB / 0.5662 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004176/0.5057, allocations: 2.925 MB / 0.5691 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007659/0.5065, allocations: 343.2 kB / 0.5694 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.5067, allocations: 47.98 kB / 0.5695 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007857/0.5075, allocations: 59.88 kB / 0.5695 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/0.5078, allocations: 109 kB / 0.5696 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-05/0.5079, allocations: 43.98 kB / 0.5697 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.5089, allocations: 0.71 MB / 0.5704 GB, free: 13.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5089, allocations: 0 / 0.5704 GB, free: 13.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002298/0.5112, allocations: 0.5463 MB / 0.5709 GB, free: 12.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,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.0004642/0.5117, allocations: 186.1 kB / 0.5711 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007571/0.5193, allocations: 4.206 MB / 0.5752 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.5193, allocations: 4 kB / 0.5752 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.5214, allocations: 1.401 MB / 0.5766 GB, free: 6.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.523, allocations: 345.7 kB / 0.5769 GB, free: 6.355 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007885/0.5309, allocations: 5.184 MB / 0.5819 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.5324, allocations: 1.58 MB / 0.5835 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001317/0.5337, allocations: 440.7 kB / 0.5839 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.534, allocations: 107.4 kB / 0.584 GB, free: 14.98 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.534, allocations: 0 / 0.584 GB, free: 14.98 MB / 414.1 MB Notification: Performance of Templates: time 0.046/0.5801, allocations: 28.35 MB / 0.6117 GB, free: 2.855 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)