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.001033/0.001033, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009419/0.0009418, allocations: 182 kB / 17.56 MB, free: 6.203 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.393/1.393, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1735/0.1735, allocations: 38.08 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005391/0.0005391, allocations: 9 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1287, allocations: 59.15 MB / 459.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01495/0.1437, allocations: 12.45 MB / 472.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.1578, allocations: 7.77 MB / 480.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.1598, allocations: 79.44 kB / 480.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02045/0.1803, allocations: 12.51 MB / 492.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003072/0.1834, allocations: 1.055 MB / 493.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1851, allocations: 0.5811 MB / 494.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007031/0.1922, allocations: 5.549 MB / 499.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/0.1943, allocations: 1.32 MB / 0.4894 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001602/0.196, allocations: 0.8711 MB / 0.4903 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002234/0.1982, allocations: 1.425 MB / 0.4917 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002772/0.1985, allocations: 72 kB / 0.4917 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.1998, allocations: 459.2 kB / 0.4922 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001117/0.201, allocations: 0.8181 MB / 0.493 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.2023, allocations: 0.8915 MB / 0.4938 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003457/0.2058, allocations: 2.355 MB / 0.4961 GB, free: 6.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2058, allocations: 0 / 0.4961 GB, free: 6.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2058, allocations: 0 / 0.4961 GB, free: 6.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.885e-05/0.2059, allocations: 0 / 0.4961 GB, free: 6.691 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.005487/0.2114, allocations: 1.831 MB / 0.4979 GB, free: 4.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.652e-05/0.2115, allocations: 8.031 kB / 0.4979 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002817/0.2143, allocations: 334.2 kB / 0.4983 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/0.2179, allocations: 1.229 MB / 0.4995 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.2181, allocations: 102.7 kB / 0.4995 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008051/0.2189, allocations: 235.7 kB / 0.4998 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004129/0.223, allocations: 2.154 MB / 0.5019 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.008e-05/0.2231, allocations: 7.938 kB / 0.5019 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.2233, allocations: 63.98 kB / 0.5019 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000877/0.2242, allocations: 178.7 kB / 0.5021 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2438/0.468, allocations: 1.763 MB / 0.5038 GB, free: 57.2 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.01056/0.4786, allocations: 8.634 MB / 0.5123 GB, free: 52.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.4808, allocations: 1.823 MB / 0.5141 GB, free: 51.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.4821, allocations: 0.7715 MB / 0.5148 GB, free: 50.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.491e-05/0.4822, allocations: 17.59 kB / 0.5148 GB, free: 50.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.4822, allocations: 52.39 kB / 0.5149 GB, free: 50.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.499e-06/0.4822, allocations: 2.781 kB / 0.5149 GB, free: 50.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01054/0.4927, allocations: 5.5 MB / 0.5202 GB, free: 48.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.4928, allocations: 92.42 kB / 0.5203 GB, free: 48.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.494, allocations: 1.036 MB / 0.5213 GB, free: 47.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.582e-05/0.4942, allocations: 51.23 kB / 0.5214 GB, free: 47.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.4946, allocations: 0.7584 MB / 0.5221 GB, free: 46.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.4949, allocations: 0.4984 MB / 0.5226 GB, free: 46.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/0.4951, allocations: 152.5 kB / 0.5228 GB, free: 46.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.4952, allocations: 310.4 kB / 0.5231 GB, free: 46.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.4961, allocations: 0.7274 MB / 0.5238 GB, free: 45.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.4973, allocations: 1.188 MB / 0.5249 GB, free: 44.96 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.0104/0.5078, allocations: 5.004 MB / 0.5298 GB, free: 42.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.899e-05/0.5078, allocations: 7.406 kB / 0.5298 GB, free: 42.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006468/0.5143, allocations: 3.616 MB / 0.5334 GB, free: 38.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.5143, allocations: 16.16 kB / 0.5334 GB, free: 38.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.5143, allocations: 12 kB / 0.5334 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003328/0.5177, allocations: 1.26 MB / 0.5346 GB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.519, allocations: 319.5 kB / 0.5349 GB, free: 36.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/0.5349, allocations: 14.69 MB / 0.5493 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.5365, allocations: 71.95 kB / 0.5493 GB, free: 21.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.5367, allocations: 75.98 kB / 0.5494 GB, free: 21.51 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 sytem: 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.0009216/0.5376, allocations: 0.5184 MB / 0.5499 GB, free: 20.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.5378, allocations: 138.3 kB / 0.55 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002736/0.5406, allocations: 2.154 MB / 0.5521 GB, free: 18.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.5406, allocations: 12 kB / 0.5522 GB, free: 18.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5406, allocations: 4 kB / 0.5522 GB, free: 18.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.5406, allocations: 7.969 kB / 0.5522 GB, free: 18.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00514/0.5458, allocations: 3.87 MB / 0.556 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5458, allocations: 0 / 0.556 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.5473, allocations: 327.9 kB / 0.5563 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/0.5477, allocations: 212 kB / 0.5565 GB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.617e-05/0.5478, allocations: 47.97 kB / 0.5565 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003679/0.5515, allocations: 7.308 MB / 0.5636 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5515, allocations: 12.09 kB / 0.5637 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/0.5549, allocations: 2.837 MB / 0.5664 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.5555, allocations: 339.2 kB / 0.5668 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.5557, allocations: 39.98 kB / 0.5668 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007302/0.5564, allocations: 59.94 kB / 0.5668 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.5566, allocations: 97.06 kB / 0.5669 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.221e-05/0.5567, allocations: 47.98 kB / 0.567 GB, free: 2.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007507/0.5575, allocations: 0.6931 MB / 0.5677 GB, free: 1.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5575, allocations: 0 / 0.5677 GB, free: 1.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001596/0.5591, allocations: 0.5031 MB / 0.5682 GB, free: 1.238 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.000308/0.5594, allocations: 181 kB / 0.5683 GB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004361/0.5637, allocations: 2.82 MB / 0.5711 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5638, allocations: 0 / 0.5711 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.5658, allocations: 1.381 MB / 0.5724 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.5676, allocations: 312.2 kB / 0.5727 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008198/0.5759, allocations: 6.097 MB / 0.5787 GB, free: 6.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/0.5772, allocations: 1.547 MB / 0.5802 GB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001477/0.5787, allocations: 440.1 kB / 0.5806 GB, free: 4.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.5791, allocations: 111.4 kB / 0.5807 GB, free: 4.176 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5791, allocations: 0 / 0.5807 GB, free: 4.176 MB / 398.1 MB Notification: Performance of Templates: time 0.04637/0.6255, allocations: 25.26 MB / 0.6054 GB, free: 11.11 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)