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.001546/0.001546, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001701/0.001701, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.365/1.365, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1854/0.1854, allocations: 38.03 MB / 330.4 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 61.17 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09859/0.1002, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01325/0.1135, allocations: 11.03 MB / 468.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1244, allocations: 7.082 MB / 475.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.1257, allocations: 47.75 kB / 475.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02114/0.1468, allocations: 12.86 MB / 488.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002981/0.1498, allocations: 1.124 MB / 489.7 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002235/0.1521, allocations: 0.6978 MB / 490.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005818/0.1579, allocations: 4.005 MB / 494.4 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001712/0.1597, allocations: 1 MB / 495.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002018/0.1617, allocations: 1.113 MB / 496.5 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.164, allocations: 1.445 MB / 497.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005389/0.1646, allocations: 152 kB / 498.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.1663, allocations: 0.5149 MB / 498.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.1677, allocations: 0.904 MB / 499.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001882/0.1696, allocations: 0.9834 MB / 0.4887 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003199/0.1728, allocations: 2.527 MB / 0.4912 GB, free: 10.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1728, allocations: 0 / 0.4912 GB, free: 10.42 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1728, allocations: 4 kB / 0.4912 GB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.654e-05/0.1729, allocations: 0 / 0.4912 GB, free: 10.41 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.005387/0.1783, allocations: 2.217 MB / 0.4934 GB, free: 8.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1784, allocations: 12.03 kB / 0.4934 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00201/0.1804, allocations: 326.3 kB / 0.4937 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.1833, allocations: 1.28 MB / 0.4949 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.1834, allocations: 106.7 kB / 0.495 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006876/0.1841, allocations: 235.8 kB / 0.4953 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004088/0.1882, allocations: 2.188 MB / 0.4974 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-05/0.1883, allocations: 19.83 kB / 0.4974 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/0.1884, allocations: 59.98 kB / 0.4975 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000654/0.1891, allocations: 182.8 kB / 0.4977 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.1924, allocations: 1.83 MB / 0.4994 GB, free: 1.754 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.2316/0.4241, allocations: 8.562 MB / 0.5078 GB, free: 32.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.4268, allocations: 1.903 MB / 0.5097 GB, free: 31.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.4283, allocations: 0.81 MB / 0.5105 GB, free: 31.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.505e-05/0.4285, allocations: 21.28 kB / 0.5105 GB, free: 31.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.4285, allocations: 51.02 kB / 0.5105 GB, free: 31.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.306e-06/0.4285, allocations: 0 / 0.5105 GB, free: 31.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.0134/0.4419, allocations: 5.938 MB / 0.5163 GB, free: 30.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.442, allocations: 96.36 kB / 0.5164 GB, free: 30.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.4436, allocations: 1.069 MB / 0.5175 GB, free: 29.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.4437, allocations: 51.11 kB / 0.5175 GB, free: 29.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004889/0.4442, allocations: 0.7898 MB / 0.5183 GB, free: 29.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003913/0.4446, allocations: 0.5214 MB / 0.5188 GB, free: 29.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004984/0.4451, allocations: 325.4 kB / 0.5191 GB, free: 29.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.138e-05/0.4451, allocations: 310.2 kB / 0.5194 GB, free: 28.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.4464, allocations: 0.7411 MB / 0.5201 GB, free: 28.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.4478, allocations: 1.228 MB / 0.5213 GB, free: 27.82 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.009776/0.4576, allocations: 4.347 MB / 0.5256 GB, free: 26.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.101e-05/0.4577, allocations: 4.125 kB / 0.5256 GB, free: 26.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007748/0.4654, allocations: 3.974 MB / 0.5294 GB, free: 24.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.4655, allocations: 9.781 kB / 0.5295 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/0.4655, allocations: 15.34 kB / 0.5295 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003829/0.4693, allocations: 1.463 MB / 0.5309 GB, free: 24.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.4704, allocations: 289.4 kB / 0.5312 GB, free: 24.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02027/0.4907, allocations: 20.97 MB / 0.5517 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.4923, allocations: 79.94 kB / 0.5517 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003144/0.4927, allocations: 87.14 kB / 0.5518 GB, free: 4.723 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.001206/0.4939, allocations: 0.5253 MB / 0.5523 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/0.4945, allocations: 146.1 kB / 0.5525 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.4975, allocations: 2.218 MB / 0.5546 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.4975, allocations: 16 kB / 0.5546 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4975, allocations: 4 kB / 0.5547 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4976, allocations: 3.984 kB / 0.5547 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005873/0.5034, allocations: 3.985 MB / 0.5585 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5035, allocations: 4 kB / 0.5586 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.5051, allocations: 341.8 kB / 0.5589 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005258/0.5056, allocations: 207.7 kB / 0.5591 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.5058, allocations: 47.97 kB / 0.5591 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/0.5115, allocations: 7.936 MB / 0.5669 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.5115, allocations: 7.375 kB / 0.5669 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004582/0.5161, allocations: 2.935 MB / 0.5697 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008182/0.517, allocations: 335.1 kB / 0.5701 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.5173, allocations: 47.98 kB / 0.5701 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009724/0.5183, allocations: 59.94 kB / 0.5702 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.5186, allocations: 104.7 kB / 0.5703 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.5187, allocations: 43.92 kB / 0.5703 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001094/0.5198, allocations: 0.7139 MB / 0.571 GB, free: 92 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5198, allocations: 0 / 0.571 GB, free: 92 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002301/0.5221, allocations: 0.5428 MB / 0.5715 GB, free: 15.55 MB / 414.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.0004278/0.5225, allocations: 182.8 kB / 0.5717 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007245/0.5298, allocations: 4.213 MB / 0.5758 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.5298, allocations: 1.562 kB / 0.5758 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.532, allocations: 1.417 MB / 0.5772 GB, free: 9.715 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.5339, allocations: 334 kB / 0.5775 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008749/0.5426, allocations: 5.302 MB / 0.5827 GB, free: 4.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/0.5442, allocations: 1.572 MB / 0.5842 GB, free: 2.469 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004887/0.5447, allocations: 123.4 kB / 0.5844 GB, free: 2.348 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5447, allocations: 0 / 0.5844 GB, free: 2.348 MB / 414.1 MB Notification: Performance of Templates: time 0.06666/0.6114, allocations: 58.99 MB / 0.642 GB, free: 7.398 MB / 478.1 MB 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)