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.001019/0.001019, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.00111/0.00111, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1715/0.1715, allocations: 38.04 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 62.06 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01301/0.1222, allocations: 10.94 MB / 467.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.1329, allocations: 7.082 MB / 474.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1341, allocations: 47.69 kB / 474.9 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02085/0.155, allocations: 12.91 MB / 487.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004042/0.1591, allocations: 1.101 MB / 488.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002742/0.1618, allocations: 0.6588 MB / 489.6 MB, free: 7.227 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007174/0.169, allocations: 3.895 MB / 493.5 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001886/0.1709, allocations: 1 MB / 494.5 MB, free: 2.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002052/0.173, allocations: 1.082 MB / 495.6 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.1754, allocations: 1.394 MB / 497 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003344/0.1757, allocations: 144 kB / 497.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.1772, allocations: 0.5149 MB / 497.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.1783, allocations: 0.8846 MB / 498.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.1796, allocations: 0.9485 MB / 499.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003176/0.1828, allocations: 2.465 MB / 0.4902 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1828, allocations: 0 / 0.4902 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1828, allocations: 8 kB / 0.4902 GB, free: 10.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.457e-05/0.1828, allocations: 3.938 kB / 0.4902 GB, free: 10.83 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.005496/0.1883, allocations: 2.158 MB / 0.4923 GB, free: 8.613 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.1884, allocations: 11.89 kB / 0.4923 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002672/0.1911, allocations: 318.3 kB / 0.4926 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003001/0.1941, allocations: 1.229 MB / 0.4938 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.1942, allocations: 102.7 kB / 0.4939 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007718/0.195, allocations: 231.8 kB / 0.4941 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004344/0.1994, allocations: 2.149 MB / 0.4962 GB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-05/0.1994, allocations: 19.78 kB / 0.4962 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/0.1996, allocations: 51.98 kB / 0.4963 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009001/0.2006, allocations: 190.6 kB / 0.4965 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004089/0.2047, allocations: 1.756 MB / 0.4982 GB, free: 2.406 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.227/0.4317, allocations: 8.6 MB / 0.5066 GB, free: 52.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002448/0.4342, allocations: 1.824 MB / 0.5084 GB, free: 51.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.4355, allocations: 0.7859 MB / 0.5091 GB, free: 51.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.647e-05/0.4356, allocations: 15.05 kB / 0.5091 GB, free: 51.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.4357, allocations: 44.69 kB / 0.5092 GB, free: 51.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.988e-06/0.4357, allocations: 0 / 0.5092 GB, free: 51.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01106/0.4467, allocations: 5.457 MB / 0.5145 GB, free: 48.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.4468, allocations: 91.81 kB / 0.5146 GB, free: 48.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.4482, allocations: 1.036 MB / 0.5156 GB, free: 48.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.621e-05/0.4483, allocations: 46.73 kB / 0.5157 GB, free: 48.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004281/0.4487, allocations: 0.7649 MB / 0.5164 GB, free: 47.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003149/0.449, allocations: 0.4984 MB / 0.5169 GB, free: 47.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004309/0.4495, allocations: 319.5 kB / 0.5172 GB, free: 47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.4495, allocations: 302.2 kB / 0.5175 GB, free: 46.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.4506, allocations: 0.7184 MB / 0.5182 GB, free: 46.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.4522, allocations: 1.183 MB / 0.5193 GB, free: 45.7 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.01167/0.4639, allocations: 5.007 MB / 0.5242 GB, free: 43.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.119e-05/0.464, allocations: 4.156 kB / 0.5242 GB, free: 43.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006862/0.4708, allocations: 3.597 MB / 0.5277 GB, free: 41.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.4709, allocations: 17.19 kB / 0.5278 GB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.4709, allocations: 13.91 kB / 0.5278 GB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003383/0.4743, allocations: 1.264 MB / 0.529 GB, free: 41.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.4755, allocations: 320.3 kB / 0.5293 GB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01601/0.4915, allocations: 16.02 MB / 0.545 GB, free: 24.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.4931, allocations: 77.83 kB / 0.545 GB, free: 24.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/0.4934, allocations: 79.98 kB / 0.5451 GB, free: 24.3 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.001123/0.4945, allocations: 0.5169 MB / 0.5456 GB, free: 23.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/0.495, allocations: 138.3 kB / 0.5457 GB, free: 23.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.4981, allocations: 2.157 MB / 0.5479 GB, free: 21.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.4981, allocations: 12 kB / 0.5479 GB, free: 21.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.4981, allocations: 4 kB / 0.5479 GB, free: 21.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.4981, allocations: 3.984 kB / 0.5479 GB, free: 21.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005957/0.5041, allocations: 3.839 MB / 0.5516 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/0.5041, allocations: 7.938 kB / 0.5516 GB, free: 17.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.5056, allocations: 319.9 kB / 0.5519 GB, free: 17.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004813/0.5061, allocations: 204.7 kB / 0.5521 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.5063, allocations: 47.97 kB / 0.5522 GB, free: 16.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004304/0.5106, allocations: 7.942 MB / 0.5599 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5106, allocations: 11.95 kB / 0.5599 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003885/0.5145, allocations: 2.813 MB / 0.5627 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007862/0.5153, allocations: 339.2 kB / 0.563 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003752/0.5157, allocations: 51.91 kB / 0.5631 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009371/0.5166, allocations: 55.95 kB / 0.5631 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.5169, allocations: 97.05 kB / 0.5632 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.41e-05/0.517, allocations: 40.11 kB / 0.5632 GB, free: 4.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.5181, allocations: 0.6931 MB / 0.5639 GB, free: 3.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5181, allocations: 4 kB / 0.5639 GB, free: 3.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002359/0.5204, allocations: 0.5037 MB / 0.5644 GB, free: 3.441 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.0004359/0.5209, allocations: 184.3 kB / 0.5646 GB, free: 3.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006423/0.5273, allocations: 3.68 MB / 0.5682 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.5273, allocations: 4.5 kB / 0.5682 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.5297, allocations: 1.376 MB / 0.5695 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.5318, allocations: 320.6 kB / 0.5698 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009151/0.541, allocations: 5.026 MB / 0.5748 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/0.543, allocations: 1.555 MB / 0.5763 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001611/0.5446, allocations: 440.1 kB / 0.5767 GB, free: 6.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/0.5451, allocations: 107.4 kB / 0.5768 GB, free: 6.617 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5451, allocations: 0 / 0.5768 GB, free: 6.617 MB / 398.1 MB Notification: Performance of Templates: time 0.05038/0.5955, allocations: 26.93 MB / 0.6031 GB, free: 11.89 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)