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.001597/0.001597, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001921/0.001921, allocations: 192 kB / 18.63 MB, free: 4.504 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.341/1.341, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.03 MB / 330.5 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 62.23 kB / 400.2 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1298, allocations: 58.07 MB / 458.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01429/0.1442, allocations: 11.01 MB / 469.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.1543, allocations: 7.082 MB / 476.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008626/0.1552, allocations: 51.69 kB / 476.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02042/0.1756, allocations: 12.87 MB / 489.3 MB, free: 8.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002941/0.1786, allocations: 1.12 MB / 490.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.1803, allocations: 0.6901 MB / 491.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.1861, allocations: 4.008 MB / 495.2 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.1875, allocations: 0.9964 MB / 496.2 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.1891, allocations: 1.121 MB / 497.3 MB, free: 288 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.1908, allocations: 1.441 MB / 498.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002323/0.1911, allocations: 148 kB / 498.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.1921, allocations: 0.5188 MB / 499.4 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007988/0.193, allocations: 0.9001 MB / 0.4886 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.194, allocations: 0.9873 MB / 0.4895 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002586/0.1966, allocations: 2.558 MB / 0.492 GB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1966, allocations: 0 / 0.492 GB, free: 9.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1966, allocations: 0 / 0.492 GB, free: 9.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.1966, allocations: 0 / 0.492 GB, free: 9.711 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.004534/0.2012, allocations: 2.225 MB / 0.4942 GB, free: 7.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2012, allocations: 11.89 kB / 0.4942 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.203, allocations: 322.3 kB / 0.4945 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.2059, allocations: 1.342 MB / 0.4958 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.2059, allocations: 110.7 kB / 0.4959 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005401/0.2065, allocations: 239.8 kB / 0.4961 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003121/0.2096, allocations: 2.188 MB / 0.4983 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/0.2097, allocations: 11.84 kB / 0.4983 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.2099, allocations: 59.97 kB / 0.4984 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006006/0.2105, allocations: 190.8 kB / 0.4985 GB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002936/0.2134, allocations: 1.826 MB / 0.5003 GB, free: 0.9805 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.2063/0.4197, allocations: 8.514 MB / 0.5086 GB, free: 52.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/0.4223, allocations: 1.904 MB / 0.5105 GB, free: 51.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.4236, allocations: 0.8077 MB / 0.5113 GB, free: 51.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.526e-05/0.4237, allocations: 25.48 kB / 0.5113 GB, free: 51.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.4238, allocations: 45.34 kB / 0.5113 GB, free: 51.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 4.088e-06/0.4238, allocations: 0 / 0.5113 GB, free: 51.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01242/0.4362, allocations: 5.936 MB / 0.5171 GB, free: 48.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.4363, allocations: 97.5 kB / 0.5172 GB, free: 48.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.4379, allocations: 1.067 MB / 0.5183 GB, free: 47.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.438, allocations: 54.2 kB / 0.5183 GB, free: 47.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004582/0.4385, allocations: 0.7818 MB / 0.5191 GB, free: 47.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.4389, allocations: 0.5254 MB / 0.5196 GB, free: 46.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004814/0.4394, allocations: 329 kB / 0.5199 GB, free: 46.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.4395, allocations: 305.1 kB / 0.5202 GB, free: 46.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4407, allocations: 0.7415 MB / 0.5209 GB, free: 45.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.442, allocations: 1.231 MB / 0.5221 GB, free: 45.18 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.00959/0.4516, allocations: 4.33 MB / 0.5264 GB, free: 43.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/0.4517, allocations: 3.969 kB / 0.5264 GB, free: 43.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006927/0.4586, allocations: 3.961 MB / 0.5302 GB, free: 40.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.4587, allocations: 15.53 kB / 0.5303 GB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.4587, allocations: 15.19 kB / 0.5303 GB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/0.4625, allocations: 1.452 MB / 0.5317 GB, free: 39.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.4636, allocations: 292.4 kB / 0.532 GB, free: 39.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/0.4832, allocations: 20.96 MB / 0.5524 GB, free: 17.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.4847, allocations: 84.05 kB / 0.5525 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.4849, allocations: 79.98 kB / 0.5526 GB, free: 17.21 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.4857, allocations: 0.5198 MB / 0.5531 GB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.4859, allocations: 151.3 kB / 0.5532 GB, free: 16.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/0.4887, allocations: 2.213 MB / 0.5554 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.4887, allocations: 19.94 kB / 0.5554 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4887, allocations: 4 kB / 0.5554 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.4887, allocations: 9.234 kB / 0.5554 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/0.4942, allocations: 3.977 MB / 0.5593 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.4943, allocations: 256 / 0.5593 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/0.4959, allocations: 351.5 kB / 0.5597 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005107/0.4964, allocations: 204 kB / 0.5598 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.4965, allocations: 51.97 kB / 0.5599 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004166/0.5007, allocations: 7.926 MB / 0.5676 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.5007, allocations: 4.031 kB / 0.5676 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004176/0.5049, allocations: 2.941 MB / 0.5705 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008296/0.5057, allocations: 331.2 kB / 0.5708 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002142/0.506, allocations: 51.98 kB / 0.5709 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007678/0.5067, allocations: 59.88 kB / 0.5709 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.507, allocations: 109 kB / 0.571 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-05/0.5071, allocations: 39.98 kB / 0.5711 GB, free: 13.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009328/0.508, allocations: 0.7139 MB / 0.5718 GB, free: 12.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.508, allocations: 0 / 0.5718 GB, free: 12.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002125/0.5102, allocations: 0.5504 MB / 0.5723 GB, free: 11.92 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.0003929/0.5106, allocations: 180.9 kB / 0.5725 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00522/0.5158, allocations: 3.274 MB / 0.5757 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5158, allocations: 0 / 0.5757 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.5178, allocations: 1.407 MB / 0.5771 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.5193, allocations: 339.2 kB / 0.5774 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/0.5267, allocations: 5.128 MB / 0.5824 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.5279, allocations: 1.588 MB / 0.5839 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001117/0.529, allocations: 440.7 kB / 0.5844 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.5293, allocations: 109.3 kB / 0.5845 GB, free: 15.29 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5294, allocations: 0 / 0.5845 GB, free: 15.29 MB / 414.1 MB Notification: Performance of Templates: time 0.04439/0.5738, allocations: 28.36 MB / 0.6122 GB, free: 3.16 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 gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)