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.001481/0.001481, allocations: 115.6 kB / 17.69 MB, free: 5.285 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.001644/0.001644, allocations: 192 kB / 18.63 MB, free: 4.352 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.348/1.348, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 59.8 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 58.06 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01246/0.1288, allocations: 11.01 MB / 469.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.1409, allocations: 7.082 MB / 476.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1423, allocations: 51.69 kB / 476.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0215/0.1639, allocations: 12.88 MB / 489.3 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.1673, allocations: 1.12 MB / 490.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002158/0.1695, allocations: 0.694 MB / 491.2 MB, free: 6.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007454/0.177, allocations: 4.005 MB / 495.2 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001627/0.1786, allocations: 1 MB / 496.2 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.1808, allocations: 1.109 MB / 497.3 MB, free: 276 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.1829, allocations: 1.452 MB / 498.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002561/0.1832, allocations: 148 kB / 498.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.1843, allocations: 0.5188 MB / 499.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008284/0.1851, allocations: 0.9001 MB / 0.4886 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.1861, allocations: 0.9834 MB / 0.4895 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00258/0.1887, allocations: 2.558 MB / 0.492 GB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1887, allocations: 4 kB / 0.492 GB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1888, allocations: 0 / 0.492 GB, free: 9.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.162e-05/0.1888, allocations: 0 / 0.492 GB, free: 9.688 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.004323/0.1931, allocations: 2.221 MB / 0.4942 GB, free: 7.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1932, allocations: 11.89 kB / 0.4942 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00165/0.1948, allocations: 334.3 kB / 0.4945 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002928/0.1978, allocations: 1.334 MB / 0.4958 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.2e-05/0.1978, allocations: 102.7 kB / 0.4959 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005383/0.1984, allocations: 235.8 kB / 0.4961 GB, free: 5.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003334/0.2017, allocations: 2.192 MB / 0.4983 GB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.774e-05/0.2018, allocations: 15.84 kB / 0.4983 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/0.2019, allocations: 59.97 kB / 0.4984 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000558/0.2025, allocations: 186.8 kB / 0.4985 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.2054, allocations: 1.827 MB / 0.5003 GB, free: 0.9648 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.263/0.4684, allocations: 8.513 MB / 0.5086 GB, free: 52.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002888/0.4713, allocations: 1.902 MB / 0.5105 GB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.473, allocations: 0.8075 MB / 0.5113 GB, free: 51.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.4732, allocations: 24.23 kB / 0.5113 GB, free: 51.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4732, allocations: 49.02 kB / 0.5114 GB, free: 51.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.507e-06/0.4732, allocations: 0 / 0.5114 GB, free: 51.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01371/0.4869, allocations: 5.937 MB / 0.5172 GB, free: 48.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.487, allocations: 93.73 kB / 0.5172 GB, free: 48.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.4886, allocations: 1.071 MB / 0.5183 GB, free: 47.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.535e-05/0.4887, allocations: 51.33 kB / 0.5183 GB, free: 47.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/0.4892, allocations: 0.7893 MB / 0.5191 GB, free: 47.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004083/0.4896, allocations: 0.5249 MB / 0.5196 GB, free: 46.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004948/0.4901, allocations: 332.4 kB / 0.5199 GB, free: 46.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.235e-05/0.4902, allocations: 306 kB / 0.5202 GB, free: 46.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.4914, allocations: 0.7371 MB / 0.5209 GB, free: 45.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.4929, allocations: 1.233 MB / 0.5222 GB, free: 45.16 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.009716/0.5026, allocations: 4.323 MB / 0.5264 GB, free: 43.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/0.5026, allocations: 3.938 kB / 0.5264 GB, free: 43.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006987/0.5096, allocations: 3.967 MB / 0.5303 GB, free: 40.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.5097, allocations: 15.59 kB / 0.5303 GB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.5097, allocations: 11.62 kB / 0.5303 GB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003632/0.5134, allocations: 1.451 MB / 0.5317 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.5145, allocations: 296.4 kB / 0.532 GB, free: 39.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01979/0.5343, allocations: 20.96 MB / 0.5524 GB, free: 17.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.5362, allocations: 83.78 kB / 0.5525 GB, free: 17.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/0.5364, allocations: 80.12 kB / 0.5526 GB, free: 17.2 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.001046/0.5375, allocations: 0.52 MB / 0.5531 GB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/0.5378, allocations: 147.1 kB / 0.5532 GB, free: 16.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.5406, allocations: 2.213 MB / 0.5554 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.5407, allocations: 16 kB / 0.5554 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.443e-06/0.5407, allocations: 7.938 kB / 0.5554 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.5407, allocations: 7.969 kB / 0.5554 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005699/0.5464, allocations: 3.982 MB / 0.5593 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5464, allocations: 0 / 0.5593 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/0.5479, allocations: 343.8 kB / 0.5597 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004723/0.5484, allocations: 208.1 kB / 0.5599 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.5485, allocations: 51.91 kB / 0.5599 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003921/0.5525, allocations: 7.925 MB / 0.5676 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.5525, allocations: 4 kB / 0.5676 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004289/0.5568, allocations: 2.93 MB / 0.5705 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.5581, allocations: 343.2 kB / 0.5708 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002546/0.5583, allocations: 48.27 kB / 0.5709 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008497/0.5592, allocations: 63.88 kB / 0.5709 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/0.5595, allocations: 109 kB / 0.571 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.5596, allocations: 53 kB / 0.5711 GB, free: 13.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.5608, allocations: 0.71 MB / 0.5718 GB, free: 12.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5608, allocations: 0 / 0.5718 GB, free: 12.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002263/0.563, allocations: 0.5426 MB / 0.5723 GB, free: 11.91 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.0003879/0.5634, allocations: 184.9 kB / 0.5725 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005435/0.5689, allocations: 3.261 MB / 0.5757 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5689, allocations: 0 / 0.5757 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.571, allocations: 1.411 MB / 0.5771 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.5726, allocations: 332.1 kB / 0.5774 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007961/0.5806, allocations: 5.139 MB / 0.5824 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/0.582, allocations: 1.584 MB / 0.5839 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001253/0.5833, allocations: 432.7 kB / 0.5844 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.5836, allocations: 115.4 kB / 0.5845 GB, free: 15.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5836, allocations: 0 / 0.5845 GB, free: 15.27 MB / 414.1 MB Notification: Performance of Templates: time 0.05003/0.6337, allocations: 28.35 MB / 0.6122 GB, free: 3.145 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 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)