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.001506/0.001506, allocations: 112 kB / 17.06 MB, free: 5.988 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.001509/0.001509, allocations: 195.9 kB / 18 MB, free: 5.074 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.403/1.403, allocations: 222.9 MB / 241.7 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.1779/0.1779, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.89 kB / 458.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4271, allocations: 58.05 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01381/0.4409, allocations: 11.02 MB / 0.5149 GB, free: 28 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.4592, allocations: 7.079 MB / 0.5218 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003195/0.4625, allocations: 52.66 kB / 0.5218 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02638/0.489, allocations: 12.86 MB / 0.5344 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.4934, allocations: 1.124 MB / 0.5355 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002415/0.4959, allocations: 0.6884 MB / 0.5362 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007305/0.5032, allocations: 4.019 MB / 0.5401 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.5049, allocations: 0.9921 MB / 0.5411 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.5076, allocations: 1.127 MB / 0.5422 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002875/0.5105, allocations: 1.437 MB / 0.5436 GB, free: 200 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006234/0.5111, allocations: 148 kB / 0.5437 GB, free: 52 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.5129, allocations: 0.5188 MB / 0.5442 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.5145, allocations: 0.9078 MB / 0.5451 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002243/0.5167, allocations: 0.9796 MB / 0.546 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004302/0.521, allocations: 2.565 MB / 0.5486 GB, free: 11.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.5211, allocations: 0 / 0.5486 GB, free: 11.06 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5211, allocations: 0 / 0.5486 GB, free: 11.06 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.595e-05/0.5211, allocations: 0 / 0.5486 GB, free: 11.06 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.005558/0.5267, allocations: 2.288 MB / 0.5508 GB, free: 8.711 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.5268, allocations: 11.89 kB / 0.5508 GB, free: 8.699 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/0.5286, allocations: 339.4 kB / 0.5511 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.5312, allocations: 1.351 MB / 0.5524 GB, free: 6.973 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.5313, allocations: 102.7 kB / 0.5525 GB, free: 6.871 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.5318, allocations: 231.9 kB / 0.5528 GB, free: 6.645 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003283/0.5351, allocations: 2.196 MB / 0.5549 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.5352, allocations: 11.89 kB / 0.5549 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.5353, allocations: 55.98 kB / 0.555 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006359/0.536, allocations: 190.8 kB / 0.5552 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003098/0.5391, allocations: 1.83 MB / 0.5569 GB, free: 2.254 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.01193/0.551, allocations: 8.53 MB / 0.5653 GB, free: 9.309 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.5538, allocations: 1.916 MB / 0.5671 GB, free: 7.262 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.5552, allocations: 0.7929 MB / 0.5679 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.193e-05/0.5553, allocations: 21.38 kB / 0.5679 GB, free: 6.449 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.5553, allocations: 43.88 kB / 0.568 GB, free: 6.398 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.175e-06/0.5553, allocations: 0 / 0.568 GB, free: 6.398 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02366/0.579, allocations: 9.268 MB / 0.577 GB, free: 12.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5791, allocations: 94.42 kB / 0.5771 GB, free: 12.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.5809, allocations: 1.063 MB / 0.5782 GB, free: 11.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.581, allocations: 53.7 kB / 0.5782 GB, free: 11.65 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006597/0.5817, allocations: 0.8054 MB / 0.579 GB, free: 10.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/0.5823, allocations: 0.6236 MB / 0.5796 GB, free: 10.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005527/0.5829, allocations: 359.4 kB / 0.5799 GB, free: 9.852 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.583, allocations: 309.1 kB / 0.5802 GB, free: 9.547 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.5846, allocations: 0.8433 MB / 0.5811 GB, free: 8.699 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/0.5865, allocations: 1.348 MB / 0.5824 GB, free: 7.145 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.01365/0.6002, allocations: 5.179 MB / 0.5874 GB, free: 1.793 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.6002, allocations: 4 kB / 0.5874 GB, free: 1.789 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009306/0.6095, allocations: 4.201 MB / 0.5915 GB, free: 13.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.6096, allocations: 16.03 kB / 0.5916 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.6096, allocations: 16 kB / 0.5916 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004865/0.6145, allocations: 1.606 MB / 0.5931 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.6158, allocations: 315.5 kB / 0.5934 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02905/0.6449, allocations: 20.89 MB / 0.6138 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.6465, allocations: 91.92 kB / 0.6139 GB, free: 5.707 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/0.6469, allocations: 84.05 kB / 0.614 GB, free: 5.625 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.001279/0.6482, allocations: 0.5497 MB / 0.6145 GB, free: 5.066 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00042/0.6486, allocations: 163.1 kB / 0.6147 GB, free: 4.906 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005485/0.6541, allocations: 2.805 MB / 0.6174 GB, free: 1.996 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/0.6541, allocations: 16.28 kB / 0.6175 GB, free: 1.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.6542, allocations: 4 kB / 0.6175 GB, free: 1.977 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.493e-05/0.6542, allocations: 11.97 kB / 0.6175 GB, free: 1.965 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00988/0.6641, allocations: 4.821 MB / 0.6222 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.6641, allocations: 4 kB / 0.6222 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001764/0.6659, allocations: 343.5 kB / 0.6225 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/0.6675, allocations: 0.4937 MB / 0.623 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/0.6678, allocations: 55.97 kB / 0.623 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/0.6801, allocations: 12.75 MB / 0.6355 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.6801, allocations: 4 kB / 0.6355 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006941/0.6871, allocations: 3.729 MB / 0.6391 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008408/0.6879, allocations: 375.9 kB / 0.6395 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/0.6883, allocations: 51.92 kB / 0.6395 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.6894, allocations: 71.92 kB / 0.6396 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003313/0.6897, allocations: 129.1 kB / 0.6397 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/0.6899, allocations: 47.98 kB / 0.6398 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001159/0.691, allocations: 0.71 MB / 0.6405 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.691, allocations: 0 / 0.6405 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002248/0.6933, allocations: 0.5975 MB / 0.6411 GB, free: 8.441 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.0004207/0.6937, allocations: 192.5 kB / 0.6412 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006514/0.7002, allocations: 3.515 MB / 0.6447 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.7003, allocations: 0 / 0.6447 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003215/0.7035, allocations: 1.885 MB / 0.6465 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.7053, allocations: 339 kB / 0.6468 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00903/0.7143, allocations: 5.347 MB / 0.6521 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.7161, allocations: 1.633 MB / 0.6537 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001351/0.7175, allocations: 441.3 kB / 0.6541 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/0.718, allocations: 119.3 kB / 0.6542 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/0.718, allocations: 0 / 0.6542 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of Templates: time 0.05632/0.7743, allocations: 32.47 MB / 0.6859 GB, free: 10.43 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)