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.001003/0.001003, allocations: 92.58 kB / 16.65 MB, free: 6.535 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.001141/0.001141, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.288/1.288, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1658/0.1658, allocations: 38.09 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 8 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1143, allocations: 59.16 MB / 459.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01144/0.1258, allocations: 12.44 MB / 472.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.1369, allocations: 7.77 MB / 480.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001778/0.1387, allocations: 79.44 kB / 480.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01778/0.1565, allocations: 12.51 MB / 492.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.1595, allocations: 1.047 MB / 493.7 MB, free: 5.117 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.1611, allocations: 0.5889 MB / 494.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006851/0.168, allocations: 5.553 MB / 499.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002452/0.1705, allocations: 1.317 MB / 0.4894 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.1725, allocations: 0.875 MB / 0.4903 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002037/0.1746, allocations: 1.429 MB / 0.4917 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.1748, allocations: 76 kB / 0.4918 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.1759, allocations: 451.3 kB / 0.4922 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007906/0.1767, allocations: 0.8181 MB / 0.493 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008883/0.1776, allocations: 0.8916 MB / 0.4939 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002188/0.1798, allocations: 2.351 MB / 0.4962 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1798, allocations: 0 / 0.4962 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1798, allocations: 0 / 0.4962 GB, free: 6.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.123e-05/0.1798, allocations: 0 / 0.4962 GB, free: 6.672 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.003713/0.1836, allocations: 1.835 MB / 0.4979 GB, free: 4.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1836, allocations: 12.03 kB / 0.498 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.1853, allocations: 322.3 kB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/0.1876, allocations: 1.233 MB / 0.4995 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.562e-05/0.1877, allocations: 102.7 kB / 0.4996 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000539/0.1882, allocations: 231.7 kB / 0.4998 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00299/0.1912, allocations: 2.149 MB / 0.5019 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.1913, allocations: 15.88 kB / 0.5019 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.1914, allocations: 59.97 kB / 0.502 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006142/0.1921, allocations: 186.7 kB / 0.5021 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2199/0.412, allocations: 1.762 MB / 0.5039 GB, free: 48.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.01055/0.4225, allocations: 8.636 MB / 0.5123 GB, free: 44.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.4249, allocations: 1.819 MB / 0.5141 GB, free: 43.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.4263, allocations: 0.7717 MB / 0.5148 GB, free: 43.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.705e-05/0.4264, allocations: 18.36 kB / 0.5148 GB, free: 43.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.4264, allocations: 44.97 kB / 0.5149 GB, free: 43.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.056e-06/0.4264, allocations: 3.438 kB / 0.5149 GB, free: 43.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01115/0.4376, allocations: 5.501 MB / 0.5203 GB, free: 40.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.4376, allocations: 92.11 kB / 0.5203 GB, free: 40.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.439, allocations: 1.045 MB / 0.5214 GB, free: 40.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.579e-05/0.4391, allocations: 46.42 kB / 0.5214 GB, free: 40.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005229/0.4396, allocations: 0.7626 MB / 0.5222 GB, free: 39.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003598/0.44, allocations: 0.4966 MB / 0.5226 GB, free: 39.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.4402, allocations: 154.9 kB / 0.5228 GB, free: 39.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.565e-05/0.4403, allocations: 301.9 kB / 0.5231 GB, free: 38.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.4413, allocations: 0.7301 MB / 0.5238 GB, free: 38.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.4425, allocations: 1.185 MB / 0.5249 GB, free: 37.84 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.01062/0.4531, allocations: 5.014 MB / 0.5298 GB, free: 35.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.4531, allocations: 3.906 kB / 0.5298 GB, free: 35.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006644/0.4598, allocations: 3.605 MB / 0.5334 GB, free: 33.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.4599, allocations: 16.69 kB / 0.5334 GB, free: 33.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.4599, allocations: 13.44 kB / 0.5334 GB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003393/0.4633, allocations: 1.268 MB / 0.5346 GB, free: 32.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4644, allocations: 319.5 kB / 0.5349 GB, free: 32.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/0.481, allocations: 14.68 MB / 0.5493 GB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.4825, allocations: 83.84 kB / 0.5493 GB, free: 16.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.4828, allocations: 72 kB / 0.5494 GB, free: 16.71 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 sytem: 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.001029/0.4838, allocations: 0.5331 MB / 0.5499 GB, free: 16.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003498/0.4842, allocations: 134.3 kB / 0.5501 GB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.4872, allocations: 2.154 MB / 0.5522 GB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.4872, allocations: 12 kB / 0.5522 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.4872, allocations: 4 kB / 0.5522 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.4872, allocations: 7.969 kB / 0.5522 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005849/0.4931, allocations: 3.868 MB / 0.556 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.4931, allocations: 0 / 0.556 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/0.4946, allocations: 323.6 kB / 0.5563 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.4952, allocations: 208.1 kB / 0.5565 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.4953, allocations: 52.09 kB / 0.5565 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004015/0.4994, allocations: 7.311 MB / 0.5637 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4994, allocations: 7.547 kB / 0.5637 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004489/0.5039, allocations: 2.843 MB / 0.5665 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008012/0.5047, allocations: 331.2 kB / 0.5668 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003709/0.5051, allocations: 48.27 kB / 0.5668 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009598/0.5061, allocations: 59.94 kB / 0.5669 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.5063, allocations: 97.11 kB / 0.567 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/0.5064, allocations: 47.86 kB / 0.567 GB, free: 13.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.5077, allocations: 0.6931 MB / 0.5677 GB, free: 12.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5078, allocations: 0 / 0.5677 GB, free: 12.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002267/0.51, allocations: 0.5069 MB / 0.5682 GB, free: 12.43 MB / 398.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.0004719/0.5105, allocations: 172.7 kB / 0.5683 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005184/0.5157, allocations: 2.828 MB / 0.5711 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.5157, allocations: 0 / 0.5711 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/0.518, allocations: 1.376 MB / 0.5724 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.5206, allocations: 312.9 kB / 0.5727 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00925/0.5298, allocations: 6.092 MB / 0.5787 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001716/0.5316, allocations: 1.554 MB / 0.5802 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001627/0.5332, allocations: 448.1 kB / 0.5806 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/0.5338, allocations: 103.4 kB / 0.5807 GB, free: 15.37 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5338, allocations: 0 / 0.5807 GB, free: 15.37 MB / 414.1 MB Notification: Performance of Templates: time 0.0438/0.5776, allocations: 25.23 MB / 0.6054 GB, free: 6.367 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: