Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 81.09 kB / 20.67 MB, free: 3.824 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 177 kB / 24.08 MB, free: 432 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8914/0.8914, allocations: 158.6 MB / 186 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/package.mo): time 0.428/0.428, allocations: 91.27 MB / 329.6 MB, free: 13.91 MB / 314.7 MB " [Timeout remaining time 179] Using package Dynawo with version 1.8.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Ignoring simflag -noemit -noHomotopyOnFirstTry=() since the simulation runtime does not accept it Ignoring simflag -noemit -noRestart=() since the simulation runtime does not accept it Ignoring simflag -noemit -noRootFinding=() since the simulation runtime does not accept it Running command: translateModel(Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|BESS.injector.PInjPuSn|BESS.injector.QInjPuSn|BESS.injector.UPu|BESS.reecC.idCmdPu|BESS.reecC.iqCmdPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS") translateModel(Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|BESS.injector.PInjPuSn|BESS.injector.QInjPuSn|BESS.injector.UPu|BESS.reecC.idCmdPu|BESS.reecC.iqCmdPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 435.4 MB, free: 4.57 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.59e-05/2.781e-05, allocations: 6.25 kB / 435.4 MB, free: 4.562 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS): time 0.01993/0.01996, allocations: 15.23 MB / 450.6 MB, free: 5.246 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.03653, allocations: 7.35 MB / 457.9 MB, free: 13.88 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003124/0.03965, allocations: 103.3 kB / 458 MB, free: 13.78 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002448/0.0421, allocations: 1.016 MB / 459.1 MB, free: 12.75 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004487/0.04658, allocations: 1.568 MB / 460.6 MB, free: 11.18 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Machines/Protections/HVRT.mo:61:3-67:11:writable] Warning: In relation pre(BESS.hvrt.tThresholdReached) <> Modelica.Constants.inf, <> on Real operands is deprecated in non-function contexts. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Machines/Protections/LVRT.mo:61:3-67:11:writable] Warning: In relation pre(BESS.lvrt.tThresholdReached) <> Modelica.Constants.inf, <> on Real operands is deprecated in non-function contexts. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/WECC/BaseClasses_INIT/WECCPlantCurrentSource_INIT.mo:112:3-112:90:writable] Warning: In relation Modelica.ComplexMath.'abs'(wTG4CurrentSource_INIT.s0Pu) == 0.0, == on Real operands is deprecated in non-function contexts. Notification: Performance of NFTyping.typeClassSections: time 0.005381/0.05197, allocations: 3.579 MB / 464.2 MB, free: 7.59 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.005986/0.05795, allocations: 5.995 MB / 470.2 MB, free: 1.578 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.06009, allocations: 1.291 MB / 471.5 MB, free: 220 kB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1631/0.2232, allocations: 2.051 MB / 473.5 MB, free: 55.8 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.2252, allocations: 1.813 MB / 475.4 MB, free: 55.8 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001169/0.2264, allocations: 0.6066 MB / 476 MB, free: 55.8 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001374/0.2278, allocations: 0.9582 MB / 476.9 MB, free: 55.8 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008009/0.2286, allocations: 1.32 MB / 478.2 MB, free: 55.71 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.2303, allocations: 1.583 MB / 479.8 MB, free: 55.47 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004477/0.2348, allocations: 4.194 MB / 484 MB, free: 54.91 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2348, allocations: 0 / 484 MB, free: 54.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2348, allocations: 0.5 kB / 484 MB, free: 54.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001271/0.235, allocations: 0 / 484 MB, free: 54.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 797 * Number of variables: 797 Notification: Performance of Generate backend data structure: time 0.009416/0.2444, allocations: 6.507 MB / 490.5 MB, free: 52.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2444, allocations: 8.469 kB / 490.5 MB, free: 52.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003847/0.2483, allocations: 1.735 MB / 492.3 MB, free: 52.11 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.2518, allocations: 2.84 MB / 495.1 MB, free: 51.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003908/0.2521, allocations: 1.115 MB / 496.2 MB, free: 50.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000484/0.2526, allocations: 342.6 kB / 496.6 MB, free: 50.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003279/0.2559, allocations: 3.074 MB / 499.6 MB, free: 49.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.361e-05/0.256, allocations: 6.5 kB / 499.6 MB, free: 49.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.2562, allocations: 136.8 kB / 499.8 MB, free: 48.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.113e-05/0.2562, allocations: 77.56 kB / 499.8 MB, free: 48.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.2579, allocations: 1.127 MB / 0.4892 GB, free: 48.86 MB / 442.7 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.01231/0.2702, allocations: 11.43 MB / 0.5004 GB, free: 41.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.2728, allocations: 1.675 MB / 0.502 GB, free: 41.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007861/0.2736, allocations: 0.5152 MB / 0.5025 GB, free: 41.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.2738, allocations: 72.45 kB / 0.5026 GB, free: 41.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001582/0.2754, allocations: 1.234 MB / 0.5038 GB, free: 40.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 5.901e-06/0.2754, allocations: 3.938 kB / 0.5038 GB, free: 40.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=308): time 0.005546/0.281, allocations: 2.826 MB / 0.5066 GB, free: 40.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.781e-05/0.2811, allocations: 0.5102 MB / 0.5071 GB, free: 39.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.2841, allocations: 2.788 MB / 0.5098 GB, free: 39.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003173/0.2844, allocations: 107.1 kB / 0.5099 GB, free: 39.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.2856, allocations: 1.899 MB / 0.5117 GB, free: 37.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008212/0.2864, allocations: 1.067 MB / 0.5128 GB, free: 37.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009927/0.2874, allocations: 0.8453 MB / 0.5136 GB, free: 36.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.272e-05/0.2874, allocations: 478.5 kB / 0.5141 GB, free: 36.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.2885, allocations: 0.8023 MB / 0.5149 GB, free: 36.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.2899, allocations: 1.973 MB / 0.5168 GB, free: 34.69 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003288/0.2932, allocations: 3.333 MB / 0.52 GB, free: 33.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/0.2932, allocations: 3.156 kB / 0.52 GB, free: 33.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.00457/0.2978, allocations: 3.574 MB / 0.5235 GB, free: 32.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.255e-05/0.2978, allocations: 63.23 kB / 0.5236 GB, free: 32.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.2979, allocations: 10.19 kB / 0.5236 GB, free: 32.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007351/0.2986, allocations: 413.2 kB / 0.524 GB, free: 31.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.3005, allocations: 0.836 MB / 0.5248 GB, free: 31.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.3028, allocations: 2.686 MB / 0.5274 GB, free: 29.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/0.3049, allocations: 415.7 kB / 0.5278 GB, free: 29.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/0.3052, allocations: 111.8 kB / 0.5279 GB, free: 29.09 MB / 442.7 MB Warning: Assuming fixed start value for the following 38 variables: Zcc.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = Zcc.State0 fixed = true ) \"Line connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) ZPcs.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = ZPcs.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.HvTfo.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.HvTfo.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.LvTfo.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.LvTfo.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.injector.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.injector.State0 fixed = true ) \"Injector connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.reecC.firstOrder.y:VARIABLE(flow=false start = BESS.reecC.UConv0Pu fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.firstOrder1.y:VARIABLE(flow=false start = BESS.reecC.firstOrder1.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.limPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.limPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.rateLimFirstOrderFreeze1.y:VARIABLE(flow=false start = BESS.reecC.rateLimFirstOrderFreeze1.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.rateLimFirstOrderFreeze.y:VARIABLE(flow=false start = BESS.reecC.rateLimFirstOrderFreeze.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.varLimPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.varLimPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.rateLimFirstOrderFreeze2.y:VARIABLE(flow=false start = BESS.regcA.rateLimFirstOrderFreeze2.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.rateLimFirstOrderFreeze1.y:VARIABLE(flow=false start = BESS.regcA.rateLimFirstOrderFreeze1.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.firstOrder.y:VARIABLE(flow=false start = BESS.regcA.firstOrder.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.offDelay.delaySignal:DISCRETE(start = false fixed = true protected = true ) type: Boolean BESS.regcA.offDelay.tNext:DISCRETE(start = -1.0 unit = \"s\" fixed = true protected = true ) type: Real BESS.injector.running:DISCRETE(flow=false start = BESS.injector.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.LvTfo.running:DISCRETE(flow=false start = BESS.LvTfo.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.HvTfo.running:DISCRETE(flow=false start = BESS.HvTfo.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.repcA.firstOrder.y:VARIABLE(flow=false start = BESS.repcA.firstOrder.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder1.y:VARIABLE(flow=false start = BESS.repcA.firstOrder1.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder2.y:VARIABLE(flow=false start = BESS.repcA.firstOrder2.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder3.y:VARIABLE(flow=false start = BESS.repcA.firstOrder3.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.limPIDFreeze.I.y:VARIABLE(flow=false start = BESS.repcA.limPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.leadLag.x_scaled[1]:VARIABLE(start = BESS.repcA.leadLag.X0[1] * BESS.repcA.leadLag.a_end fixed = true protected = true ) \"Scaled vector x\" type: Real [1] BESS.hvrt.switchOffSignal:DISCRETE(flow=false start = false fixed = true ) \"Switch off message for the machine\" type: Boolean BESS.hvrt.filter.y:VARIABLE(flow=false start = BESS.hvrt.filter.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.hvrt.tThresholdReached:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"Time when the threshold is reached in s\" type: Real BESS.lvrt.switchOffSignal:DISCRETE(flow=false start = false fixed = true ) \"Switch off message for the machine\" type: Boolean BESS.lvrt.filter.y:VARIABLE(flow=false start = BESS.lvrt.filter.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.lvrt.tThresholdReached:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"Time when the threshold is reached in s\" type: Real ZPcs.running:DISCRETE(flow=false start = ZPcs.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean Zcc.running:DISCRETE(flow=false start = Zcc.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.lvrt.timer1.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.lvrt.timer.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.hvrt.timer1.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.hvrt.timer.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.regcA.offDelay.u:DISCRETE(flow=false fixed = true ) \"Boolean input signal\" type: Boolean Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002241/0.3074, allocations: 1.154 MB / 0.5291 GB, free: 28.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001351/0.3088, allocations: 1.974 MB / 0.531 GB, free: 26.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003219/0.312, allocations: 3.305 MB / 0.5342 GB, free: 22.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.184e-05/0.312, allocations: 7.359 kB / 0.5342 GB, free: 22.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization_lambda0): time 0.004316/0.3163, allocations: 3.566 MB / 0.5377 GB, free: 19.26 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/0.3163, allocations: 65.67 kB / 0.5378 GB, free: 19.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3164, allocations: 11.98 kB / 0.5378 GB, free: 19.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006612/0.317, allocations: 407.7 kB / 0.5382 GB, free: 18.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/0.3188, allocations: 0.823 MB / 0.539 GB, free: 18.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.321, allocations: 2.694 MB / 0.5416 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002253/0.3233, allocations: 394.1 kB / 0.542 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/0.3235, allocations: 116 kB / 0.5421 GB, free: 14.76 MB / 442.7 MB Warning: Assuming fixed start value for the following 38 variables: Zcc.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = Zcc.State0 fixed = true ) \"Line connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) ZPcs.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = ZPcs.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.HvTfo.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.HvTfo.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.LvTfo.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.LvTfo.State0 fixed = true ) \"Transformer connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.injector.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.injector.State0 fixed = true ) \"Injector connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.reecC.firstOrder.y:VARIABLE(flow=false start = BESS.reecC.UConv0Pu fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.firstOrder1.y:VARIABLE(flow=false start = BESS.reecC.firstOrder1.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.limPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.limPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.rateLimFirstOrderFreeze1.y:VARIABLE(flow=false start = BESS.reecC.rateLimFirstOrderFreeze1.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.rateLimFirstOrderFreeze.y:VARIABLE(flow=false start = BESS.reecC.rateLimFirstOrderFreeze.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.reecC.varLimPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.varLimPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.rateLimFirstOrderFreeze2.y:VARIABLE(flow=false start = BESS.regcA.rateLimFirstOrderFreeze2.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.rateLimFirstOrderFreeze1.y:VARIABLE(flow=false start = BESS.regcA.rateLimFirstOrderFreeze1.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.firstOrder.y:VARIABLE(flow=false start = BESS.regcA.firstOrder.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.regcA.offDelay.delaySignal:DISCRETE(start = false fixed = true protected = true ) type: Boolean BESS.regcA.offDelay.tNext:DISCRETE(start = -1.0 unit = \"s\" fixed = true protected = true ) type: Real BESS.injector.running:DISCRETE(flow=false start = BESS.injector.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.LvTfo.running:DISCRETE(flow=false start = BESS.LvTfo.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.HvTfo.running:DISCRETE(flow=false start = BESS.HvTfo.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.repcA.firstOrder.y:VARIABLE(flow=false start = BESS.repcA.firstOrder.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder1.y:VARIABLE(flow=false start = BESS.repcA.firstOrder1.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder2.y:VARIABLE(flow=false start = BESS.repcA.firstOrder2.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.firstOrder3.y:VARIABLE(flow=false start = BESS.repcA.firstOrder3.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.limPIDFreeze.I.y:VARIABLE(flow=false start = BESS.repcA.limPIDFreeze.I.Y0 fixed = true ) \"Connector of Real output signal\" type: Real BESS.repcA.leadLag.x_scaled[1]:VARIABLE(start = BESS.repcA.leadLag.X0[1] * BESS.repcA.leadLag.a_end fixed = true protected = true ) \"Scaled vector x\" type: Real [1] BESS.hvrt.switchOffSignal:DISCRETE(flow=false start = false fixed = true ) \"Switch off message for the machine\" type: Boolean BESS.hvrt.filter.y:VARIABLE(flow=false start = BESS.hvrt.filter.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.hvrt.tThresholdReached:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"Time when the threshold is reached in s\" type: Real BESS.lvrt.switchOffSignal:DISCRETE(flow=false start = false fixed = true ) \"Switch off message for the machine\" type: Boolean BESS.lvrt.filter.y:VARIABLE(flow=false start = BESS.lvrt.filter.y_start fixed = true ) \"Connector of Real output signal\" type: Real BESS.lvrt.tThresholdReached:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"Time when the threshold is reached in s\" type: Real ZPcs.running:DISCRETE(flow=false start = ZPcs.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean Zcc.running:DISCRETE(flow=false start = Zcc.Running0 fixed = true ) \"Indicates if the component is running or not\" type: Boolean BESS.lvrt.timer1.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.lvrt.timer.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.hvrt.timer1.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.hvrt.timer.u:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean BESS.regcA.offDelay.u:DISCRETE(flow=false fixed = true ) \"Boolean input signal\" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 112 ($PRE.Zcc.state,Zcc.state,$PRE.ZPcs.state,ZPcs.state,$PRE.BESS.HvTfo.state,BESS.HvTfo.state,$PRE.BESS.LvTfo.state,BESS.LvTfo.state,$PRE.BESS.injector.state,BESS.injector.state,BESS.reecC.limPIDFreeze.I.resetLocal,BESS.reecC.varLimPIDFreeze.I.resetLocal,BESS.reecC.integrator.local_reset,BESS.pll.integrator.local_reset,BESS.pll.limIntegrator.local_reset,BESS.repcA.limPID.I.local_reset,BESS.repcA.limPIDFreeze.I.resetLocal,BESS.regcA.rateLimFirstOrderFreeze2.local_freeze,BESS.regcA.rateLimFirstOrderFreeze1.local_freeze,ZPcs.switchOffSignal1,ZPcs.switchOffSignal2,Zcc.switchOffSignal1,Zcc.switchOffSignal2,BESS.injector.switchOffSignal1,BESS.injector.switchOffSignal2,$PRE.BESS.regcA.offDelay.delaySignal,$PRE.BESS.regcA.offDelay.tNext,$PRE.BESS.injector.running,$PRE.BESS.LvTfo.running,$PRE.BESS.HvTfo.running,$PRE.BESS.hvrt.switchOffSignal,$PRE.BESS.hvrt.tThresholdReached,$PRE.BESS.lvrt.switchOffSignal,$PRE.BESS.lvrt.tThresholdReached,$PRE.ZPcs.running,$PRE.Zcc.running,BESS.regcA.QConv0PuPos.k,BESS.regcA.QConv0PuNeg.k,$PRE.BESS.lvrt.pre1.u,$PRE.BESS.lvrt.timer1.entryTime,$PRE.BESS.lvrt.timer1.u,$PRE.BESS.lvrt.timer.entryTime,$PRE.BESS.lvrt.timer.u,$PRE.BESS.hvrt.pre1.u,$PRE.BESS.hvrt.timer1.entryTime,$PRE.BESS.hvrt.timer1.u,$PRE.BESS.hvrt.timer.entryTime,$PRE.BESS.hvrt.timer.u,$PRE.BESS.regcA.offDelay.u,Zcc.running,ZPcs.running,BESS.lvrt.tThresholdReached,BESS.lvrt.or1.u[2],BESS.lvrt.or1.u[1],BESS.lvrt.pre1.u,BESS.lvrt.timer1.entryTime,BESS.lvrt.timer1.u,BESS.lvrt.timer.entryTime,BESS.lvrt.timer.u,BESS.lvrt.switchOffSignal,BESS.hvrt.tThresholdReached,BESS.hvrt.pre1.u,BESS.hvrt.or1.u[2],BESS.hvrt.or1.u[1],BESS.hvrt.timer1.entryTime,BESS.hvrt.timer1.u,BESS.hvrt.timer.entryTime,BESS.hvrt.timer.u,BESS.hvrt.switchOffSignal,BESS.repcA.freeze,BESS.HvTfo.running,BESS.LvTfo.running,BESS.injector.running,BESS.injector.switchOffSignal3,BESS.regcA.and2.y,BESS.regcA.and1.y,BESS.regcA.and1.u[2],BESS.regcA.offDelay.tNext,BESS.regcA.offDelay.delaySignal,BESS.regcA.offDelay.u,$whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition16,$whenCondition15,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition23,$whenCondition22,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition28,$whenCondition27,$whenCondition29,$whenCondition31,$whenCondition30,$whenCondition32) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (534): * Single equations (assignments): 532 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,4,31.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009493/0.3245, allocations: 0.6866 MB / 0.5428 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009039/0.3254, allocations: 0.5052 MB / 0.5433 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002931/0.3283, allocations: 2.304 MB / 0.5455 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3283, allocations: 32 kB / 0.5455 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3283, allocations: 4 kB / 0.5455 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.3283, allocations: 15.94 kB / 0.5456 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006384/0.3347, allocations: 5.34 MB / 0.5508 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3347, allocations: 4.625 kB / 0.5508 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.3361, allocations: 0.5194 MB / 0.5513 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000662/0.3368, allocations: 392.1 kB / 0.5517 GB, free: 5.273 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/0.3369, allocations: 79.97 kB / 0.5517 GB, free: 5.195 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002018/0.3389, allocations: 2.676 MB / 0.5543 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.339, allocations: 7.75 kB / 0.5544 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/0.3433, allocations: 3.414 MB / 0.5577 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/0.345, allocations: 0.8308 MB / 0.5585 GB, free: 14.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004596/0.3454, allocations: 79.98 kB / 0.5586 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.3466, allocations: 179.8 kB / 0.5587 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005105/0.3471, allocations: 300.9 kB / 0.559 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/0.3473, allocations: 83.95 kB / 0.5591 GB, free: 13.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002076/0.3494, allocations: 1.497 MB / 0.5606 GB, free: 12.12 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3494, allocations: 0 / 0.5606 GB, free: 12.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003859/0.3532, allocations: 1.855 MB / 0.5624 GB, free: 10.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 22 (BESS.reecC.firstOrder.y,BESS.reecC.firstOrder1.y,BESS.reecC.limPIDFreeze.I.y,BESS.reecC.rateLimFirstOrderFreeze1.y,BESS.reecC.slewRateLimiter.y,BESS.reecC.rateLimFirstOrderFreeze.y,BESS.reecC.varLimPIDFreeze.I.y,BESS.reecC.integrator.y,BESS.regcA.rateLimFirstOrderFreeze2.y,BESS.regcA.rateLimFirstOrderFreeze1.y,BESS.regcA.firstOrder.y,BESS.pll.integrator.y,BESS.pll.limIntegrator.y,BESS.repcA.firstOrder.y,BESS.repcA.limPID.I.y,BESS.repcA.firstOrder1.y,BESS.repcA.firstOrder2.y,BESS.repcA.firstOrder3.y,BESS.repcA.limPIDFreeze.I.y,BESS.repcA.leadLag.x_scaled[1],BESS.hvrt.filter.y,BESS.lvrt.filter.y) * Number of discrete variables: 68 ($whenCondition32,$whenCondition30,$whenCondition31,$whenCondition29,$whenCondition27,$whenCondition28,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition22,$whenCondition23,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition15,$whenCondition16,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition10,$whenCondition11,$whenCondition9,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,BESS.regcA.offDelay.u,BESS.regcA.offDelay.delaySignal,BESS.regcA.offDelay.tNext,BESS.regcA.and1.u[2],BESS.regcA.and1.y,BESS.regcA.and2.y,BESS.injector.switchOffSignal3,BESS.injector.running,BESS.injector.state,BESS.LvTfo.running,BESS.LvTfo.state,BESS.HvTfo.running,BESS.HvTfo.state,BESS.repcA.freeze,BESS.hvrt.switchOffSignal,BESS.hvrt.timer.u,BESS.hvrt.timer.entryTime,BESS.hvrt.timer1.u,BESS.hvrt.timer1.entryTime,BESS.hvrt.or1.u[1],BESS.hvrt.or1.u[2],BESS.hvrt.pre1.u,BESS.hvrt.tThresholdReached,BESS.lvrt.switchOffSignal,BESS.lvrt.timer.u,BESS.lvrt.timer.entryTime,BESS.lvrt.timer1.u,BESS.lvrt.timer1.entryTime,BESS.lvrt.pre1.u,BESS.lvrt.or1.u[1],BESS.lvrt.or1.u[2],BESS.lvrt.tThresholdReached,ZPcs.running,ZPcs.state,Zcc.running,Zcc.state) * Number of discrete states: 12 (Zcc.running,ZPcs.running,BESS.lvrt.switchOffSignal,BESS.hvrt.switchOffSignal,BESS.HvTfo.running,BESS.LvTfo.running,BESS.hvrt.pre1.u,BESS.lvrt.pre1.u,BESS.lvrt.tThresholdReached,BESS.injector.running,BESS.hvrt.tThresholdReached,BESS.regcA.offDelay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,4,31.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001135/0.3544, allocations: 0.5331 MB / 0.5629 GB, free: 9.922 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007164/0.3615, allocations: 4.718 MB / 0.5675 GB, free: 5.344 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.3616, allocations: 4 kB / 0.5675 GB, free: 5.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.3636, allocations: 1.242 MB / 0.5687 GB, free: 4.172 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.3664, allocations: 0.7054 MB / 0.5694 GB, free: 3.496 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.3774, allocations: 6.788 MB / 0.576 GB, free: 12.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007264/0.3781, allocations: 0.6646 MB / 0.5767 GB, free: 11.91 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002494/0.3806, allocations: 0.5053 MB / 0.5772 GB, free: 11.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/0.3824, allocations: 0.7478 MB / 0.5779 GB, free: 10.65 MB / 474.7 MB Notification: Performance of SimCode: time 2.435e-06/0.3824, allocations: 0 / 0.5779 GB, free: 10.65 MB / 474.7 MB Notification: Performance of Templates: time 0.08713/0.4696, allocations: 58.69 MB / 0.6352 GB, free: 444 kB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.makefile [Timeout 660] (rm -f Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.pipe ; mkfifo Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.pipe ; head -c 1048576 < Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.pipe >> ../files/Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.sim & ./Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS -lv=LOG_STATS -s=ida -maxIntegrationOrder=2 -nls=kinsol -initialStepSize=0.00001 -maxStepSize=10 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS.pipe 2>&1) [Timeout 240] diffSimulationResults("Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/Dynawo/dynawo/sources/Models/Modelica/Dynawo/Examples/references/Dynawo.Examples.BESS.WECC.BESSCurrentSourceExternalPCS_res.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.058641104027629]