Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 115.2 kB / 16.62 MB, free: 6.809 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.002134/0.002133, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.309/1.309, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1827/0.1827, allocations: 38.03 MB / 329.4 MB, free: 8.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.61 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.118, allocations: 58.06 MB / 456.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01591/0.1339, allocations: 12.99 MB / 469.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.1497, allocations: 7.679 MB / 477 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002632/0.1524, allocations: 87.44 kB / 477.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02221/0.1746, allocations: 13.37 MB / 490.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003514/0.1782, allocations: 1.031 MB / 491.5 MB, free: 5.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.1803, allocations: 0.5928 MB / 492.1 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006585/0.1869, allocations: 3.997 MB / 496.1 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001937/0.1888, allocations: 1.051 MB / 497.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002179/0.191, allocations: 1.097 MB / 498.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.1932, allocations: 1.503 MB / 499.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006534/0.1939, allocations: 144 kB / 499.9 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.1954, allocations: 0.511 MB / 0.4886 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.1966, allocations: 0.8923 MB / 0.4895 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.1988, allocations: 0.9601 MB / 0.4905 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003604/0.2024, allocations: 2.446 MB / 0.4928 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2024, allocations: 0 / 0.4928 GB, free: 7.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2024, allocations: 4 kB / 0.4928 GB, free: 7.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001083/0.2026, allocations: 0 / 0.4928 GB, free: 7.914 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005276/0.2078, allocations: 2.158 MB / 0.495 GB, free: 5.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.2079, allocations: 11.89 kB / 0.495 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.2097, allocations: 318.4 kB / 0.4953 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002588/0.2123, allocations: 1.233 MB / 0.4965 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-05/0.2124, allocations: 102.7 kB / 0.4966 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005611/0.213, allocations: 227.8 kB / 0.4968 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003378/0.2164, allocations: 2.151 MB / 0.4989 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.2164, allocations: 19.78 kB / 0.4989 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001806/0.2166, allocations: 51.98 kB / 0.499 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006123/0.2172, allocations: 182.7 kB / 0.4991 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2514/0.4686, allocations: 1.755 MB / 0.5008 GB, free: 57.41 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.01115/0.4798, allocations: 8.625 MB / 0.5093 GB, free: 52.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/0.4821, allocations: 1.813 MB / 0.511 GB, free: 51.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.4835, allocations: 0.7796 MB / 0.5118 GB, free: 51.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.441e-05/0.4836, allocations: 17.84 kB / 0.5118 GB, free: 51.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.4837, allocations: 51.91 kB / 0.5119 GB, free: 51.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.306e-06/0.4837, allocations: 0 / 0.5119 GB, free: 51.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01093/0.4946, allocations: 5.452 MB / 0.5172 GB, free: 48.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.4947, allocations: 92.02 kB / 0.5173 GB, free: 48.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001485/0.4962, allocations: 1.032 MB / 0.5183 GB, free: 47.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.545e-05/0.4963, allocations: 51.05 kB / 0.5183 GB, free: 47.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003861/0.4967, allocations: 0.7653 MB / 0.5191 GB, free: 47.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.497, allocations: 0.4962 MB / 0.5196 GB, free: 46.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004752/0.4975, allocations: 313.5 kB / 0.5199 GB, free: 46.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.186e-05/0.4975, allocations: 305.8 kB / 0.5202 GB, free: 46.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.4986, allocations: 0.7195 MB / 0.5209 GB, free: 46.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/0.5001, allocations: 1.185 MB / 0.522 GB, free: 45.39 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.01101/0.5111, allocations: 5.012 MB / 0.5269 GB, free: 42.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.5112, allocations: 7.375 kB / 0.5269 GB, free: 42.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006909/0.5181, allocations: 3.594 MB / 0.5304 GB, free: 40.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.5181, allocations: 12 kB / 0.5304 GB, free: 40.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.5182, allocations: 17.44 kB / 0.5305 GB, free: 40.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003533/0.5217, allocations: 1.264 MB / 0.5317 GB, free: 39.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.5229, allocations: 315.5 kB / 0.532 GB, free: 38.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/0.5397, allocations: 16.03 MB / 0.5476 GB, free: 22.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.5413, allocations: 76.03 kB / 0.5477 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.5414, allocations: 76 kB / 0.5478 GB, free: 22.06 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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: 63 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008733/0.5423, allocations: 0.5128 MB / 0.5483 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/0.5425, allocations: 142.2 kB / 0.5484 GB, free: 21.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002767/0.5453, allocations: 2.135 MB / 0.5505 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.5453, allocations: 19.88 kB / 0.5505 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5454, allocations: 7.828 kB / 0.5505 GB, free: 19.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.5454, allocations: 7.969 kB / 0.5505 GB, free: 19.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005061/0.5504, allocations: 3.836 MB / 0.5543 GB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.5505, allocations: 11.62 kB / 0.5543 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.552, allocations: 323.5 kB / 0.5546 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004852/0.5525, allocations: 200.1 kB / 0.5548 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.5526, allocations: 51.97 kB / 0.5549 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.5566, allocations: 7.952 MB / 0.5626 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5566, allocations: 0 / 0.5626 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003343/0.5599, allocations: 2.821 MB / 0.5654 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004852/0.5604, allocations: 335.2 kB / 0.5657 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.5606, allocations: 43.98 kB / 0.5657 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007672/0.5614, allocations: 59.88 kB / 0.5658 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.5616, allocations: 99.64 kB / 0.5659 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/0.5617, allocations: 39.98 kB / 0.5659 GB, free: 2.398 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007213/0.5624, allocations: 0.6931 MB / 0.5666 GB, free: 1.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5624, allocations: 4 kB / 0.5666 GB, free: 1.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001602/0.564, allocations: 0.5052 MB / 0.5671 GB, free: 1.191 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,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]) * 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 (126): * Single equations (assignments): 120 * 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.0002995/0.5643, allocations: 172.1 kB / 0.5673 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006101/0.5704, allocations: 3.691 MB / 0.5709 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5705, allocations: 0 / 0.5709 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002022/0.5725, allocations: 1.371 MB / 0.5722 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.574, allocations: 329.3 kB / 0.5725 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00802/0.5821, allocations: 5.711 MB / 0.5781 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.5833, allocations: 1.551 MB / 0.5796 GB, free: 4.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001342/0.5846, allocations: 448 kB / 0.58 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.585, allocations: 107.4 kB / 0.5801 GB, free: 3.688 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.585, allocations: 0 / 0.5801 GB, free: 3.688 MB / 398.1 MB Notification: Performance of Templates: time 0.04023/0.6252, allocations: 26.88 MB / 0.6064 GB, free: 9 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)