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.001555/0.001555, allocations: 113.8 kB / 17.74 MB, free: 5.336 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.001644/0.001644, allocations: 189.6 kB / 18.67 MB, free: 4.41 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.84/1.84, allocations: 222.9 MB / 242.4 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.1651/0.1651, allocations: 38.03 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3188, allocations: 58.05 MB / 0.5048 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.00877/0.3276, allocations: 11.03 MB / 0.5155 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.3376, allocations: 7.078 MB / 0.5224 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008137/0.3385, allocations: 53.28 kB / 0.5225 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01872/0.3572, allocations: 12.87 MB / 0.5351 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00267/0.3599, allocations: 1.124 MB / 0.5362 GB, free: 5.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.3616, allocations: 0.696 MB / 0.5368 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004302/0.3659, allocations: 4.007 MB / 0.5407 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.3673, allocations: 0.9968 MB / 0.5417 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001696/0.369, allocations: 1.134 MB / 0.5428 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002095/0.3711, allocations: 1.433 MB / 0.5442 GB, free: 156 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002363/0.3713, allocations: 155.9 kB / 0.5444 GB, free: 0 / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008688/0.3722, allocations: 0.5111 MB / 0.5449 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006974/0.3729, allocations: 0.9078 MB / 0.5458 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008319/0.3738, allocations: 0.9873 MB / 0.5467 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002135/0.3759, allocations: 2.558 MB / 0.5492 GB, free: 11.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3759, allocations: 0 / 0.5492 GB, free: 11.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3759, allocations: 0 / 0.5492 GB, free: 11.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.376, allocations: 4 kB / 0.5492 GB, free: 11.02 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.003774/0.3797, allocations: 2.217 MB / 0.5514 GB, free: 8.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.3798, allocations: 11.89 kB / 0.5514 GB, free: 8.727 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001629/0.3814, allocations: 334.2 kB / 0.5517 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002592/0.384, allocations: 1.334 MB / 0.553 GB, free: 7.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.532e-05/0.3841, allocations: 106.7 kB / 0.5531 GB, free: 6.914 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004914/0.3846, allocations: 235.7 kB / 0.5534 GB, free: 6.684 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002839/0.3874, allocations: 2.192 MB / 0.5555 GB, free: 4.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.841e-05/0.3875, allocations: 4 kB / 0.5555 GB, free: 4.383 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.3876, allocations: 63.92 kB / 0.5556 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005935/0.3882, allocations: 186.8 kB / 0.5557 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.3909, allocations: 1.834 MB / 0.5575 GB, free: 2.297 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.01014/0.401, allocations: 8.52 MB / 0.5658 GB, free: 9.359 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.4033, allocations: 1.901 MB / 0.5677 GB, free: 7.328 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001218/0.4046, allocations: 0.8045 MB / 0.5685 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.632e-05/0.4047, allocations: 21.31 kB / 0.5685 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.4047, allocations: 43.88 kB / 0.5685 GB, free: 6.453 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 2.806e-06/0.4047, allocations: 0 / 0.5685 GB, free: 6.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02038/0.4251, allocations: 9.219 MB / 0.5776 GB, free: 12.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.4252, allocations: 94.42 kB / 0.5776 GB, free: 12.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.4263, allocations: 1.067 MB / 0.5787 GB, free: 11.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-05/0.4264, allocations: 49.7 kB / 0.5787 GB, free: 11.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.4268, allocations: 0.7915 MB / 0.5795 GB, free: 10.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003983/0.4272, allocations: 0.5854 MB / 0.5801 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004634/0.4277, allocations: 351.3 kB / 0.5804 GB, free: 10 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.962e-05/0.4278, allocations: 301.1 kB / 0.5807 GB, free: 9.707 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.4291, allocations: 0.8472 MB / 0.5815 GB, free: 8.855 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.4307, allocations: 1.356 MB / 0.5828 GB, free: 7.293 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.012/0.4427, allocations: 5.183 MB / 0.5879 GB, free: 1.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.4427, allocations: 4 kB / 0.5879 GB, free: 1.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.008127/0.4508, allocations: 4.2 MB / 0.592 GB, free: 13.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.4509, allocations: 8 kB / 0.592 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.4509, allocations: 16 kB / 0.592 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004201/0.4551, allocations: 1.607 MB / 0.5936 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.4562, allocations: 315.5 kB / 0.5939 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1179/0.5741, allocations: 20.87 MB / 0.6143 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.5756, allocations: 95.92 kB / 0.6144 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003088/0.5759, allocations: 80 kB / 0.6145 GB, free: 5.797 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.00114/0.5771, allocations: 0.5501 MB / 0.615 GB, free: 5.238 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.5775, allocations: 150.1 kB / 0.6151 GB, free: 5.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/0.5828, allocations: 2.797 MB / 0.6179 GB, free: 2.188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.5828, allocations: 19.94 kB / 0.6179 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.5829, allocations: 16 kB / 0.6179 GB, free: 2.152 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.5829, allocations: 11.95 kB / 0.6179 GB, free: 2.141 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/0.5935, allocations: 4.82 MB / 0.6226 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.5936, allocations: 0 / 0.6226 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/0.5953, allocations: 339.9 kB / 0.6229 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001524/0.5968, allocations: 0.5013 MB / 0.6234 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/0.5971, allocations: 51.97 kB / 0.6235 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/0.6091, allocations: 12.73 MB / 0.6359 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.6091, allocations: 8.203 kB / 0.6359 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006736/0.6159, allocations: 3.728 MB / 0.6396 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009861/0.6169, allocations: 359.1 kB / 0.6399 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003866/0.6173, allocations: 55.92 kB / 0.64 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.6184, allocations: 71.92 kB / 0.64 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/0.6187, allocations: 129.1 kB / 0.6402 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.6189, allocations: 47.98 kB / 0.6402 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001248/0.6201, allocations: 0.7139 MB / 0.6409 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6201, allocations: 0 / 0.6409 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002349/0.6225, allocations: 0.5937 MB / 0.6415 GB, free: 8.641 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.0004469/0.623, allocations: 201.2 kB / 0.6417 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006329/0.6293, allocations: 3.484 MB / 0.6451 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.6294, allocations: 0 / 0.6451 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003225/0.6326, allocations: 1.893 MB / 0.6469 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.6349, allocations: 341.9 kB / 0.6472 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.6449, allocations: 5.407 MB / 0.6525 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/0.647, allocations: 1.62 MB / 0.6541 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007406/0.6477, allocations: 127.3 kB / 0.6542 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of SimCode: time 8.21e-07/0.6478, allocations: 4 kB / 0.6542 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of Templates: time 0.2644/0.9121, allocations: 65.29 MB / 0.718 GB, free: 171.9 MB / 0.5606 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)