Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.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.001338/0.001338, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 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.001397/0.001397, allocations: 209.3 kB / 23.01 MB, free: 4.621 MB / 14.72 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 2.133/2.133, allocations: 207.7 MB / 233.9 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] 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.7884/0.7884, allocations: 118.1 MB / 404.2 MB, free: 14.38 MB / 318.1 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 it seems broken on HelloWorld Ignoring simflag -noemit -noRestart=() since it seems broken on HelloWorld Ignoring simflag -noemit -noRootFinding=() since it seems broken on HelloWorld Running command: translateModel(Dynawo.Examples.BESS.WECC.BESSCurrentSource,tolerance=1e-05,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|BESS.injector.PInjPuSn|BESS.injector.QInjPuSn|BESS.reecC.idCmdPu|BESS.reecC.iqCmdPu|BESS.injector.UPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource") translateModel(Dynawo.Examples.BESS.WECC.BESSCurrentSource,tolerance=1e-05,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|BESS.injector.PInjPuSn|BESS.injector.QInjPuSn|BESS.reecC.idCmdPu|BESS.reecC.iqCmdPu|BESS.injector.UPu",fileNamePrefix="Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003566/0.003566, allocations: 82.73 kB / 0.5732 GB, free: 40.29 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.245, allocations: 79.62 MB / 0.651 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.BESS.WECC.BESSCurrentSource): time 0.03771/0.2827, allocations: 11.15 MB / 0.6619 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01442/0.2971, allocations: 6.141 MB / 0.6679 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003997/0.3011, allocations: 87.38 kB / 0.6679 GB, free: 5.723 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:20:3-20:98:writable] Warning: Connector switchOffSignal1 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:21:3-21:125:writable] Warning: Connector switchOffSignal2 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:22:3-22:125:writable] Warning: Connector switchOffSignal3 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:24:3-24:105:writable] Warning: Connector running is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:20:3-20:98:writable] Warning: Connector switchOffSignal1 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:21:3-21:125:writable] Warning: Connector switchOffSignal2 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:24:3-24:105:writable] Warning: Connector running is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:20:3-20:98:writable] Warning: Connector switchOffSignal1 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:21:3-21:125:writable] Warning: Connector switchOffSignal2 is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/Controls/Basics/SwitchOff/SwitchOffLogic.mo:24:3-24:105:writable] Warning: Connector running is not balanced: The number of potential variables (1) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.02237/0.3235, allocations: 0.7481 MB / 0.6687 GB, free: 4.969 MB / 0.4981 GB [/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.004656/0.3281, allocations: 0.9585 MB / 0.6696 GB, free: 4.004 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Dynawo master/Electrical/BESS/WECC/BESS_INIT.mo:54:3-54:99:writable] Warning: In relation Modelica.ComplexMath.'abs'(bess_INIT.sInj0Pu) == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.007583/0.3357, allocations: 2.992 MB / 0.6725 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.02727/0.363, allocations: 4.524 MB / 0.677 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002998/0.366, allocations: 1.048 MB / 0.678 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003477/0.3695, allocations: 1.673 MB / 0.6796 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003361/0.3728, allocations: 1.581 MB / 0.6812 GB, free: 8.109 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001577/0.3744, allocations: 492 kB / 0.6816 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002472/0.3769, allocations: 0.7693 MB / 0.6824 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.3788, allocations: 0.9928 MB / 0.6833 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002947/0.3817, allocations: 1.465 MB / 0.6848 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02869/0.4104, allocations: 5.986 MB / 0.6906 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.4104, allocations: 0 / 0.6906 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.863e-06/0.4104, allocations: 0 / 0.6906 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0002508/0.4106, allocations: 0 / 0.6906 GB, free: 14.38 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 577 * Number of variables: 577 Notification: Performance of Generate backend data structure: time 0.01547/0.4261, allocations: 4.683 MB / 0.6952 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4262, allocations: 12.02 kB / 0.6952 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00465/0.4308, allocations: 0.9313 MB / 0.6961 GB, free: 8.688 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00535/0.4362, allocations: 2.376 MB / 0.6984 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008536/0.437, allocations: 0.8797 MB / 0.6993 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004891/0.4375, allocations: 231.9 kB / 0.6995 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02533/0.4628, allocations: 3.454 MB / 0.7029 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.4629, allocations: 7.875 kB / 0.7029 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/0.4631, allocations: 104 kB / 0.703 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.268e-05/0.4632, allocations: 56 kB / 0.703 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005997/0.4692, allocations: 2.616 MB / 0.7056 GB, free: 14.45 MB / 0.545 GB 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.03987/0.509, allocations: 9.223 MB / 0.7146 GB, free: 5.035 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006156/0.5152, allocations: 2.442 MB / 0.717 GB, free: 2.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002557/0.5177, allocations: 1.14 MB / 0.7181 GB, free: 1.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.5179, allocations: 41.97 kB / 0.7181 GB, free: 1.391 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003364/0.5213, allocations: 1.554 MB / 0.7197 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=193): time 4.389e-06/0.5213, allocations: 0 / 0.7197 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=193): time 0.03027/0.5516, allocations: 4.095 MB / 0.7237 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003169/0.5519, allocations: 496.6 kB / 0.7241 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004709/0.5566, allocations: 2.7 MB / 0.7268 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003876/0.557, allocations: 77.69 kB / 0.7268 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.5585, allocations: 1.395 MB / 0.7282 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001153/0.5597, allocations: 0.6897 MB / 0.7289 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/0.5609, allocations: 0.5568 MB / 0.7294 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000231/0.5611, allocations: 309.1 kB / 0.7297 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003446/0.5646, allocations: 1.398 MB / 0.7311 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00429/0.5689, allocations: 2.314 MB / 0.7333 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0237/0.5926, allocations: 6.938 MB / 0.7401 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.5926, allocations: 4 kB / 0.7401 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=379) (initialization): time 0.0139/0.6065, allocations: 4.078 MB / 0.7441 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.6066, allocations: 54.47 kB / 0.7442 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.818e-05/0.6066, allocations: 11.98 kB / 0.7442 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007837/0.6074, allocations: 325.3 kB / 0.7445 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/0.6119, allocations: 0.6709 MB / 0.7451 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.024e-05/0.612, allocations: 31.86 kB / 0.7452 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/0.616, allocations: 358.3 kB / 0.7455 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005821/0.6165, allocations: 112 kB / 0.7456 GB, free: 4.5 MB / 0.5762 GB Warning: Assuming fixed start value for the following 24 variables: line.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = line.State0 fixed = true ) \"Line connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.line.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.line.State0 fixed = true ) \"Line 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.UInj0Pu 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.varLimPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.varLimPIDFreeze.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.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.value:DISCRETE(flow=false start = BESS.injector.Running0 fixed = true ) type: Boolean BESS.line.running.value:DISCRETE(flow=false start = BESS.line.Running0 fixed = true ) 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] line.running.value:DISCRETE(flow=false start = line.Running0 fixed = true ) type: Boolean BESS.regcA.offDelay.u:DISCRETE(flow=false fixed = true ) \"Boolean input signal\" type: Boolean Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007124/0.6237, allocations: 1.981 MB / 0.7476 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005887/0.6296, allocations: 2.252 MB / 0.7498 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03045/0.66, allocations: 6.801 MB / 0.7564 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.029e-05/0.66, allocations: 4 kB / 0.7564 GB, free: 8.988 MB / 0.5919 GB Notification: Performance of matching and sorting (n=379) (initialization_lambda0): time 0.01207/0.6721, allocations: 3.97 MB / 0.7603 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.3e-05/0.6722, allocations: 61.11 kB / 0.7603 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-05/0.6722, allocations: 8 kB / 0.7603 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006016/0.6728, allocations: 336.7 kB / 0.7607 GB, free: 4.562 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/0.676, allocations: 0.6552 MB / 0.7613 GB, free: 3.906 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-05/0.676, allocations: 27.92 kB / 0.7613 GB, free: 3.879 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/0.679, allocations: 342.6 kB / 0.7617 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002201/0.6792, allocations: 108 kB / 0.7618 GB, free: 3.438 MB / 0.5919 GB Warning: Assuming fixed start value for the following 24 variables: line.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = line.State0 fixed = true ) \"Line connection state\" type: enumeration(Open, Closed, Closed1, Closed2, Closed3, Undefined) BESS.line.state:DISCRETE(min = Dynawo.Electrical.Constants.state.Open max = Dynawo.Electrical.Constants.state.Undefined start = BESS.line.State0 fixed = true ) \"Line 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.UInj0Pu 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.varLimPIDFreeze.I.y:VARIABLE(flow=false start = BESS.reecC.varLimPIDFreeze.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.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.value:DISCRETE(flow=false start = BESS.injector.Running0 fixed = true ) type: Boolean BESS.line.running.value:DISCRETE(flow=false start = BESS.line.Running0 fixed = true ) 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] line.running.value:DISCRETE(flow=false start = line.Running0 fixed = true ) 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: 42 * Number of states: 0 () * Number of discrete variables: 49 ($PRE.line.state,line.state,$PRE.BESS.line.state,BESS.line.state,$PRE.BESS.injector.state,BESS.injector.state,BESS.injector.switchOffSignal3.value,BESS.injector.switchOffSignal2.value,BESS.injector.switchOffSignal1.value,line.switchOffSignal2.value,line.switchOffSignal1.value,BESS.regcA.rateLimFirstOrderFreeze1.local_freeze,BESS.regcA.rateLimFirstOrderFreeze2.local_freeze,$PRE.BESS.regcA.offDelay.delaySignal,$PRE.BESS.regcA.offDelay.tNext,$PRE.BESS.injector.running.value,$PRE.BESS.line.running.value,$PRE.line.running.value,BESS.regcA.Qinj0PuNeg.k,BESS.regcA.QInj0PuPos.k,$PRE.BESS.regcA.offDelay.u,line.running.value,BESS.repcA.freeze,BESS.line.running.value,BESS.injector.running.value,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,$whenCondition5,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition10,$whenCondition9,$whenCondition11,BESS.repcA.limPIDFreeze.I.resetLocal,BESS.repcA.limPID.I.local_reset,BESS.pll.limIntegrator.local_reset,BESS.pll.integrator.local_reset,BESS.reecC.integrator.local_reset,BESS.reecC.varLimPIDFreeze.I.resetLocal,BESS.reecC.limPIDFreeze.I.resetLocal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (357): * Single equations (assignments): 355 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(8,56.2%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.6803, allocations: 462.8 kB / 0.7622 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007655/0.6811, allocations: 314 kB / 0.7625 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00805/0.6891, allocations: 3.118 MB / 0.7655 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.814e-05/0.6891, allocations: 23.98 kB / 0.7656 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.6891, allocations: 0 / 0.7656 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/0.6892, allocations: 15.91 kB / 0.7656 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.7035, allocations: 6.127 MB / 0.7716 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.7035, allocations: 4 kB / 0.7716 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002758/0.7063, allocations: 471.8 kB / 0.772 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005753/0.7069, allocations: 304.7 kB / 0.7723 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002518/0.7071, allocations: 55.97 kB / 0.7724 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.692e-05/0.7071, allocations: 15.94 kB / 0.7724 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.7071, allocations: 4 kB / 0.7724 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/0.7194, allocations: 4.95 MB / 0.7772 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002162/0.7216, allocations: 0.6302 MB / 0.7778 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004177/0.722, allocations: 59.92 kB / 0.7779 GB, free: 2.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/0.7238, allocations: 199.8 kB / 0.7781 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/0.7242, allocations: 185.5 kB / 0.7783 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.7243, allocations: 67.91 kB / 0.7783 GB, free: 2.289 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002963/0.7273, allocations: 1.765 MB / 0.78 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7273, allocations: 0 / 0.78 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.5417/1.269, allocations: 1.26 MB / 0.7813 GB, free: 125.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 20 (BESS.reecC.firstOrder.y,BESS.reecC.firstOrder1.y,BESS.reecC.limPIDFreeze.I.y,BESS.reecC.varLimPIDFreeze.I.y,BESS.reecC.rateLimFirstOrderFreeze1.y,BESS.reecC.slewRateLimiter.y,BESS.reecC.rateLimFirstOrderFreeze.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]) * Number of discrete variables: 24 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition8,$whenCondition6,$whenCondition7,$whenCondition5,$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.running.value,BESS.injector.state,BESS.line.running.value,BESS.line.state,BESS.repcA.freeze,line.running.value,line.state) * Number of discrete states: 4 (line.running.value,BESS.line.running.value,BESS.injector.running.value,BESS.regcA.offDelay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(8,56.2%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002757/1.272, allocations: 0.4955 MB / 0.7818 GB, free: 125.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01858/1.29, allocations: 5.022 MB / 0.7867 GB, free: 124.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.88e-05/1.29, allocations: 6.969 kB / 0.7867 GB, free: 124.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.005482/1.296, allocations: 1.551 MB / 0.7882 GB, free: 123.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/1.3, allocations: 476.1 kB / 0.7886 GB, free: 123.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/1.318, allocations: 6.076 MB / 0.7946 GB, free: 120.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002269/1.32, allocations: 1.272 MB / 0.7958 GB, free: 120.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.003003/1.323, allocations: 405.7 kB / 0.7962 GB, free: 120.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008773/1.324, allocations: 182.5 kB / 0.7964 GB, free: 120.5 MB / 0.6075 GB Notification: Performance of SimCode: time 1.312e-06/1.324, allocations: 0 / 0.7964 GB, free: 120.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.06957/1.393, allocations: 41.49 MB / 0.8369 GB, free: 89.48 MB / 0.6075 GB " [Timeout remaining time 659] make -j1 -f Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.makefile [Timeout 660] (rm -f Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.pipe ; mkfifo Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.pipe ; head -c 1048576 < Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.pipe >> ../files/Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.sim & ./Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource -lv=LOG_STATS -s=ida -maxIntegrationOrder=2 -nls=kinsol -initialStepSize=0.00001 -maxStepSize=10 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/Dynawo/dynawo/sources/Models/Modelica/Dynawo/Examples/references/Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.251508422195911]