Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001465/0.001465, allocations: 101.9 kB / 16.5 MB, free: 6.688 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.00179/0.00179, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.354/1.354, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1686/0.1686, allocations: 38.02 MB / 329.3 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.91 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1276, allocations: 58.06 MB / 456.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01454/0.1422, allocations: 12.97 MB / 469.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01445/0.1567, allocations: 7.909 MB / 477 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002218/0.159, allocations: 91.38 kB / 477.1 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02209/0.1811, allocations: 13.02 MB / 490.1 MB, free: 6.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003438/0.1845, allocations: 1.055 MB / 491.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.1864, allocations: 0.5811 MB / 491.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007002/0.1934, allocations: 5.557 MB / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.195, allocations: 0.9028 MB / 498.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.1967, allocations: 0.9101 MB / 499.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001905/0.1987, allocations: 1.484 MB / 0.4889 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000221/0.1989, allocations: 96 kB / 0.489 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001027/0.1999, allocations: 487.2 kB / 0.4894 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007501/0.2007, allocations: 0.8454 MB / 0.4903 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009015/0.2016, allocations: 0.8976 MB / 0.4911 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.2038, allocations: 2.399 MB / 0.4935 GB, free: 7.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2038, allocations: 0 / 0.4935 GB, free: 7.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.2038, allocations: 0 / 0.4935 GB, free: 7.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.513e-05/0.2039, allocations: 0 / 0.4935 GB, free: 7.164 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.004769/0.2087, allocations: 2.154 MB / 0.4956 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.2087, allocations: 15.97 kB / 0.4956 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.2104, allocations: 318.4 kB / 0.4959 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.2128, allocations: 1.241 MB / 0.4971 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.341e-05/0.2129, allocations: 98.66 kB / 0.4972 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005315/0.2135, allocations: 235.8 kB / 0.4974 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003337/0.2168, allocations: 2.153 MB / 0.4995 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.2169, allocations: 11.84 kB / 0.4996 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001543/0.217, allocations: 55.97 kB / 0.4996 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006207/0.2177, allocations: 182.7 kB / 0.4998 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2533/0.471, allocations: 1.752 MB / 0.5015 GB, free: 57.82 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.01272/0.4838, allocations: 8.615 MB / 0.5099 GB, free: 52.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/0.4864, allocations: 1.819 MB / 0.5117 GB, free: 51.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.4879, allocations: 0.7716 MB / 0.5124 GB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.266e-05/0.488, allocations: 19.36 kB / 0.5125 GB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.488, allocations: 48.84 kB / 0.5125 GB, free: 51.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.747e-06/0.488, allocations: 0 / 0.5125 GB, free: 51.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01088/0.4989, allocations: 5.447 MB / 0.5178 GB, free: 48.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.499, allocations: 97.23 kB / 0.5179 GB, free: 48.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/0.5005, allocations: 1.037 MB / 0.5189 GB, free: 48.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-05/0.5006, allocations: 50.3 kB / 0.519 GB, free: 47.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/0.501, allocations: 0.7662 MB / 0.5197 GB, free: 47.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/0.5013, allocations: 0.4967 MB / 0.5202 GB, free: 46.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00043/0.5017, allocations: 314.3 kB / 0.5205 GB, free: 46.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.43e-05/0.5018, allocations: 309 kB / 0.5208 GB, free: 46.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.5028, allocations: 0.7172 MB / 0.5215 GB, free: 46.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.5041, allocations: 1.185 MB / 0.5227 GB, free: 45.47 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.01077/0.5148, allocations: 4.993 MB / 0.5275 GB, free: 42.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.5149, allocations: 1.969 kB / 0.5275 GB, free: 42.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006344/0.5212, allocations: 3.596 MB / 0.5311 GB, free: 39.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.5213, allocations: 12 kB / 0.5311 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.5213, allocations: 12 kB / 0.5311 GB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003452/0.5247, allocations: 1.266 MB / 0.5323 GB, free: 38.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.5259, allocations: 315.5 kB / 0.5326 GB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01499/0.5409, allocations: 14.66 MB / 0.5469 GB, free: 22.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.5423, allocations: 79.94 kB / 0.547 GB, free: 22.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.5424, allocations: 68 kB / 0.5471 GB, free: 22.77 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.0008757/0.5433, allocations: 0.5213 MB / 0.5476 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002412/0.5435, allocations: 139.2 kB / 0.5477 GB, free: 22.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002777/0.5463, allocations: 2.138 MB / 0.5498 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.5463, allocations: 16 kB / 0.5498 GB, free: 19.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.5463, allocations: 7.938 kB / 0.5498 GB, free: 19.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.5464, allocations: 15.58 kB / 0.5498 GB, free: 19.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005454/0.5518, allocations: 3.84 MB / 0.5536 GB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5519, allocations: 3.984 kB / 0.5536 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/0.5534, allocations: 319.9 kB / 0.5539 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004966/0.5539, allocations: 212 kB / 0.5541 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.554, allocations: 47.97 kB / 0.5541 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004126/0.5582, allocations: 7.305 MB / 0.5613 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.5582, allocations: 7.969 kB / 0.5613 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.5619, allocations: 2.829 MB / 0.564 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006529/0.5625, allocations: 331.3 kB / 0.5644 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.5627, allocations: 43.98 kB / 0.5644 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007507/0.5635, allocations: 58.67 kB / 0.5645 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.5637, allocations: 101.1 kB / 0.5646 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.611e-05/0.5638, allocations: 35.98 kB / 0.5646 GB, free: 3.754 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008431/0.5647, allocations: 0.6973 MB / 0.5653 GB, free: 3.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5647, allocations: 3.938 kB / 0.5653 GB, free: 3.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001977/0.5667, allocations: 0.5015 MB / 0.5658 GB, free: 2.547 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.000386/0.5671, allocations: 190.8 kB / 0.5659 GB, free: 2.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004375/0.5714, allocations: 2.809 MB / 0.5687 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5715, allocations: 0 / 0.5687 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002166/0.5736, allocations: 1.372 MB / 0.57 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.5753, allocations: 298.8 kB / 0.5703 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008659/0.584, allocations: 5.701 MB / 0.5759 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.5853, allocations: 1.553 MB / 0.5774 GB, free: 6.469 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001478/0.5868, allocations: 444.1 kB / 0.5778 GB, free: 6.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.5872, allocations: 111.3 kB / 0.5779 GB, free: 5.922 MB / 398.1 MB Notification: Performance of SimCode: time 1.432e-06/0.5872, allocations: 0 / 0.5779 GB, free: 5.922 MB / 398.1 MB Notification: Performance of Templates: time 0.04129/0.6285, allocations: 25.67 MB / 0.603 GB, free: 12.44 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)