Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.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_DFIG,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_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,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_DFIG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001424, allocations: 116.5 kB / 17.7 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.00155/0.00155, allocations: 191 kB / 18.63 MB, free: 4.508 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.428/1.428, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 62.2 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1131, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01172/0.1249, allocations: 10.6 MB / 468.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.135, allocations: 6.239 MB / 475.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009085/0.1359, allocations: 51.69 kB / 475.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01071/0.1466, allocations: 5.513 MB / 480.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00277/0.1494, allocations: 1.074 MB / 481.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1511, allocations: 0.6472 MB / 482.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004447/0.1556, allocations: 3.208 MB / 485.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/0.157, allocations: 0.9963 MB / 486.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.1586, allocations: 1.062 MB / 487.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.1604, allocations: 1.343 MB / 489 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002314/0.1606, allocations: 148 kB / 489.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000865/0.1615, allocations: 431.5 kB / 489.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00072/0.1622, allocations: 0.8417 MB / 490.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009887/0.1632, allocations: 0.9291 MB / 491.4 MB, free: 6.133 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002172/0.1654, allocations: 2.27 MB / 493.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1654, allocations: 0 / 493.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1655, allocations: 0 / 493.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.1655, allocations: 0 / 493.7 MB, free: 3.855 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003947/0.1694, allocations: 2.064 MB / 495.7 MB, free: 1.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.1695, allocations: 11.89 kB / 495.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.171, allocations: 278.5 kB / 496 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002558/0.1735, allocations: 1.21 MB / 497.2 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.648e-05/0.1736, allocations: 98.62 kB / 497.3 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005339/0.1742, allocations: 231.7 kB / 497.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/0.1774, allocations: 2.103 MB / 499.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.872e-05/0.1775, allocations: 7.938 kB / 499.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.1776, allocations: 59.98 kB / 499.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005973/0.1782, allocations: 182.7 kB / 499.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002704/0.1809, allocations: 1.705 MB / 0.4898 GB, free: 11.71 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.01006/0.191, allocations: 7.918 MB / 0.4976 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002154/0.1932, allocations: 1.619 MB / 0.4991 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009197/0.1941, allocations: 0.6645 MB / 0.4998 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.452e-05/0.1942, allocations: 16.98 kB / 0.4998 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.1942, allocations: 51.5 kB / 0.4999 GB, free: 1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.326e-06/0.1942, allocations: 0 / 0.4999 GB, free: 1 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.2528/0.4471, allocations: 5.077 MB / 0.5048 GB, free: 55.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.4472, allocations: 92.02 kB / 0.5049 GB, free: 55.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.4485, allocations: 0.9321 MB / 0.5058 GB, free: 54.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.34e-05/0.4486, allocations: 53.39 kB / 0.5059 GB, free: 54.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.4491, allocations: 0.7246 MB / 0.5066 GB, free: 54.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.4495, allocations: 0.4898 MB / 0.507 GB, free: 53.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000455/0.4499, allocations: 312.2 kB / 0.5073 GB, free: 53.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.544e-05/0.45, allocations: 303 kB / 0.5076 GB, free: 53.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.4511, allocations: 0.7035 MB / 0.5083 GB, free: 53.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.4525, allocations: 1.153 MB / 0.5094 GB, free: 52.34 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.009848/0.4623, allocations: 4.081 MB / 0.5134 GB, free: 50.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/0.4624, allocations: 3.75 kB / 0.5134 GB, free: 50.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006605/0.469, allocations: 3.359 MB / 0.5167 GB, free: 49.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.469, allocations: 9.688 kB / 0.5167 GB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.4691, allocations: 14.77 kB / 0.5167 GB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002995/0.4721, allocations: 1.195 MB / 0.5179 GB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.4733, allocations: 306.1 kB / 0.5182 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/0.4885, allocations: 15.13 MB / 0.533 GB, free: 38.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.4899, allocations: 75.94 kB / 0.533 GB, free: 38.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.49, allocations: 69.36 kB / 0.5331 GB, free: 38.19 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.inertia.w = 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: 60 * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007881/0.4908, allocations: 0.4953 MB / 0.5336 GB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.491, allocations: 138.2 kB / 0.5337 GB, free: 37.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.4936, allocations: 2.007 MB / 0.5357 GB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.4936, allocations: 15.98 kB / 0.5357 GB, free: 35.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.4936, allocations: 4 kB / 0.5357 GB, free: 35.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.4936, allocations: 12.91 kB / 0.5357 GB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005444/0.4991, allocations: 3.758 MB / 0.5394 GB, free: 31.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4991, allocations: 4 kB / 0.5394 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.5005, allocations: 328 kB / 0.5397 GB, free: 31.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004035/0.501, allocations: 189.2 kB / 0.5399 GB, free: 31.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.16e-05/0.5011, allocations: 43.98 kB / 0.5399 GB, free: 30.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003553/0.5046, allocations: 6.679 MB / 0.5464 GB, free: 23.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5046, allocations: 7.984 kB / 0.5465 GB, free: 23.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003094/0.5077, allocations: 2.721 MB / 0.5491 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/0.5084, allocations: 315.8 kB / 0.5494 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.5086, allocations: 43.98 kB / 0.5495 GB, free: 20.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006446/0.5092, allocations: 59.94 kB / 0.5495 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.5094, allocations: 105.1 kB / 0.5496 GB, free: 20.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.5095, allocations: 39.98 kB / 0.5496 GB, free: 20.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006546/0.5102, allocations: 0.6244 MB / 0.5503 GB, free: 19.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5102, allocations: 0 / 0.5503 GB, free: 19.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001656/0.5119, allocations: 488 kB / 0.5507 GB, free: 19.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,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],inertia.phi,inertia.w,meterDC.pav,inverter2.vDC1) * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,10,100.0%), (1,1,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.0001931/0.5121, allocations: 158 kB / 0.5509 GB, free: 19.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003597/0.5157, allocations: 2.724 MB / 0.5535 GB, free: 16.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5157, allocations: 0 / 0.5535 GB, free: 16.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.517, allocations: 1.241 MB / 0.5547 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.5183, allocations: 323.3 kB / 0.5551 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/0.5241, allocations: 4.896 MB / 0.5598 GB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/0.525, allocations: 1.517 MB / 0.5613 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009738/0.526, allocations: 403.5 kB / 0.5617 GB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002874/0.5263, allocations: 99.42 kB / 0.5618 GB, free: 7.742 MB / 382.1 MB Notification: Performance of SimCode: time 2.114e-06/0.5263, allocations: 0 / 0.5618 GB, free: 7.742 MB / 382.1 MB Notification: Performance of Templates: time 0.03696/0.5633, allocations: 24.77 MB / 0.586 GB, free: 15.19 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)