Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA.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.001376/0.001376, allocations: 80.91 kB / 19.77 MB, free: 2.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.425/1.425, allocations: 177.2 MB / 200.1 MB, free: 8.512 MB / 190.1 MB " [Timeout remaining time 178] 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.001631/0.001631, allocations: 173.2 kB / 256.6 MB, free: 4.445 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/package.mo): time 0.5828/0.5828, allocations: 80.31 MB / 393.3 MB, free: 13.73 MB / 318.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 3.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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) Running command: translateModel(OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA") translateModel(OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA") [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 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.002756/0.002756, allocations: 91.2 kB / 0.5559 GB, free: 3.965 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1434, allocations: 80.13 MB / 0.6341 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA): time 0.04389/0.1872, allocations: 36.85 MB / 0.6701 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.04317/0.2304, allocations: 25.15 MB / 0.6947 GB, free: 5.949 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009346/0.2398, allocations: 135.5 kB / 0.6948 GB, free: 5.816 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.01624/0.256, allocations: 4.944 MB / 0.6996 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.307/0.563, allocations: 5.174 MB / 0.7047 GB, free: 7.191 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/Electrical/Controls/PSSE/ES/ESST2A.mo:114:3-118:9:writable] Warning: In relation STGA.exciter.K_P == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/Electrical/Controls/PSSE/ES/ESST2A.mo:114:3-118:9:writable] Warning: In relation STGA.exciter.K_I == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/Electrical/Controls/PSSE/ES/ESST2A.mo:92:3-108:9:writable] Warning: In relation STGA.exciter.K_P == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/Electrical/Controls/PSSE/ES/ESST2A.mo:92:3-108:9:writable] Warning: In relation STGA.exciter.K_I == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.5742, allocations: 4.911 MB / 0.7095 GB, free: 7.105 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.02221/0.5964, allocations: 15.72 MB / 0.7248 GB, free: 4.777 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006798/0.6032, allocations: 2.362 MB / 0.7271 GB, free: 3.43 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0222/0.6254, allocations: 9.14 MB / 0.736 GB, free: 0 / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01227/0.6377, allocations: 6.268 MB / 0.7422 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.005648/0.6433, allocations: 1.495 MB / 0.7436 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006646/0.65, allocations: 1.749 MB / 0.7453 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0062/0.6562, allocations: 3.194 MB / 0.7484 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0107/0.6669, allocations: 5.121 MB / 0.7535 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0265/0.6934, allocations: 19.12 MB / 0.7721 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.6934, allocations: 3.219 kB / 0.7721 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.532e-06/0.6934, allocations: 0 / 0.7721 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0005803/0.6939, allocations: 6.375 kB / 0.7721 GB, free: 8.797 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1601 * Number of variables: 1601 Notification: Performance of Generate backend data structure: time 0.09626/0.7902, allocations: 28.5 MB / 0.8 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.7902, allocations: 8.031 kB / 0.8 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02352/0.8138, allocations: 3.679 MB / 0.8036 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01941/0.8332, allocations: 7.047 MB / 0.8104 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004685/0.8379, allocations: 4.226 MB / 0.8146 GB, free: 440 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002948/0.8408, allocations: 0.7186 MB / 0.8153 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02816/0.869, allocations: 9.369 MB / 0.8244 GB, free: 6.098 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002117/0.8692, allocations: 5.953 kB / 0.8244 GB, free: 6.094 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001924/0.8711, allocations: 267.8 kB / 0.8247 GB, free: 5.836 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001788/0.8713, allocations: 152 kB / 0.8248 GB, free: 5.688 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02802/0.8993, allocations: 8.94 MB / 0.8336 GB, free: 12.74 MB / 0.6387 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.07315/0.9725, allocations: 25.85 MB / 0.8588 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04419/1.017, allocations: 12.78 MB / 0.8713 GB, free: 6.527 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01431/1.031, allocations: 4.945 MB / 0.8761 GB, free: 1.523 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001176/1.032, allocations: 125.2 kB / 0.8762 GB, free: 1.398 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01728/1.049, allocations: 6.228 MB / 0.8823 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=716): time 1.565e-05/1.049, allocations: 0 / 0.8823 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of matching and sorting (n=716): time 0.1226/1.172, allocations: 30.4 MB / 0.912 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004791/1.173, allocations: 0.703 MB / 0.9127 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01991/1.192, allocations: 9.236 MB / 0.9217 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.002032/1.194, allocations: 197.7 kB / 0.9219 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.005179/1.2, allocations: 4.405 MB / 0.9262 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.004227/1.204, allocations: 2.613 MB / 0.9287 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006527/1.21, allocations: 1.878 MB / 0.9306 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001439/1.211, allocations: 301.1 kB / 0.9309 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01596/1.227, allocations: 6.012 MB / 0.9367 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01876/1.245, allocations: 7.351 MB / 0.9439 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03416/1.279, allocations: 12.41 MB / 0.956 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.331e-05/1.279, allocations: 4 kB / 0.956 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.07843/1.358, allocations: 22.13 MB / 0.9777 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002253/1.358, allocations: 169.6 kB / 0.9778 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.352e-05/1.358, allocations: 20 kB / 0.9778 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.395/1.753, allocations: 54.26 MB / 1.031 GB, free: 268.1 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007741/1.761, allocations: 1.447 MB / 1.032 GB, free: 268.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04933/1.81, allocations: 21.95 MB / 1.054 GB, free: 252.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0156/1.826, allocations: 1.479 MB / 1.055 GB, free: 252.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002493/1.828, allocations: 361 kB / 1.055 GB, free: 251.7 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01818/1.847, allocations: 7.175 MB / 1.062 GB, free: 245.3 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01504/1.862, allocations: 7.218 MB / 1.07 GB, free: 238.6 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02704/1.889, allocations: 12.2 MB / 1.081 GB, free: 227 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.555e-05/1.889, allocations: 4 kB / 1.081 GB, free: 227 MB / 0.795 GB Notification: Performance of matching and sorting (n=1342) (initialization_lambda0): time 0.0645/1.953, allocations: 21.78 MB / 1.103 GB, free: 208.9 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/1.953, allocations: 168.5 kB / 1.103 GB, free: 208.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.591e-05/1.953, allocations: 20 kB / 1.103 GB, free: 208.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08114/2.035, allocations: 54.16 MB / 1.156 GB, free: 157.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007568/2.042, allocations: 1.451 MB / 1.157 GB, free: 156.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0468/2.089, allocations: 21.5 MB / 1.178 GB, free: 136.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01459/2.103, allocations: 1.336 MB / 1.179 GB, free: 136.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00206/2.106, allocations: 358.4 kB / 1.18 GB, free: 135.7 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 43 (BreakerMicrogrid.Open,STGA.exciter.bypass_vb,STGA.exciter.booleanConstant.k,CTB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper,CTB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower,CTB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising,CTB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling,CTB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit,CTB.exciter.pID_No_Windup.reset_switch.u2,CTB.exciter.pI_No_Windup.reset_switch.u2,STGA.exciter.integratorLimVar.ReachUpper,STGA.exciter.integratorLimVar.ReachLower,STGA.exciter.integratorLimVar.Rising,STGA.exciter.integratorLimVar.Falling,STGA.exciter.integratorLimVar.Reinit,STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper,STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower,STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising,STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling,STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit,STGB.exciter.pID_No_Windup.reset_switch.u2,STGB.exciter.pI_No_Windup.reset_switch.u2,$whenCondition1,$whenCondition3,$whenCondition2,$whenCondition5,$whenCondition4,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition10,$whenCondition9,$whenCondition11,$whenCondition13,$whenCondition12,STGB.exciter.pI_No_Windup.integral.local_reset,STGB.exciter.pID_No_Windup.derivative.local_reset,STGB.exciter.pID_No_Windup.integral.local_reset,CTA.exciter.VM1.local_reset,CTA.exciter.VR1.local_reset,CTB.exciter.pI_No_Windup.integral.local_reset,CTB.exciter.pID_No_Windup.derivative.local_reset,CTB.exciter.pID_No_Windup.integral.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (874): * Single equations (assignments): 866 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,2), (1,2), (1,2), (1,2), (158,287)} Notification: Performance of prepare postOptimizeDAE: time 0.003616/2.109, allocations: 0.764 MB / 1.181 GB, free: 135 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003313/2.112, allocations: 1.055 MB / 1.182 GB, free: 133.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07995/2.192, allocations: 24.13 MB / 1.205 GB, free: 110 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001856/2.193, allocations: 43.8 kB / 1.205 GB, free: 109.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/2.193, allocations: 4 kB / 1.205 GB, free: 109.9 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003715/2.196, allocations: 1.309 MB / 1.206 GB, free: 108.7 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003779/2.2, allocations: 160 kB / 1.207 GB, free: 108.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0111/2.211, allocations: 0.8194 MB / 1.207 GB, free: 107.7 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.01297/2.224, allocations: 2.442 MB / 1.21 GB, free: 105.3 MB / 0.795 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:534:7-536:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): STGB.exciter.se1.VE_IN = if STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMax else if STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMin else STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.w 2/2 (1): STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.VE_OUT = OpenIPSL.NonElectrical.Functions.SE(STGB.exciter.se1.VE_IN, STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.SE1, STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.SE2, STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.E1, STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.E2) 3/3 (1): STGB.exciter.rotatingExciterWithDemagnetizationVarLim.VE.y = STGB.exciter.se1.VE_IN * STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.VE_OUT 4/4 (1): STGB.exciter.imDerivativeLag.u = STGB.exciter.rotatingExciterWithDemagnetizationVarLim.Sum.k1 * STGB.exciter.rotatingExciterWithDemagnetizationVarLim.VE.y + STGB.exciter.rotatingExciterWithDemagnetizationVarLim.Sum.k2 * STGB.exciter.rotatingExciterWithDemagnetizationVarLim.gain.y + STGB.exciter.rotatingExciterWithDemagnetizationVarLim.Sum.k3 * STGB.exciter.XADIFD 5/5 (1): STGB.exciter.gain.y = STGB.exciter.gain.k * STGB.exciter.imDerivativeLag.u 6/6 (1): STGB.exciter.variableLimiter.y = smooth(0, if STGB.exciter.variableLimiter.u > STGB.exciter.Upper_Limit.k then STGB.exciter.Upper_Limit.k else if STGB.exciter.variableLimiter.u < STGB.exciter.gain.y then STGB.exciter.gain.y else STGB.exciter.variableLimiter.u) 7/7 (1): STGB.exciter.rotatingExciterWithDemagnetizationVarLim.feedback.y = STGB.exciter.variableLimiter.y - STGB.exciter.imDerivativeLag.u 8/8 (6): algorithm STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.initVar := $START.STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.initVar; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit := pre(STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit); STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower := pre(STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower); STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper := pre(STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper); STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling := pre(STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling); STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising := pre(STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising); if STGB.exciter.rotatingExciterWithDemagnetizationVarLim.feedback.y > 2.220446049250313e-16 then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising := true; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling := false; elseif STGB.exciter.rotatingExciterWithDemagnetizationVarLim.feedback.y < -2.220446049250313e-16 then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising := false; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling := true; else STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising := false; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling := false; end if; if STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.w > STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMax then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper := true; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower := false; elseif STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.w < STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMin then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower := true; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper := false; else STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper := false; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower := false; end if; if STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper and STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit := true; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.initVar := STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMax; elseif STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower and STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising then STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit := true; STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.initVar := STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMin; end if; 9/14 (1): STGB.exciter.gain1.y = STGB.exciter.gain1.k * STGB.exciter.imDerivativeLag.u 10/15 (1): STGB.exciter.add.y = STGB.exciter.add.k1 * STGB.exciter.gain2.y + STGB.exciter.add.k2 * STGB.exciter.gain1.y 11/16 (1): STGB.exciter.add1.y = STGB.exciter.add1.k1 * STGB.exciter.pID_No_Windup.y + STGB.exciter.add1.k2 * STGB.exciter.add.y 12/17 (1): STGB.exciter.pI_No_Windup.add.u[2] = STGB.exciter.pI_No_Windup.proportional.k * STGB.exciter.add1.y 13/18 (1): STGB.exciter.pI_No_Windup.limiter.u = STGB.exciter.pI_No_Windup.add.k[1] * STGB.exciter.pI_No_Windup.integral.y + STGB.exciter.pI_No_Windup.add.k[2] * STGB.exciter.pI_No_Windup.add.u[2] 14/19 (1): STGB.exciter.pI_No_Windup.y = smooth(0, if STGB.exciter.pI_No_Windup.limiter.u > STGB.exciter.pI_No_Windup.limiter.uMax then STGB.exciter.pI_No_Windup.limiter.uMax else if STGB.exciter.pI_No_Windup.limiter.u < STGB.exciter.pI_No_Windup.limiter.uMin then STGB.exciter.pI_No_Windup.limiter.uMin else STGB.exciter.pI_No_Windup.limiter.u) 15/20 (1): STGB.exciter.variableLimiter.u = STGB.exciter.product.u1 * STGB.exciter.pI_No_Windup.y 16/21 (1): STGB.exciter.se1.VE_OUT = OpenIPSL.NonElectrical.Functions.SE(STGB.exciter.se1.VE_IN, STGB.exciter.se1.SE1, STGB.exciter.se1.SE2, STGB.exciter.se1.E1, STGB.exciter.se1.E2) 17/22 (1): STGB.exciter.DiffV3.y = STGB.exciter.DiffV3.k1 * STGB.exciter.se1.VE_OUT + STGB.exciter.DiffV3.k2 * STGB.exciter.const.k 18/23 (1): STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMax = STGB.exciter.DiffV2.y / STGB.exciter.DiffV3.y 19/24 (1): STGB.exciter.rectifierCommutationVoltageDrop.division.y = STGB.exciter.rectifierCommutationVoltageDrop.gain2.y / STGB.exciter.se1.VE_IN 20/25 (1): STGB.exciter.rectifierCommutationVoltageDrop.fEX.y = if STGB.exciter.rectifierCommutationVoltageDrop.division.y <= 0.0 then 1.0 else if STGB.exciter.rectifierCommutationVoltageDrop.division.y > 0.0 and STGB.exciter.rectifierCommutationVoltageDrop.division.y <= 0.433 then 1.0 + (-0.577) * STGB.exciter.rectifierCommutationVoltageDrop.division.y else if STGB.exciter.rectifierCommutationVoltageDrop.division.y > 0.433 and STGB.exciter.rectifierCommutationVoltageDrop.division.y < 0.75 then sqrt(0.75 - STGB.exciter.rectifierCommutationVoltageDrop.division.y ^ 2.0) else if STGB.exciter.rectifierCommutationVoltageDrop.division.y >= 0.75 and STGB.exciter.rectifierCommutationVoltageDrop.division.y <= 1.0 then 1.732 * (1.0 - STGB.exciter.rectifierCommutationVoltageDrop.division.y) else 0.0 21/26 (1): STGB.exciter.EFD = STGB.exciter.se1.VE_IN * STGB.exciter.rectifierCommutationVoltageDrop.fEX.y 22/27 (1): STGB.exciter.gain2.y = STGB.exciter.gain2.k * STGB.exciter.EFD 23/28 (1): STGB.exciter.rotatingExciterWithDemagnetizationVarLim.gain.y = STGB.exciter.rotatingExciterWithDemagnetizationVarLim.gain.k * STGB.exciter.se1.VE_IN Variables: 1: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.gain.y:VARIABLE(flow=false ) \"Output signal connector\" type: Real 2: STGB.exciter.gain2.y:VARIABLE(flow=false ) \"Output signal connector\" type: Real 3: STGB.exciter.EFD:VARIABLE(flow=false ) \"Excitation Voltage [pu]\" type: Real 4: STGB.exciter.rectifierCommutationVoltageDrop.fEX.y:VARIABLE(flow=false ) type: Real 5: STGB.exciter.rectifierCommutationVoltageDrop.division.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 6: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.outMax:VARIABLE(flow=false start = STGB.exciter.max_lim0 ) type: Real 7: STGB.exciter.DiffV3.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 8: STGB.exciter.se1.VE_OUT:VARIABLE(flow=false ) \"Saturated Output\" type: Real 9: STGB.exciter.variableLimiter.u:VARIABLE(flow=false ) \"Connector of Real input signal\" type: Real 10: STGB.exciter.pI_No_Windup.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 11: STGB.exciter.pI_No_Windup.limiter.u:VARIABLE(flow=false ) \"Connector of Real input signal\" type: Real 12: STGB.exciter.pI_No_Windup.add.u[2]:VARIABLE(flow=false ) type: Real [2] 13: STGB.exciter.add1.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 14: STGB.exciter.add.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 15: STGB.exciter.gain1.y:VARIABLE(flow=false ) \"Output signal connector\" type: Real 16: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachLower:DISCRETE(protected = true ) \"Flag for reaching lower limit\" type: Boolean 17: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.feedback.y:VARIABLE(flow=false ) type: Real 18: STGB.exciter.variableLimiter.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 19: STGB.exciter.gain.y:VARIABLE(flow=false ) \"Output signal connector\" type: Real 20: STGB.exciter.imDerivativeLag.u:VARIABLE(flow=false ) \"Connector of Real input signal\" type: Real 21: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.VE.y:VARIABLE(flow=false ) \"Connector of Real output signal\" type: Real 22: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.se1.VE_OUT:VARIABLE(flow=false ) \"Saturated Output\" type: Real 23: STGB.exciter.se1.VE_IN:VARIABLE(flow=false start = STGB.exciter.VE0 ) \"Unsaturated Input\" type: Real 24: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.ReachUpper:DISCRETE(protected = true ) \"Flag for reaching upper limit\" type: Boolean 25: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.initVar:VARIABLE(protected = true ) \"Dummy variable to be used as setting quantity\" type: Real 26: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Rising:DISCRETE(protected = true ) \"Flag to know if input is positive\" type: Boolean 27: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Falling:DISCRETE(protected = true ) \"Flag to know if input is negative\" type: Boolean 28: STGB.exciter.rotatingExciterWithDemagnetizationVarLim.sISO.Reinit:DISCRETE(protected = true ) \"Flag to reset state variable\" type: Boolean [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9818:5-9819:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02971/2.254, allocations: 8.668 MB / 1.218 GB, free: 96.47 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model OpenIPSL.Examples.Microgrids.UniversityCampus.CampusA.CampusGridA could not be translated " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 5.3449792130850255] Failed to read output from testmodel.py, exit status != 0: 2.262664577923715 2.272827485 1.576872674 Calling exit ...