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.001403/0.001403, allocations: 76.38 kB / 20.53 MB, free: 1.25 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.001416/0.001416, allocations: 166.7 kB / 23.77 MB, free: 4.453 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.425/1.425, allocations: 158.6 MB / 185.5 MB, free: 6.227 MB / 174.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.7607/0.7607, allocations: 85.32 MB / 323.1 MB, free: 6.719 MB / 302.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.regcBCS.UPu|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.regcBCS.UPu|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.002284/0.002284, allocations: 76.33 kB / 0.4924 GB, free: 23.85 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1313, allocations: 78.78 MB / 0.5693 GB, free: 10.74 MB / 494.1 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.BESS.WECC.BESSCurrentSource): time 0.01474/0.146, allocations: 11.16 MB / 0.5802 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0117/0.1577, allocations: 6.138 MB / 0.5862 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002582/0.1603, allocations: 87.38 kB / 0.5863 GB, free: 9.277 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.002006/0.1623, allocations: 0.7511 MB / 0.587 GB, free: 8.523 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.003271/0.1656, allocations: 0.9585 MB / 0.588 GB, free: 7.559 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.006432/0.172, allocations: 3 MB / 0.5909 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.006602/0.1786, allocations: 4.52 MB / 0.5953 GB, free: 48 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002326/0.1809, allocations: 1.048 MB / 0.5963 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.1835, allocations: 1.677 MB / 0.598 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002495/0.186, allocations: 1.585 MB / 0.5995 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0009201/0.1869, allocations: 499.9 kB / 0.6 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.1884, allocations: 0.7576 MB / 0.6007 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000976/0.1894, allocations: 0.9967 MB / 0.6017 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.1911, allocations: 1.465 MB / 0.6031 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007555/0.1987, allocations: 5.986 MB / 0.609 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1987, allocations: 0 / 0.609 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.064e-06/0.1987, allocations: 0 / 0.609 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001322/0.1988, allocations: 0 / 0.609 GB, free: 1.922 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.0129/0.2117, allocations: 4.691 MB / 0.6136 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.2117, allocations: 8.031 kB / 0.6136 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004889/0.2166, allocations: 0.9235 MB / 0.6145 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004877/0.2215, allocations: 2.376 MB / 0.6168 GB, free: 9.801 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007549/0.2223, allocations: 0.8797 MB / 0.6176 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005043/0.2228, allocations: 235.9 kB / 0.6179 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006706/0.2295, allocations: 3.454 MB / 0.6212 GB, free: 4.777 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.079e-05/0.2295, allocations: 7.938 kB / 0.6213 GB, free: 4.77 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.2298, allocations: 99.98 kB / 0.6213 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.2298, allocations: 60 kB / 0.6214 GB, free: 4.613 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006469/0.2363, allocations: 2.62 MB / 0.624 GB, free: 1.977 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.01773/0.254, allocations: 9.228 MB / 0.633 GB, free: 8.562 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006673/0.2607, allocations: 2.443 MB / 0.6354 GB, free: 6.102 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.2635, allocations: 1.148 MB / 0.6365 GB, free: 4.953 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002007/0.2637, allocations: 33.98 kB / 0.6365 GB, free: 4.922 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003439/0.2672, allocations: 1.554 MB / 0.638 GB, free: 3.34 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 4.088e-06/0.2672, allocations: 0 / 0.638 GB, free: 3.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=193): time 0.01185/0.279, allocations: 4.091 MB / 0.642 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002957/0.2793, allocations: 0.4889 MB / 0.6425 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004479/0.2838, allocations: 2.696 MB / 0.6451 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0003658/0.2842, allocations: 73.7 kB / 0.6452 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001434/0.2856, allocations: 1.399 MB / 0.6466 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008957/0.2865, allocations: 0.6819 MB / 0.6472 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001012/0.2875, allocations: 0.5607 MB / 0.6478 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2876, allocations: 305.1 kB / 0.6481 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003275/0.2909, allocations: 1.398 MB / 0.6494 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004063/0.295, allocations: 2.31 MB / 0.6517 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02291/0.3179, allocations: 6.963 MB / 0.6585 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.3179, allocations: 8 kB / 0.6585 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01059/0.3285, allocations: 4.067 MB / 0.6625 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-05/0.3286, allocations: 58.52 kB / 0.6625 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/0.3286, allocations: 8 kB / 0.6625 GB, free: 9.512 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005285/0.3291, allocations: 324.6 kB / 0.6628 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003356/0.3325, allocations: 0.6787 MB / 0.6635 GB, free: 8.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-05/0.3325, allocations: 27.94 kB / 0.6635 GB, free: 8.484 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/0.3352, allocations: 362.3 kB / 0.6639 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/0.3355, allocations: 104 kB / 0.664 GB, free: 8.027 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.004572/0.3401, allocations: 1.996 MB / 0.6659 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004122/0.3442, allocations: 2.252 MB / 0.6681 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02275/0.3669, allocations: 6.815 MB / 0.6748 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.282e-05/0.3669, allocations: 0 / 0.6748 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of matching and sorting (n=379) (initialization_lambda0): time 0.01019/0.3771, allocations: 3.973 MB / 0.6787 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/0.3772, allocations: 53.67 kB / 0.6787 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.3772, allocations: 12 kB / 0.6787 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.3777, allocations: 317.4 kB / 0.679 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00327/0.381, allocations: 0.6553 MB / 0.6797 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.408e-05/0.381, allocations: 27.92 kB / 0.6797 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002785/0.3838, allocations: 342.5 kB / 0.68 GB, free: 7.062 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003609/0.3842, allocations: 104 kB / 0.6801 GB, free: 6.961 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.001389/0.3856, allocations: 469.3 kB / 0.6806 GB, free: 6.508 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/0.3868, allocations: 314 kB / 0.6809 GB, free: 6.199 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009152/0.396, allocations: 3.126 MB / 0.6839 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-05/0.396, allocations: 24 kB / 0.6839 GB, free: 3.031 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/0.396, allocations: 4 kB / 0.6839 GB, free: 3.027 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.702e-05/0.396, allocations: 15.89 kB / 0.684 GB, free: 3.012 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2942/0.6903, allocations: 6.111 MB / 0.6899 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.6903, allocations: 3.906 kB / 0.6899 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002723/0.693, allocations: 466.6 kB / 0.6904 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003619/0.6934, allocations: 313.9 kB / 0.6907 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.6935, allocations: 60.47 kB / 0.6907 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.204e-05/0.6935, allocations: 10.16 kB / 0.6907 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6935, allocations: 9 kB / 0.6908 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009576/0.7031, allocations: 4.95 MB / 0.6956 GB, free: 111.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.7046, allocations: 0.6345 MB / 0.6962 GB, free: 111.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004367/0.705, allocations: 51.94 kB / 0.6963 GB, free: 111.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/0.7068, allocations: 199.8 kB / 0.6965 GB, free: 111.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.7072, allocations: 182.4 kB / 0.6966 GB, free: 111.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.7073, allocations: 66.91 kB / 0.6967 GB, free: 111.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002613/0.7099, allocations: 1.763 MB / 0.6984 GB, free: 110.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7099, allocations: 0 / 0.6984 GB, free: 110.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002927/0.7129, allocations: 1.278 MB / 0.6997 GB, free: 110.3 MB / 0.5919 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.001629/0.7145, allocations: 495.4 kB / 0.7001 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01208/0.7266, allocations: 5.027 MB / 0.705 GB, free: 108.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/0.7266, allocations: 1.969 kB / 0.705 GB, free: 108.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003572/0.7302, allocations: 1.547 MB / 0.7066 GB, free: 107.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.7329, allocations: 481.2 kB / 0.707 GB, free: 107.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.7439, allocations: 6.074 MB / 0.7129 GB, free: 104.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.7449, allocations: 1.275 MB / 0.7142 GB, free: 104.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001765/0.7467, allocations: 403 kB / 0.7146 GB, free: 104.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/0.7473, allocations: 188.7 kB / 0.7148 GB, free: 104 MB / 0.5919 GB Notification: Performance of SimCode: time 8.21e-07/0.7473, allocations: 0 / 0.7148 GB, free: 104 MB / 0.5919 GB Notification: Performance of Templates: time 0.05085/0.7981, allocations: 38.71 MB / 0.7526 GB, free: 68.19 MB / 0.5919 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 -s ida -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/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.regcBCS.UPu in file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.mat. Warning: Get data of variable BESS.regcBCS.UPu from file Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.110167521983385]