Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,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_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,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_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.002111/0.002111, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.261/2.261, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3579/0.3579, allocations: 38.04 MB / 330.1 MB, free: 9.051 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002512/0.002513, allocations: 61.86 kB / 398.9 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1631, allocations: 58.06 MB / 457 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.02554/0.1886, allocations: 13.06 MB / 470.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.2095, allocations: 7.675 MB / 477.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003033/0.2125, allocations: 91.38 kB / 477.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03563/0.2482, allocations: 13.33 MB / 491.2 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004691/0.2529, allocations: 1.051 MB / 492.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002878/0.2558, allocations: 0.6241 MB / 492.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008746/0.2646, allocations: 4.106 MB / 496.9 MB, free: 420 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002905/0.2676, allocations: 1.035 MB / 498 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003346/0.2709, allocations: 1.128 MB / 499.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003674/0.2747, allocations: 1.558 MB / 0.4889 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008518/0.2756, allocations: 148 kB / 0.4891 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002084/0.2777, allocations: 0.5149 MB / 0.4896 GB, free: 12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001814/0.2795, allocations: 0.9079 MB / 0.4904 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0028/0.2823, allocations: 0.9951 MB / 0.4914 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003922/0.2863, allocations: 1.949 MB / 0.4933 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2863, allocations: 0 / 0.4933 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2863, allocations: 0 / 0.4933 GB, free: 8.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.473e-05/0.2864, allocations: 0 / 0.4933 GB, free: 8.133 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.007713/0.2942, allocations: 2.228 MB / 0.4955 GB, free: 5.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.2942, allocations: 15.89 kB / 0.4955 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003425/0.2977, allocations: 330.3 kB / 0.4958 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008266/0.306, allocations: 1.272 MB / 0.4971 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.3062, allocations: 106.7 kB / 0.4972 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001339/0.3075, allocations: 235.8 kB / 0.4974 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006834/0.3144, allocations: 2.196 MB / 0.4995 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.732e-05/0.3145, allocations: 11.84 kB / 0.4996 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006267/0.3152, allocations: 59.98 kB / 0.4996 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001145/0.3163, allocations: 190.8 kB / 0.4998 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3138/0.6302, allocations: 1.826 MB / 0.5016 GB, free: 57.34 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.01926/0.6495, allocations: 8.568 MB / 0.5099 GB, free: 52.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003966/0.6535, allocations: 1.902 MB / 0.5118 GB, free: 51.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.6558, allocations: 0.8069 MB / 0.5126 GB, free: 51.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.656, allocations: 19.52 kB / 0.5126 GB, free: 51.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.656, allocations: 48.31 kB / 0.5127 GB, free: 51.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 5.47e-06/0.656, allocations: 0 / 0.5127 GB, free: 51.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.03859/0.6946, allocations: 5.95 MB / 0.5185 GB, free: 48.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.6948, allocations: 96.94 kB / 0.5186 GB, free: 48.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/0.697, allocations: 1.067 MB / 0.5196 GB, free: 47.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002668/0.6973, allocations: 52.14 kB / 0.5196 GB, free: 47.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006047/0.6979, allocations: 0.7845 MB / 0.5204 GB, free: 46.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005359/0.6985, allocations: 0.5254 MB / 0.5209 GB, free: 46.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007436/0.6992, allocations: 332.1 kB / 0.5212 GB, free: 46.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.723e-05/0.6993, allocations: 301.7 kB / 0.5215 GB, free: 46.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.7011, allocations: 0.7387 MB / 0.5223 GB, free: 45.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002006/0.7031, allocations: 1.226 MB / 0.5235 GB, free: 44.97 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.03565/0.7388, allocations: 4.345 MB / 0.5277 GB, free: 42.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.552e-05/0.7389, allocations: 7.875 kB / 0.5277 GB, free: 42.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.01279/0.7517, allocations: 3.976 MB / 0.5316 GB, free: 39.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.7518, allocations: 14.72 kB / 0.5316 GB, free: 39.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/0.7518, allocations: 16 kB / 0.5316 GB, free: 39.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006869/0.7587, allocations: 1.459 MB / 0.533 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.7607, allocations: 291.5 kB / 0.5333 GB, free: 38.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03442/0.7952, allocations: 20.98 MB / 0.5538 GB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.7976, allocations: 83.59 kB / 0.5539 GB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.7979, allocations: 83.98 kB / 0.554 GB, free: 16.07 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.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.7993, allocations: 0.523 MB / 0.5545 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004858/0.7998, allocations: 142.2 kB / 0.5546 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/0.8049, allocations: 2.217 MB / 0.5568 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/0.805, allocations: 16 kB / 0.5568 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.805, allocations: 7.984 kB / 0.5568 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/0.805, allocations: 3.984 kB / 0.5568 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009606/0.8146, allocations: 3.987 MB / 0.5607 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.8147, allocations: 4 kB / 0.5607 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003069/0.8178, allocations: 331.6 kB / 0.561 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009123/0.8187, allocations: 212.1 kB / 0.5612 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002709/0.819, allocations: 63.84 kB / 0.5613 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006649/0.8257, allocations: 7.931 MB / 0.569 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.8258, allocations: 7.969 kB / 0.569 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007746/0.8335, allocations: 2.92 MB / 0.5719 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.8348, allocations: 339.2 kB / 0.5722 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004559/0.8353, allocations: 47.98 kB / 0.5722 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/0.8369, allocations: 59.84 kB / 0.5723 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/0.8373, allocations: 109 kB / 0.5724 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.8375, allocations: 43.98 kB / 0.5725 GB, free: 12.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001704/0.8392, allocations: 0.71 MB / 0.5731 GB, free: 11.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8392, allocations: 0 / 0.5731 GB, free: 11.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.01064/0.8499, allocations: 0.5454 MB / 0.5737 GB, free: 10.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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],PI.x) * 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 (137): * Single equations (assignments): 131 * 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.0008163/0.8507, allocations: 192.7 kB / 0.5739 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01339/0.8641, allocations: 4.203 MB / 0.578 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/0.8642, allocations: 3.938 kB / 0.578 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003777/0.868, allocations: 1.411 MB / 0.5793 GB, free: 4.844 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.871, allocations: 336.7 kB / 0.5797 GB, free: 4.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.8859, allocations: 6.008 MB / 0.5855 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/0.8881, allocations: 1.58 MB / 0.5871 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008604/0.889, allocations: 115.4 kB / 0.5872 GB, free: 12.75 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.889, allocations: 0 / 0.5872 GB, free: 12.75 MB / 414.1 MB Notification: Performance of Templates: time 0.1079/0.9969, allocations: 58.98 MB / 0.6448 GB, free: 1.746 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)