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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001047/0.001047, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.166/1.166, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001684/0.001684, allocations: 128.8 kB / 256.6 MB, free: 4.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1576/0.1576, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001456, allocations: 71.89 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08232, allocations: 52.18 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.00913/0.09151, allocations: 12.96 MB / 466.9 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.1021, allocations: 7.947 MB / 474.9 MB, free: 11.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.1036, allocations: 87.44 kB / 475 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01951/0.1232, allocations: 13.02 MB / 488 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002558/0.1257, allocations: 1.054 MB / 489 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.1273, allocations: 0.5889 MB / 489.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005456/0.1327, allocations: 5.572 MB / 495.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.134, allocations: 0.8911 MB / 496.1 MB, free: 6.32 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.1354, allocations: 0.9374 MB / 497 MB, free: 5.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.1374, allocations: 1.48 MB / 498.5 MB, free: 3.895 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003184/0.1377, allocations: 100 kB / 498.6 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009565/0.1387, allocations: 483.2 kB / 499.1 MB, free: 3.324 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007509/0.1394, allocations: 0.8454 MB / 499.9 MB, free: 2.477 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008988/0.1403, allocations: 0.8938 MB / 0.4891 GB, free: 1.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1629/0.3033, allocations: 2.395 MB / 0.4914 GB, free: 29.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.3033, allocations: 1.281 kB / 0.4914 GB, free: 29.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3033, allocations: 0 / 0.4914 GB, free: 29.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.203e-05/0.3034, allocations: 0 / 0.4914 GB, free: 29.19 MB / 346.7 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.005231/0.3086, allocations: 2.151 MB / 0.4935 GB, free: 28.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3087, allocations: 9.75 kB / 0.4935 GB, free: 28.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.3104, allocations: 325 kB / 0.4938 GB, free: 28.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.3128, allocations: 1.236 MB / 0.4951 GB, free: 27.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/0.3129, allocations: 101.9 kB / 0.4951 GB, free: 27.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/0.3134, allocations: 234.1 kB / 0.4954 GB, free: 27.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.3163, allocations: 2.144 MB / 0.4975 GB, free: 27.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.3163, allocations: 10.84 kB / 0.4975 GB, free: 27.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.3165, allocations: 60.64 kB / 0.4975 GB, free: 27.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006078/0.3171, allocations: 183.8 kB / 0.4977 GB, free: 27.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00249/0.3196, allocations: 1.754 MB / 0.4994 GB, free: 27.43 MB / 346.7 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.009228/0.3288, allocations: 8.617 MB / 0.5078 GB, free: 23.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.3309, allocations: 1.822 MB / 0.5096 GB, free: 22.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.3321, allocations: 0.7756 MB / 0.5104 GB, free: 22.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.212e-05/0.3322, allocations: 16.77 kB / 0.5104 GB, free: 22.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3322, allocations: 47.64 kB / 0.5104 GB, free: 22.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 3.667e-06/0.3322, allocations: 4.906 kB / 0.5104 GB, free: 22.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.0118/0.344, allocations: 6.563 MB / 0.5168 GB, free: 19.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.3441, allocations: 90.3 kB / 0.5169 GB, free: 19.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009607/0.3451, allocations: 1.048 MB / 0.518 GB, free: 18.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.999e-05/0.3452, allocations: 48.67 kB / 0.518 GB, free: 18.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.3455, allocations: 0.7649 MB / 0.5188 GB, free: 18.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.3457, allocations: 0.5038 MB / 0.5192 GB, free: 17.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003591/0.3461, allocations: 311.9 kB / 0.5195 GB, free: 17.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.585e-05/0.3461, allocations: 305 kB / 0.5198 GB, free: 17.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008727/0.347, allocations: 0.7173 MB / 0.5205 GB, free: 17.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.3481, allocations: 1.188 MB / 0.5217 GB, free: 16.27 MB / 346.7 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.009618/0.3577, allocations: 4.999 MB / 0.5266 GB, free: 11.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.3577, allocations: 4 kB / 0.5266 GB, free: 11.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006055/0.3638, allocations: 3.598 MB / 0.5301 GB, free: 8.254 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3638, allocations: 12 kB / 0.5301 GB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.3639, allocations: 16 kB / 0.5301 GB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/0.3671, allocations: 1.243 MB / 0.5313 GB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3682, allocations: 323.8 kB / 0.5316 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/0.3849, allocations: 14.68 MB / 0.546 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.3863, allocations: 75.94 kB / 0.546 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.3864, allocations: 73.86 kB / 0.5461 GB, free: 7.254 MB / 362.7 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 (156): * Single equations (assignments): 151 * 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.0009562/0.3874, allocations: 0.5173 MB / 0.5466 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.3877, allocations: 146.1 kB / 0.5468 GB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003384/0.3911, allocations: 2.144 MB / 0.5489 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.3911, allocations: 12.81 kB / 0.5489 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.3911, allocations: 4 kB / 0.5489 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.3912, allocations: 11.92 kB / 0.5489 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006526/0.3977, allocations: 3.855 MB / 0.5526 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.3977, allocations: 3.938 kB / 0.5527 GB, free: 380 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.3993, allocations: 322.9 kB / 0.553 GB, free: 68 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005342/0.3998, allocations: 207.6 kB / 0.5532 GB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.3999, allocations: 47.97 kB / 0.5532 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005007/0.4049, allocations: 7.3 MB / 0.5603 GB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.405, allocations: 7.094 kB / 0.5603 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02864/0.4336, allocations: 22.12 MB / 0.5819 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006086/0.4342, allocations: 327.2 kB / 0.5823 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/0.4344, allocations: 47.92 kB / 0.5823 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007425/0.4352, allocations: 59.94 kB / 0.5824 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.4354, allocations: 105 kB / 0.5825 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.462e-05/0.4355, allocations: 35.98 kB / 0.5825 GB, free: 60 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008384/0.4364, allocations: 0.697 MB / 0.5832 GB, free: 15.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4364, allocations: 0 / 0.5832 GB, free: 15.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002049/0.4384, allocations: 0.6836 MB / 0.5838 GB, free: 14.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (generator.phi_el,generator.w_el,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 (127): * Single equations (assignments): 121 * 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.0003665/0.4388, allocations: 175.7 kB / 0.584 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00435/0.4432, allocations: 2.818 MB / 0.5868 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4432, allocations: 2.297 kB / 0.5868 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.4451, allocations: 1.377 MB / 0.5881 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4464, allocations: 310.4 kB / 0.5884 GB, free: 9.969 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009192/0.4556, allocations: 7.168 MB / 0.5954 GB, free: 2.707 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00138/0.457, allocations: 1.615 MB / 0.597 GB, free: 1.062 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001553/0.4586, allocations: 484 kB / 0.5974 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004408/0.459, allocations: 115.4 kB / 0.5976 GB, free: 484 kB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.459, allocations: 0 / 0.5976 GB, free: 484 kB / 410.7 MB Notification: Performance of Templates: time 0.04388/0.5029, allocations: 31.81 MB / 0.6286 GB, free: 0.7422 MB / 442.7 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)