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.00167/0.00167, allocations: 100.4 kB / 19.72 MB, free: 2.062 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.002057/0.002057, allocations: 211.4 kB / 23.01 MB, free: 4.875 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 1.723/1.723, allocations: 207.7 MB / 233.9 MB, free: 9.797 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.9687/0.9687, allocations: 114.3 MB / 400.4 MB, free: 17.14 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: "" <> buildModelFMU(Dynawo.Examples.BESS.WECC.BESSCurrentSource,fileNamePrefix="Dynawo_dev_Dynawo_Examples_BESS_WECC_BESSCurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Dynawo.Examples.BESS.WECC.BESSCurrentSource,fileNamePrefix="Dynawo_dev_Dynawo_Examples_BESS_WECC_BESSCurrentSource",fmuType="me",version="2.0",platforms={"static"}) [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.002746/0.002746, allocations: 73.16 kB / 0.5671 GB, free: 42.55 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2008, allocations: 78.65 MB / 0.6439 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.BESS.WECC.BESSCurrentSource): time 0.0178/0.2186, allocations: 11.15 MB / 0.6548 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0161/0.2347, allocations: 6.138 MB / 0.6608 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005213/0.2399, allocations: 83.38 kB / 0.6609 GB, free: 12.36 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.00363/0.2436, allocations: 0.7514 MB / 0.6616 GB, free: 11.61 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.006862/0.2504, allocations: 0.9585 MB / 0.6625 GB, free: 10.64 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.00967/0.2601, allocations: 2.982 MB / 0.6655 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.01068/0.2708, allocations: 4.524 MB / 0.6699 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003459/0.2742, allocations: 1.126 MB / 0.671 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.278, allocations: 1.677 MB / 0.6726 GB, free: 264 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003646/0.2816, allocations: 1.769 MB / 0.6743 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.2828, allocations: 492 kB / 0.6748 GB, free: 14 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001919/0.2847, allocations: 0.777 MB / 0.6756 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001109/0.2858, allocations: 0.9927 MB / 0.6765 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.2877, allocations: 1.465 MB / 0.678 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.009152/0.2969, allocations: 5.982 MB / 0.6838 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.2969, allocations: 0 / 0.6838 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.086e-06/0.2969, allocations: 4 kB / 0.6838 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0002523/0.2971, allocations: 4 kB / 0.6838 GB, free: 4.742 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.01583/0.3129, allocations: 4.691 MB / 0.6884 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 7.083e-05/0.313, allocations: 8.031 kB / 0.6884 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006006/0.3136, allocations: 332.8 kB / 0.6887 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004942/0.3186, allocations: 0.9196 MB / 0.6896 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006181/0.3247, allocations: 2.376 MB / 0.6919 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008848/0.3256, allocations: 0.8836 MB / 0.6928 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005986/0.3262, allocations: 235.9 kB / 0.693 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006916/0.3331, allocations: 3.462 MB / 0.6964 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.613e-05/0.3332, allocations: 7.984 kB / 0.6964 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002667/0.3335, allocations: 99.98 kB / 0.6965 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-05/0.3335, allocations: 56 kB / 0.6966 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006562/0.3401, allocations: 2.624 MB / 0.6991 GB, free: 4.453 MB / 0.5294 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.01901/0.3591, allocations: 9.576 MB / 0.7085 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006188/0.3653, allocations: 2.446 MB / 0.7109 GB, free: 8.211 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002597/0.3679, allocations: 1.144 MB / 0.712 GB, free: 7.066 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002143/0.3681, allocations: 37.98 kB / 0.712 GB, free: 7.031 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00328/0.3714, allocations: 1.55 MB / 0.7135 GB, free: 5.453 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 4.458e-06/0.3714, allocations: 4 kB / 0.7135 GB, free: 5.449 MB / 0.545 GB Notification: Performance of matching and sorting (n=193): time 0.01138/0.3828, allocations: 4.114 MB / 0.7176 GB, free: 1.328 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000337/0.3831, allocations: 496.6 kB / 0.718 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/0.3887, allocations: 3.016 MB / 0.721 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004865/0.3892, allocations: 65.7 kB / 0.721 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.3908, allocations: 1.389 MB / 0.7224 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001047/0.3918, allocations: 0.6974 MB / 0.7231 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/0.3929, allocations: 0.5688 MB / 0.7236 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.393, allocations: 301.1 kB / 0.7239 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003253/0.3963, allocations: 1.418 MB / 0.7253 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004108/0.4004, allocations: 2.339 MB / 0.7276 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02359/0.424, allocations: 7.028 MB / 0.7344 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-05/0.424, allocations: 0 / 0.7344 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01333/0.4373, allocations: 4.163 MB / 0.7385 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.4375, allocations: 63.02 kB / 0.7386 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/0.4375, allocations: 8 kB / 0.7386 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000588/0.4381, allocations: 325.1 kB / 0.7389 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003557/0.4416, allocations: 0.6787 MB / 0.7396 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.918e-05/0.4417, allocations: 27.94 kB / 0.7396 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003188/0.4449, allocations: 409.9 kB / 0.74 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000299/0.4452, allocations: 108 kB / 0.7401 GB, free: 9.562 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.004941/0.4501, allocations: 2.021 MB / 0.742 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003936/0.4541, allocations: 2.28 MB / 0.7443 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02209/0.4762, allocations: 6.895 MB / 0.751 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.702e-05/0.4762, allocations: 7.938 kB / 0.751 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=391) (initialization_lambda0): time 0.01043/0.4866, allocations: 4.054 MB / 0.755 GB, free: 9.793 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.964e-05/0.4867, allocations: 61.61 kB / 0.755 GB, free: 9.727 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.4867, allocations: 8 kB / 0.755 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005096/0.4872, allocations: 324.8 kB / 0.7553 GB, free: 9.398 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00329/0.4905, allocations: 0.6592 MB / 0.756 GB, free: 8.738 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.592e-05/0.4906, allocations: 27.92 kB / 0.756 GB, free: 8.711 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/0.4936, allocations: 354.5 kB / 0.7564 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/0.4938, allocations: 112 kB / 0.7565 GB, free: 8.254 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: 53 ($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.QInj0PuPos.k,BESS.regcA.and1.u[1],BESS.regcA.QInj0PuPos.y,BESS.regcA.Qinj0PuNeg.k,BESS.regcA.and2.u[2],BESS.regcA.Qinj0PuNeg.y,$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 (369): * Single equations (assignments): 367 * 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.001093/0.4949, allocations: 466.4 kB / 0.7569 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009258/0.4958, allocations: 337.8 kB / 0.7572 GB, free: 7.465 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008204/0.504, allocations: 3.14 MB / 0.7603 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.386e-05/0.5041, allocations: 23.94 kB / 0.7603 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/0.5041, allocations: 4 kB / 0.7603 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.509e-05/0.5041, allocations: 11.95 kB / 0.7603 GB, free: 4.266 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/0.519, allocations: 6.379 MB / 0.7666 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.519, allocations: 4 kB / 0.7666 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002736/0.5218, allocations: 467.9 kB / 0.767 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005182/0.5223, allocations: 312.6 kB / 0.7673 GB, free: 13 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001948/0.5225, allocations: 55.98 kB / 0.7674 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-05/0.5225, allocations: 8 kB / 0.7674 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.5225, allocations: 7.938 kB / 0.7674 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/0.5344, allocations: 4.982 MB / 0.7722 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002522/0.5369, allocations: 0.6692 MB / 0.7729 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007059/0.5376, allocations: 52 kB / 0.773 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/0.5397, allocations: 211.7 kB / 0.7732 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004473/0.5401, allocations: 181.5 kB / 0.7733 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.5403, allocations: 59.98 kB / 0.7734 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003774/0.5441, allocations: 1.984 MB / 0.7753 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5441, allocations: 0 / 0.7753 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004345/0.5484, allocations: 1.224 MB / 0.7765 GB, free: 3.52 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.4924/1.041, allocations: 5.922 MB / 0.7823 GB, free: 129 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01321/1.054, allocations: 5.088 MB / 0.7873 GB, free: 127.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/1.054, allocations: 3.094 kB / 0.7873 GB, free: 127.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.004084/1.058, allocations: 1.546 MB / 0.7888 GB, free: 127.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/1.062, allocations: 498.5 kB / 0.7893 GB, free: 127 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06631/1.128, allocations: 28.32 MB / 0.8169 GB, free: 111.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/1.129, allocations: 1.268 MB / 0.8182 GB, free: 110.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002095/1.131, allocations: 435.9 kB / 0.8186 GB, free: 110.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/1.133, allocations: 1.338 MB / 0.8199 GB, free: 108.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.172e-06/1.133, allocations: 0 / 0.8199 GB, free: 108.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1433/1.276, allocations: 73.43 MB / 0.8916 GB, free: 35.76 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.43/18.71, allocations: 0 / 0.8916 GB, free: 35.76 MB / 0.6075 GB " [Timeout remaining time 641] (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 & python3 -m fmpy simulate --output-file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 Dynawo_dev_Dynawo_Examples_BESS_WECC_BESSCurrentSource.fmu > Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/Dynawo/dynawo/sources/Models/Modelica/Dynawo/Examples/references/Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable BESS.injector.PInjPuSn in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.injector.PInjPuSn from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! Error: Could not read variable BESS.injector.QInjPuSn in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.injector.QInjPuSn from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! Error: Could not read variable BESS.reecC.idCmdPu in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.reecC.idCmdPu from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! Error: Could not read variable BESS.reecC.iqCmdPu in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.reecC.iqCmdPu from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! Error: Could not read variable BESS.regcBCS.UPu in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.regcBCS.UPu from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! Error: Could not read variable BESS.injector.UPu in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv. Warning: Get data of variable BESS.injector.UPu from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.68364547297824]