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.001323/0.001323, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.00148/0.00148, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.04 MB / 329.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 62.66 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1177, allocations: 58.07 MB / 456.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01527/0.133, allocations: 13.05 MB / 469.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.1468, allocations: 7.687 MB / 477.1 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002695/0.1496, allocations: 91.44 kB / 477.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.022/0.1716, allocations: 13.33 MB / 490.5 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003529/0.1751, allocations: 1.043 MB / 491.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001973/0.1771, allocations: 0.6319 MB / 492.2 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006474/0.1836, allocations: 4.094 MB / 496.3 MB, free: 396 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.1858, allocations: 1.047 MB / 497.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0028/0.1886, allocations: 1.132 MB / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.1911, allocations: 1.546 MB / 500 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003602/0.1915, allocations: 152 kB / 0.4884 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.1929, allocations: 0.511 MB / 0.4889 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009184/0.1938, allocations: 0.9196 MB / 0.4898 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.1949, allocations: 0.9873 MB / 0.4908 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002966/0.1979, allocations: 2.5 MB / 0.4932 GB, free: 7.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.1979, allocations: 0 / 0.4932 GB, free: 7.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1979, allocations: 3.938 kB / 0.4932 GB, free: 7.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.921e-05/0.198, allocations: 0 / 0.4932 GB, free: 7.543 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.004909/0.2029, allocations: 2.228 MB / 0.4954 GB, free: 5.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.203, allocations: 15.83 kB / 0.4954 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/0.2049, allocations: 330.3 kB / 0.4957 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002643/0.2075, allocations: 1.276 MB / 0.497 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.391e-05/0.2076, allocations: 110.7 kB / 0.4971 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005535/0.2082, allocations: 231.8 kB / 0.4973 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003394/0.2116, allocations: 2.188 MB / 0.4994 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.599e-05/0.2117, allocations: 15.89 kB / 0.4995 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/0.2118, allocations: 63.97 kB / 0.4995 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006323/0.2125, allocations: 182.8 kB / 0.4997 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2611/0.4736, allocations: 1.827 MB / 0.5015 GB, free: 57.11 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.01351/0.4872, allocations: 8.577 MB / 0.5098 GB, free: 52.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/0.4905, allocations: 1.898 MB / 0.5117 GB, free: 50.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.4922, allocations: 0.8058 MB / 0.5125 GB, free: 50.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.4923, allocations: 23.92 kB / 0.5125 GB, free: 50.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4924, allocations: 46.7 kB / 0.5126 GB, free: 50.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.316e-06/0.4924, allocations: 3.938 kB / 0.5126 GB, free: 50.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.0134/0.5058, allocations: 5.943 MB / 0.5184 GB, free: 47.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.5059, allocations: 99.92 kB / 0.5185 GB, free: 47.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.5074, allocations: 1.066 MB / 0.5195 GB, free: 47.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.2e-05/0.5075, allocations: 51.2 kB / 0.5195 GB, free: 47.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.5079, allocations: 0.7872 MB / 0.5203 GB, free: 46.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003874/0.5083, allocations: 0.5243 MB / 0.5208 GB, free: 46.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004908/0.5088, allocations: 327.5 kB / 0.5211 GB, free: 45.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.5089, allocations: 301.1 kB / 0.5214 GB, free: 45.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.51, allocations: 0.7431 MB / 0.5222 GB, free: 45.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.5113, allocations: 1.231 MB / 0.5234 GB, free: 44.59 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.009531/0.5209, allocations: 4.344 MB / 0.5276 GB, free: 42.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/0.5209, allocations: 3.938 kB / 0.5276 GB, free: 42.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006942/0.5279, allocations: 3.972 MB / 0.5315 GB, free: 39.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.5279, allocations: 12 kB / 0.5315 GB, free: 39.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/0.528, allocations: 16.69 kB / 0.5315 GB, free: 39.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00367/0.5316, allocations: 1.464 MB / 0.5329 GB, free: 37.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.5327, allocations: 290.8 kB / 0.5332 GB, free: 37.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01935/0.5521, allocations: 20.98 MB / 0.5537 GB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.5535, allocations: 79.84 kB / 0.5538 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.5537, allocations: 83.98 kB / 0.5539 GB, free: 15.62 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.0008293/0.5545, allocations: 0.522 MB / 0.5544 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/0.5547, allocations: 142.2 kB / 0.5545 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/0.5576, allocations: 2.22 MB / 0.5567 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.5576, allocations: 16 kB / 0.5567 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.5576, allocations: 4 kB / 0.5567 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5576, allocations: 3.984 kB / 0.5567 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.5628, allocations: 3.989 MB / 0.5606 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.5628, allocations: 0 / 0.5606 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/0.5645, allocations: 343.8 kB / 0.5609 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000492/0.565, allocations: 212 kB / 0.5611 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5651, allocations: 51.91 kB / 0.5612 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004101/0.5692, allocations: 7.934 MB / 0.5689 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5692, allocations: 4.031 kB / 0.5689 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004364/0.5736, allocations: 2.924 MB / 0.5718 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007765/0.5744, allocations: 335.2 kB / 0.5721 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/0.5746, allocations: 47.98 kB / 0.5721 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008122/0.5755, allocations: 63.84 kB / 0.5722 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/0.5758, allocations: 105.1 kB / 0.5723 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-05/0.5759, allocations: 39.98 kB / 0.5723 GB, free: 11.6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.577, allocations: 0.7139 MB / 0.573 GB, free: 10.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.577, allocations: 0 / 0.573 GB, free: 10.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002114/0.5791, allocations: 0.5443 MB / 0.5736 GB, free: 10.34 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.0004328/0.5796, allocations: 191.2 kB / 0.5738 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007583/0.5872, allocations: 4.205 MB / 0.5779 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.5872, allocations: 3.938 kB / 0.5779 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.5894, allocations: 1.407 MB / 0.5792 GB, free: 4.402 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.5911, allocations: 330.4 kB / 0.5796 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008618/0.5997, allocations: 5.88 MB / 0.5853 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.6012, allocations: 1.587 MB / 0.5869 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001439/0.6026, allocations: 436.7 kB / 0.5873 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.603, allocations: 115.4 kB / 0.5874 GB, free: 12.01 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.603, allocations: 0 / 0.5874 GB, free: 12.01 MB / 414.1 MB Notification: Performance of Templates: time 0.04686/0.6499, allocations: 28.33 MB / 0.615 GB, free: 15.91 MB / 446.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)