Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001088/0.001088, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001145/0.001145, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.329/1.329, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1881/0.1881, allocations: 38.03 MB / 330.6 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 71.89 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3476, allocations: 58.05 MB / 0.5047 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01615/0.3638, allocations: 11.03 MB / 0.5155 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01738/0.3812, allocations: 7.072 MB / 0.5224 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.3833, allocations: 52.78 kB / 0.5225 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02862/0.4119, allocations: 12.87 MB / 0.535 GB, free: 6.363 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004477/0.4164, allocations: 1.14 MB / 0.5362 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00245/0.4189, allocations: 0.6886 MB / 0.5368 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006368/0.4253, allocations: 4.018 MB / 0.5408 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.4271, allocations: 0.9951 MB / 0.5417 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.4295, allocations: 1.131 MB / 0.5428 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002551/0.432, allocations: 1.437 MB / 0.5442 GB, free: 116 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005624/0.4326, allocations: 152 kB / 0.5444 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.4342, allocations: 0.5149 MB / 0.5449 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001241/0.4355, allocations: 0.9078 MB / 0.5458 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001844/0.4373, allocations: 0.9834 MB / 0.5467 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.441, allocations: 2.554 MB / 0.5492 GB, free: 10.99 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.441, allocations: 0 / 0.5492 GB, free: 10.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4411, allocations: 3.938 kB / 0.5492 GB, free: 10.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.904e-05/0.4412, allocations: 0 / 0.5492 GB, free: 10.98 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.005565/0.4467, allocations: 2.224 MB / 0.5514 GB, free: 8.699 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4468, allocations: 11.89 kB / 0.5514 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002026/0.4488, allocations: 334.2 kB / 0.5517 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/0.4519, allocations: 1.338 MB / 0.553 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.452, allocations: 102.7 kB / 0.5531 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006812/0.4527, allocations: 239.7 kB / 0.5534 GB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.4566, allocations: 2.188 MB / 0.5555 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.732e-05/0.4567, allocations: 7.938 kB / 0.5555 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001714/0.4569, allocations: 63.92 kB / 0.5556 GB, free: 4.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006814/0.4576, allocations: 182.8 kB / 0.5557 GB, free: 4.098 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003392/0.461, allocations: 1.834 MB / 0.5575 GB, free: 2.258 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.01253/0.4735, allocations: 8.52 MB / 0.5659 GB, free: 9.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002714/0.4763, allocations: 1.901 MB / 0.5677 GB, free: 7.289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.4777, allocations: 0.8009 MB / 0.5685 GB, free: 6.488 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.042e-05/0.4778, allocations: 21.38 kB / 0.5685 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.4779, allocations: 43.88 kB / 0.5686 GB, free: 6.418 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 4.759e-06/0.4779, allocations: 7.922 kB / 0.5686 GB, free: 6.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.0239/0.5018, allocations: 9.211 MB / 0.5776 GB, free: 12.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.5019, allocations: 94.42 kB / 0.5776 GB, free: 12.85 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.5033, allocations: 1.067 MB / 0.5787 GB, free: 11.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.5035, allocations: 53.64 kB / 0.5787 GB, free: 11.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00055/0.504, allocations: 0.7915 MB / 0.5795 GB, free: 10.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004908/0.5045, allocations: 0.5815 MB / 0.5801 GB, free: 10.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005251/0.5051, allocations: 355.3 kB / 0.5804 GB, free: 9.965 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.5052, allocations: 301.1 kB / 0.5807 GB, free: 9.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.5066, allocations: 0.8472 MB / 0.5815 GB, free: 8.816 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.5083, allocations: 1.352 MB / 0.5829 GB, free: 7.258 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.01317/0.5215, allocations: 5.183 MB / 0.5879 GB, free: 1.902 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/0.5216, allocations: 8 kB / 0.5879 GB, free: 1.895 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009269/0.5308, allocations: 4.196 MB / 0.592 GB, free: 13.63 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.5309, allocations: 8 kB / 0.592 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.908e-05/0.5309, allocations: 16 kB / 0.592 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004715/0.5356, allocations: 1.607 MB / 0.5936 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.537, allocations: 315.5 kB / 0.5939 GB, free: 11.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02707/0.5641, allocations: 20.88 MB / 0.6143 GB, free: 5.922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.5655, allocations: 91.92 kB / 0.6144 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/0.5657, allocations: 80 kB / 0.6145 GB, free: 5.754 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.001012/0.5667, allocations: 0.5498 MB / 0.615 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.5671, allocations: 150.1 kB / 0.6151 GB, free: 5.047 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/0.5722, allocations: 2.797 MB / 0.6179 GB, free: 2.145 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.5722, allocations: 16 kB / 0.6179 GB, free: 2.129 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.5722, allocations: 12 kB / 0.6179 GB, free: 2.117 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/0.5723, allocations: 11.95 kB / 0.6179 GB, free: 2.105 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008311/0.5806, allocations: 4.817 MB / 0.6226 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.5806, allocations: 0 / 0.6226 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.5823, allocations: 343.8 kB / 0.6229 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.5838, allocations: 0.5054 MB / 0.6234 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/0.584, allocations: 51.97 kB / 0.6235 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.5952, allocations: 12.73 MB / 0.6359 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5952, allocations: 4.031 kB / 0.6359 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/0.6013, allocations: 3.735 MB / 0.6396 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006691/0.602, allocations: 359.1 kB / 0.6399 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.6023, allocations: 55.92 kB / 0.64 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009651/0.6033, allocations: 71.92 kB / 0.64 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.6036, allocations: 129.1 kB / 0.6402 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6037, allocations: 47.98 kB / 0.6402 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009708/0.6046, allocations: 0.7139 MB / 0.6409 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6047, allocations: 0 / 0.6409 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00194/0.6066, allocations: 0.5937 MB / 0.6415 GB, free: 8.602 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.0003965/0.607, allocations: 202.4 kB / 0.6417 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005825/0.6128, allocations: 3.488 MB / 0.6451 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6129, allocations: 0 / 0.6451 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002804/0.6157, allocations: 1.897 MB / 0.6469 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.6172, allocations: 331.3 kB / 0.6473 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008296/0.6255, allocations: 5.416 MB / 0.6525 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.627, allocations: 1.624 MB / 0.6541 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.6274, allocations: 127.3 kB / 0.6543 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.6275, allocations: 4 kB / 0.6543 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of Templates: time 0.2731/0.9005, allocations: 65.03 MB / 0.7178 GB, free: 178.1 MB / 0.5606 GB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)