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.001324/0.001324, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001641/0.001641, allocations: 213.1 kB / 23.02 MB, free: 4.992 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.448/1.448, 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.9236/0.9236, allocations: 115.9 MB / 402 MB, free: 16.04 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.003318/0.003318, allocations: 78.73 kB / 0.5694 GB, free: 41.36 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1508, allocations: 79.03 MB / 0.6466 GB, free: 11.37 MB / 494.1 MB Notification: Performance of NFInst.instantiate(Dynawo.Examples.BESS.WECC.BESSCurrentSource): time 0.01543/0.1662, allocations: 11.15 MB / 0.6574 GB, free: 148 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1794, allocations: 6.134 MB / 0.6634 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003149/0.1825, allocations: 87.38 kB / 0.6635 GB, free: 9.91 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.00324/0.1857, allocations: 0.7559 MB / 0.6643 GB, free: 9.148 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.005156/0.1909, allocations: 0.9546 MB / 0.6652 GB, free: 8.188 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.007248/0.1982, allocations: 3 MB / 0.6681 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.006639/0.2048, allocations: 4.516 MB / 0.6725 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.2071, allocations: 1.056 MB / 0.6736 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.2098, allocations: 1.662 MB / 0.6752 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.2122, allocations: 1.593 MB / 0.6767 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0008531/0.213, allocations: 492 kB / 0.6772 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.2144, allocations: 0.7693 MB / 0.678 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009122/0.2154, allocations: 0.9967 MB / 0.6789 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.217, allocations: 1.465 MB / 0.6804 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007647/0.2247, allocations: 5.982 MB / 0.6862 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2247, allocations: 0 / 0.6862 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2247, allocations: 0 / 0.6862 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.000131/0.2248, allocations: 0 / 0.6862 GB, free: 2.555 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.01372/0.2385, allocations: 4.69 MB / 0.6908 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.2386, allocations: 12.92 kB / 0.6908 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004926/0.2391, allocations: 324.9 kB / 0.6911 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004824/0.2439, allocations: 0.9274 MB / 0.692 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006103/0.25, allocations: 2.376 MB / 0.6943 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/0.251, allocations: 0.8835 MB / 0.6952 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007964/0.2518, allocations: 235.9 kB / 0.6954 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007137/0.2589, allocations: 3.458 MB / 0.6988 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.662e-05/0.259, allocations: 3.938 kB / 0.6988 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002595/0.2592, allocations: 96 kB / 0.6989 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-05/0.2593, allocations: 60 kB / 0.6989 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006392/0.2657, allocations: 2.62 MB / 0.7015 GB, free: 2.277 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.01826/0.284, allocations: 9.58 MB / 0.7109 GB, free: 8.492 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006537/0.2905, allocations: 2.45 MB / 0.7133 GB, free: 6.023 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.2933, allocations: 1.14 MB / 0.7144 GB, free: 4.883 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002006/0.2935, allocations: 41.97 kB / 0.7144 GB, free: 4.844 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003559/0.2971, allocations: 1.55 MB / 0.7159 GB, free: 3.266 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 4.137e-06/0.2971, allocations: 0 / 0.7159 GB, free: 3.266 MB / 0.545 GB Notification: Performance of matching and sorting (n=193): time 0.01171/0.3088, allocations: 4.122 MB / 0.7199 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003366/0.3091, allocations: 496.7 kB / 0.7204 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005742/0.3149, allocations: 3.012 MB / 0.7234 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005094/0.3154, allocations: 73.69 kB / 0.7234 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.317, allocations: 1.382 MB / 0.7248 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001217/0.3182, allocations: 0.6974 MB / 0.7255 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001146/0.3194, allocations: 0.5688 MB / 0.726 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3195, allocations: 309.1 kB / 0.7263 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/0.3229, allocations: 1.414 MB / 0.7277 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004079/0.3269, allocations: 2.343 MB / 0.73 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02378/0.3507, allocations: 7.02 MB / 0.7368 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/0.3507, allocations: 4 kB / 0.7368 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01056/0.3613, allocations: 4.162 MB / 0.7409 GB, free: 8.984 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.829e-05/0.3614, allocations: 58.52 kB / 0.741 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.3614, allocations: 8 kB / 0.741 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005233/0.3619, allocations: 332.6 kB / 0.7413 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/0.3653, allocations: 0.6865 MB / 0.742 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.233e-05/0.3653, allocations: 31.92 kB / 0.742 GB, free: 7.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002595/0.3679, allocations: 397.9 kB / 0.7424 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/0.3682, allocations: 108 kB / 0.7425 GB, free: 7.375 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.004597/0.3727, allocations: 2.014 MB / 0.7444 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003999/0.3767, allocations: 2.272 MB / 0.7467 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02285/0.3996, allocations: 6.887 MB / 0.7534 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.812e-05/0.3997, allocations: 7.938 kB / 0.7534 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of matching and sorting (n=391) (initialization_lambda0): time 0.01088/0.4105, allocations: 4.061 MB / 0.7574 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.776e-05/0.4106, allocations: 61.55 kB / 0.7574 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.4106, allocations: 12 kB / 0.7574 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.4111, allocations: 325.4 kB / 0.7577 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003478/0.4146, allocations: 0.667 MB / 0.7584 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-05/0.4147, allocations: 27.92 kB / 0.7584 GB, free: 6.516 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002882/0.4175, allocations: 350.5 kB / 0.7587 GB, free: 6.172 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/0.4178, allocations: 112 kB / 0.7589 GB, free: 6.062 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.0009174/0.4187, allocations: 472.9 kB / 0.7593 GB, free: 5.605 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008503/0.4196, allocations: 345.8 kB / 0.7596 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008407/0.428, allocations: 3.128 MB / 0.7627 GB, free: 2.117 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.428, allocations: 27.94 kB / 0.7627 GB, free: 2.09 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.428, allocations: 7.984 kB / 0.7627 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.428, allocations: 7.969 kB / 0.7627 GB, free: 2.074 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.4424, allocations: 6.372 MB / 0.769 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.4424, allocations: 4 kB / 0.769 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002829/0.4452, allocations: 471.5 kB / 0.7694 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005024/0.4457, allocations: 300.7 kB / 0.7697 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/0.4459, allocations: 59.97 kB / 0.7698 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.284e-05/0.4459, allocations: 8 kB / 0.7698 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/0.4459, allocations: 11.92 kB / 0.7698 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01163/0.4576, allocations: 4.978 MB / 0.7746 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/0.4595, allocations: 0.673 MB / 0.7753 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/0.4599, allocations: 55.98 kB / 0.7753 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.4618, allocations: 207.7 kB / 0.7755 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004018/0.4622, allocations: 177.6 kB / 0.7757 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.4624, allocations: 63.97 kB / 0.7758 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00348/0.4658, allocations: 1.98 MB / 0.7777 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4658, allocations: 4 kB / 0.7777 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003926/0.4698, allocations: 1.22 MB / 0.7789 GB, free: 1.34 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.3156/0.7854, allocations: 5.929 MB / 0.7847 GB, free: 128.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01037/0.7958, allocations: 5.088 MB / 0.7897 GB, free: 126.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.7958, allocations: 4.594 kB / 0.7897 GB, free: 126.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003341/0.7991, allocations: 1.552 MB / 0.7912 GB, free: 125.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/0.8019, allocations: 488.5 kB / 0.7916 GB, free: 125.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05021/0.8521, allocations: 28.32 MB / 0.8193 GB, free: 108.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.8532, allocations: 1.267 MB / 0.8205 GB, free: 107.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001942/0.8551, allocations: 445.4 kB / 0.821 GB, free: 107.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.8566, allocations: 1.339 MB / 0.8223 GB, free: 105.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.102e-06/0.8566, allocations: 0 / 0.8223 GB, free: 105.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.9621, allocations: 72.85 MB / 0.8934 GB, free: 33.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.4, allocations: 4 kB / 0.8934 GB, free: 33.19 MB / 0.6075 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Dynawo_dev_Dynawo.Examples.BESS.WECC.BESSCurrentSource_res.mat --tempDir=temp_Dynawo_dev_Dynawo_Examples_BESS_WECC_BESSCurrentSource_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-05 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.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: 21.08096541138366]