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.00119/0.00119, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.0009854/0.0009855, allocations: 200 kB / 18.01 MB, free: 5.055 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1846/0.1846, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 59.91 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5046/0.5059, allocations: 58.05 MB / 0.5041 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01172/0.5177, allocations: 11.03 MB / 0.5149 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.5315, allocations: 7.079 MB / 0.5218 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.5332, allocations: 52.47 kB / 0.5218 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02983/0.5631, allocations: 12.86 MB / 0.5344 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005029/0.5681, allocations: 1.115 MB / 0.5355 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002895/0.571, allocations: 0.6924 MB / 0.5362 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008972/0.58, allocations: 4.015 MB / 0.5401 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002254/0.5823, allocations: 0.9969 MB / 0.5411 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003243/0.5856, allocations: 1.124 MB / 0.5422 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003503/0.5891, allocations: 1.447 MB / 0.5436 GB, free: 196 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003409/0.5894, allocations: 148 kB / 0.5437 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.591, allocations: 0.511 MB / 0.5442 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009786/0.592, allocations: 0.9079 MB / 0.5451 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.5932, allocations: 0.9873 MB / 0.5461 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003016/0.5962, allocations: 2.558 MB / 0.5486 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.5962, allocations: 0 / 0.5486 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5963, allocations: 0 / 0.5486 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.5963, allocations: 0 / 0.5486 GB, free: 11.07 MB / 414.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.004346/0.6006, allocations: 2.224 MB / 0.5507 GB, free: 8.781 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.6007, allocations: 8.031 kB / 0.5507 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.6024, allocations: 330.2 kB / 0.551 GB, free: 8.449 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002823/0.6052, allocations: 1.334 MB / 0.5524 GB, free: 7.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.35e-05/0.6053, allocations: 106.7 kB / 0.5525 GB, free: 6.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005016/0.6058, allocations: 239.7 kB / 0.5527 GB, free: 6.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.6094, allocations: 2.196 MB / 0.5548 GB, free: 4.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.6094, allocations: 7.938 kB / 0.5548 GB, free: 4.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.6096, allocations: 59.92 kB / 0.5549 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006292/0.6102, allocations: 186.8 kB / 0.5551 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002971/0.6132, allocations: 1.83 MB / 0.5569 GB, free: 2.344 MB / 414.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.0122/0.6254, allocations: 8.52 MB / 0.5652 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002527/0.628, allocations: 1.912 MB / 0.567 GB, free: 7.363 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.6292, allocations: 0.7966 MB / 0.5678 GB, free: 6.566 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/0.6293, allocations: 21.31 kB / 0.5678 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.6293, allocations: 47.88 kB / 0.5679 GB, free: 6.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 2.766e-06/0.6294, allocations: 0 / 0.5679 GB, free: 6.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.0224/0.6518, allocations: 9.211 MB / 0.5769 GB, free: 13.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.6519, allocations: 94.42 kB / 0.577 GB, free: 12.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.6533, allocations: 1.063 MB / 0.578 GB, free: 11.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001366/0.6534, allocations: 57.7 kB / 0.5781 GB, free: 11.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007004/0.6541, allocations: 0.7836 MB / 0.5788 GB, free: 11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005608/0.6547, allocations: 0.5893 MB / 0.5794 GB, free: 10.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005168/0.6552, allocations: 351.3 kB / 0.5797 GB, free: 10.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.6554, allocations: 309.1 kB / 0.58 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.6567, allocations: 0.8433 MB / 0.5809 GB, free: 8.898 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.6584, allocations: 1.352 MB / 0.5822 GB, free: 7.34 MB / 446.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.01284/0.6713, allocations: 5.187 MB / 0.5872 GB, free: 1.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.6713, allocations: 4 kB / 0.5873 GB, free: 1.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.008809/0.6801, allocations: 4.189 MB / 0.5913 GB, free: 13.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.6802, allocations: 12 kB / 0.5914 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.6802, allocations: 20.06 kB / 0.5914 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004436/0.6846, allocations: 1.602 MB / 0.5929 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.6859, allocations: 315.5 kB / 0.5932 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/0.7136, allocations: 20.88 MB / 0.6136 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/0.7156, allocations: 95.92 kB / 0.6137 GB, free: 5.918 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001978/0.7158, allocations: 83.98 kB / 0.6138 GB, free: 5.836 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 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 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001181/0.717, allocations: 0.542 MB / 0.6143 GB, free: 5.285 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.7173, allocations: 150.1 kB / 0.6145 GB, free: 5.137 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.7224, allocations: 2.809 MB / 0.6172 GB, free: 2.223 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.7225, allocations: 16 kB / 0.6172 GB, free: 2.207 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.7225, allocations: 4 kB / 0.6172 GB, free: 2.203 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/0.7225, allocations: 11.97 kB / 0.6172 GB, free: 2.191 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00887/0.7314, allocations: 4.817 MB / 0.6219 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.7314, allocations: 8.062 kB / 0.622 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/0.7331, allocations: 347.5 kB / 0.6223 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001597/0.7348, allocations: 0.4899 MB / 0.6228 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.7349, allocations: 51.97 kB / 0.6228 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/0.747, allocations: 12.75 MB / 0.6353 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.7471, allocations: 4 kB / 0.6353 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006954/0.754, allocations: 3.716 MB / 0.6389 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.7553, allocations: 367.1 kB / 0.6393 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.7555, allocations: 51.92 kB / 0.6393 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008808/0.7564, allocations: 75.92 kB / 0.6394 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004099/0.7569, allocations: 125.1 kB / 0.6395 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.757, allocations: 51.98 kB / 0.6395 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001036/0.758, allocations: 0.71 MB / 0.6402 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.758, allocations: 0 / 0.6402 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002511/0.7605, allocations: 0.5976 MB / 0.6408 GB, free: 8.676 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004933/0.761, allocations: 185.2 kB / 0.641 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007481/0.7685, allocations: 3.496 MB / 0.6444 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.7686, allocations: 4.5 kB / 0.6444 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003426/0.772, allocations: 1.881 MB / 0.6463 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.7738, allocations: 345.5 kB / 0.6466 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008758/0.7826, allocations: 5.269 MB / 0.6517 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0015/0.7841, allocations: 1.641 MB / 0.6533 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001293/0.7855, allocations: 437.3 kB / 0.6537 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000365/0.7858, allocations: 123.3 kB / 0.6539 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/0.7858, allocations: 0 / 0.6539 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of Templates: time 0.05696/0.8428, allocations: 33.24 MB / 0.6863 GB, free: 9.996 MB / 0.545 GB 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)