Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,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_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,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_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001005/0.001005, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.297/1.297, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1662/0.1662, allocations: 38.04 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 67.22 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1235, allocations: 58.05 MB / 456.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.0156/0.1392, allocations: 12.98 MB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.1543, allocations: 7.902 MB / 477 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00312/0.1574, allocations: 87.44 kB / 477.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02435/0.1818, allocations: 13.03 MB / 490.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003201/0.185, allocations: 1.058 MB / 491.2 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001908/0.187, allocations: 0.5889 MB / 491.8 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007678/0.1947, allocations: 5.553 MB / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001801/0.1965, allocations: 0.895 MB / 498.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002099/0.1986, allocations: 0.9218 MB / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002723/0.2013, allocations: 1.484 MB / 0.4889 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005504/0.2019, allocations: 95.94 kB / 0.489 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001389/0.2033, allocations: 487.2 kB / 0.4895 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.2047, allocations: 0.8338 MB / 0.4903 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.2066, allocations: 0.8976 MB / 0.4912 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003155/0.2097, allocations: 2.406 MB / 0.4935 GB, free: 7.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.2098, allocations: 0 / 0.4935 GB, free: 7.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2098, allocations: 0 / 0.4935 GB, free: 7.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001194/0.2099, allocations: 8 kB / 0.4935 GB, free: 7.152 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005696/0.2156, allocations: 2.15 MB / 0.4956 GB, free: 4.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.2157, allocations: 8.031 kB / 0.4956 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.2176, allocations: 314.4 kB / 0.4959 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002862/0.2205, allocations: 1.241 MB / 0.4971 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.159e-05/0.2206, allocations: 102.7 kB / 0.4972 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000654/0.2212, allocations: 227.8 kB / 0.4974 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003483/0.2247, allocations: 2.149 MB / 0.4995 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/0.2248, allocations: 15.78 kB / 0.4996 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/0.225, allocations: 63.91 kB / 0.4996 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000634/0.2256, allocations: 182.7 kB / 0.4998 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2213/0.4469, allocations: 1.756 MB / 0.5015 GB, free: 57.44 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.01342/0.4603, allocations: 8.613 MB / 0.5099 GB, free: 52.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.463, allocations: 1.818 MB / 0.5117 GB, free: 51.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.4648, allocations: 0.7811 MB / 0.5125 GB, free: 50.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.4649, allocations: 15.09 kB / 0.5125 GB, free: 50.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.465, allocations: 44.73 kB / 0.5125 GB, free: 50.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.848e-06/0.465, allocations: 4.875 kB / 0.5125 GB, free: 50.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01204/0.477, allocations: 5.452 MB / 0.5178 GB, free: 48.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.4771, allocations: 92.44 kB / 0.5179 GB, free: 48.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.4787, allocations: 1.032 MB / 0.5189 GB, free: 47.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.532e-05/0.4788, allocations: 47.33 kB / 0.519 GB, free: 47.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005371/0.4794, allocations: 0.7682 MB / 0.5197 GB, free: 46.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/0.4797, allocations: 0.5063 MB / 0.5202 GB, free: 46.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004658/0.4802, allocations: 313.1 kB / 0.5205 GB, free: 46.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.4803, allocations: 310.2 kB / 0.5208 GB, free: 46.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.4815, allocations: 0.7163 MB / 0.5215 GB, free: 45.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.4831, allocations: 1.183 MB / 0.5227 GB, free: 45.14 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.01145/0.4945, allocations: 4.992 MB / 0.5276 GB, free: 42.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.4946, allocations: 7.938 kB / 0.5276 GB, free: 42.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006548/0.5011, allocations: 3.59 MB / 0.5311 GB, free: 39.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.5012, allocations: 15.94 kB / 0.5311 GB, free: 39.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/0.5012, allocations: 12 kB / 0.5311 GB, free: 39.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003523/0.5047, allocations: 1.258 MB / 0.5323 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.5059, allocations: 319.5 kB / 0.5326 GB, free: 38.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01551/0.5214, allocations: 14.65 MB / 0.5469 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.5232, allocations: 72.11 kB / 0.547 GB, free: 22.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.5233, allocations: 75.98 kB / 0.5471 GB, free: 22.88 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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: 63 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0009838/0.5243, allocations: 0.5148 MB / 0.5476 GB, free: 22.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.5246, allocations: 138.3 kB / 0.5477 GB, free: 22.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002782/0.5274, allocations: 2.146 MB / 0.5498 GB, free: 19.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.5274, allocations: 12 kB / 0.5498 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.5274, allocations: 4 kB / 0.5498 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.5274, allocations: 7.969 kB / 0.5498 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005464/0.5329, allocations: 3.847 MB / 0.5536 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.495e-06/0.5329, allocations: 11.69 kB / 0.5536 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/0.5345, allocations: 315.6 kB / 0.5539 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/0.535, allocations: 212.9 kB / 0.5541 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.5351, allocations: 43.98 kB / 0.5541 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00372/0.5389, allocations: 7.312 MB / 0.5613 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5389, allocations: 7.938 kB / 0.5613 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003604/0.5425, allocations: 2.825 MB / 0.5641 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005799/0.5431, allocations: 331.3 kB / 0.5644 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.5433, allocations: 39.98 kB / 0.5644 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007277/0.544, allocations: 55.95 kB / 0.5645 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.5442, allocations: 101 kB / 0.5646 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.892e-05/0.5443, allocations: 39.98 kB / 0.5646 GB, free: 3.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007601/0.5451, allocations: 0.6931 MB / 0.5653 GB, free: 3.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5451, allocations: 0 / 0.5653 GB, free: 3.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001768/0.5469, allocations: 0.5115 MB / 0.5658 GB, free: 2.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,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]) * 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 (126): * Single equations (assignments): 120 * 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.0003358/0.5472, allocations: 185.9 kB / 0.5659 GB, free: 2.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004303/0.5515, allocations: 2.813 MB / 0.5687 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.5516, allocations: 4 kB / 0.5687 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.5538, allocations: 1.372 MB / 0.57 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.5554, allocations: 299.3 kB / 0.5703 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008535/0.5639, allocations: 5.709 MB / 0.5759 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001358/0.5653, allocations: 1.545 MB / 0.5774 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001296/0.5666, allocations: 444.1 kB / 0.5778 GB, free: 6.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.567, allocations: 99.42 kB / 0.5779 GB, free: 6.055 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.567, allocations: 0 / 0.5779 GB, free: 6.055 MB / 398.1 MB Notification: Performance of Templates: time 0.04175/0.6087, allocations: 25.67 MB / 0.603 GB, free: 12.57 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)