Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1") translateModel(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 107.7 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 240.1 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 184.5 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4898/0.4898, allocations: 91.9 MB / 432.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 77.23 kB / 0.5734 GB, free: 33.52 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1049, allocations: 71.28 MB / 0.643 GB, free: 3.609 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1): time 0.008399/0.1134, allocations: 8.161 MB / 0.651 GB, free: 11.41 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00413/0.1175, allocations: 2.574 MB / 0.6535 GB, free: 8.828 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005719/0.1181, allocations: 23.94 kB / 0.6535 GB, free: 8.805 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.1187, allocations: 285.1 kB / 0.6538 GB, free: 8.523 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1197, allocations: 0.5353 MB / 0.6543 GB, free: 7.984 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.122, allocations: 1.351 MB / 0.6556 GB, free: 6.641 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.124, allocations: 2.367 MB / 0.6579 GB, free: 4.27 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008241/0.1248, allocations: 0.657 MB / 0.6586 GB, free: 3.582 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009624/0.1258, allocations: 0.8987 MB / 0.6594 GB, free: 2.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.1268, allocations: 1.019 MB / 0.6604 GB, free: 1.656 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002887/0.1271, allocations: 224 kB / 0.6606 GB, free: 1.438 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004227/0.1276, allocations: 300 kB / 0.6609 GB, free: 1.145 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003711/0.1279, allocations: 498.1 kB / 0.6614 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007703/0.1287, allocations: 0.9947 MB / 0.6624 GB, free: 15.65 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002282/0.131, allocations: 2.721 MB / 0.665 GB, free: 12.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.131, allocations: 0 / 0.665 GB, free: 12.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.131, allocations: 0 / 0.665 GB, free: 12.93 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.376e-05/0.1311, allocations: 0 / 0.665 GB, free: 12.93 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 317 * Number of variables: 317 Notification: Performance of Generate backend data structure: time 0.007295/0.1384, allocations: 2.833 MB / 0.6678 GB, free: 10.03 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.1384, allocations: 12.03 kB / 0.6678 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002892/0.1413, allocations: 0.541 MB / 0.6683 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001807/0.1431, allocations: 1.174 MB / 0.6695 GB, free: 8.246 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005658/0.1437, allocations: 0.5719 MB / 0.67 GB, free: 7.574 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/0.1439, allocations: 147.9 kB / 0.6702 GB, free: 7.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003367/0.1473, allocations: 1.684 MB / 0.6718 GB, free: 5.664 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/0.1474, allocations: 11.92 kB / 0.6718 GB, free: 5.652 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.1475, allocations: 52 kB / 0.6719 GB, free: 5.602 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.1475, allocations: 35.94 kB / 0.6719 GB, free: 5.566 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003285/0.1508, allocations: 1.414 MB / 0.6733 GB, free: 4.145 MB / 478.1 MB 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.008979/0.1598, allocations: 5.967 MB / 0.6791 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009772/0.1696, allocations: 3.08 MB / 0.6821 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.1717, allocations: 0.9112 MB / 0.683 GB, free: 9.836 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.219e-05/0.1718, allocations: 17.06 kB / 0.6831 GB, free: 9.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002195/0.174, allocations: 0.9839 MB / 0.684 GB, free: 8.816 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 3.366e-06/0.174, allocations: 0 / 0.684 GB, free: 8.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=121): time 0.02105/0.195, allocations: 5.653 MB / 0.6895 GB, free: 3.121 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1952, allocations: 252.3 kB / 0.6898 GB, free: 2.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.197, allocations: 1.399 MB / 0.6911 GB, free: 1.414 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.1972, allocations: 53.7 kB / 0.6912 GB, free: 1.355 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005006/0.1977, allocations: 0.6819 MB / 0.6919 GB, free: 0.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.1981, allocations: 445.7 kB / 0.6923 GB, free: 232 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/0.1986, allocations: 335.5 kB / 0.6926 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.1987, allocations: 301.1 kB / 0.6929 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/0.2008, allocations: 0.8714 MB / 0.6937 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.2031, allocations: 1.142 MB / 0.6949 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004131/0.2072, allocations: 1.914 MB / 0.6967 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.2073, allocations: 3.938 kB / 0.6967 GB, free: 11.5 MB / 0.4981 GB Warning: The linear system: 1 : -wT4E1.P = (-pwLine2.vs.re) * pwLine2.is.re - pwLine2.vs.im * pwLine2.is.im 2 : wT4E1.p0 = wT4E1.P 3 : $START.wT4E1.P = wT4E1.p0 [ 0.0 , 0.0 , -1.0 ; 0.0 , 1.0 , -1.0 ; 0.0 , -1.0 , 0.0 ] * [ $START.wT4E1.P ; wT4E1.p0 ; wT4E1.P ] = [ (-pwLine2.vs.im) * pwLine2.is.im - pwLine2.vs.re * pwLine2.is.re ; 0.0 ; 0.0 ] might be structurally or numerically singular for variable $START.wT4E1.P since U(1,1) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=227) (initialization): time 0.01326/0.2205, allocations: 4.468 MB / 0.7011 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.339e-05/0.2206, allocations: 34.64 kB / 0.7011 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.2206, allocations: 11.98 kB / 0.7011 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005811/0.2264, allocations: 1.746 MB / 0.7028 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.2278, allocations: 319.5 kB / 0.7031 GB, free: 4.844 MB / 0.4981 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! Found empty set of continuous equations. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Error: Internal error IndexReduction.pantelidesIndexReduction failed! Found empty set of continuous equations. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.2307, allocations: 1.51 MB / 0.7046 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.2325, allocations: 270.2 kB / 0.7049 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/0.2327, allocations: 64 kB / 0.7049 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002379/0.2351, allocations: 1.043 MB / 0.706 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002045/0.2371, allocations: 1.06 MB / 0.707 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003686/0.2408, allocations: 1.793 MB / 0.7087 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.598e-06/0.2409, allocations: 0 / 0.7087 GB, free: 14.89 MB / 0.5137 GB Warning: The linear system: 1 : -wT4E1.P = (-pwLine2.vs.re) * pwLine2.is.re - pwLine2.vs.im * pwLine2.is.im 2 : wT4E1.p0 = wT4E1.P 3 : $START.wT4E1.P = wT4E1.p0 [ 0.0 , 0.0 , -1.0 ; 0.0 , 1.0 , -1.0 ; 0.0 , -1.0 , 0.0 ] * [ $START.wT4E1.P ; wT4E1.p0 ; wT4E1.P ] = [ (-pwLine2.vs.im) * pwLine2.is.im - pwLine2.vs.re * pwLine2.is.re ; 0.0 ; 0.0 ] might be structurally or numerically singular for variable $START.wT4E1.P since U(1,1) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=227) (initialization_lambda0): time 0.01225/0.2531, allocations: 4.214 MB / 0.7129 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.2532, allocations: 45.69 kB / 0.7129 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.2532, allocations: 11.92 kB / 0.7129 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00546/0.2587, allocations: 1.699 MB / 0.7146 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.2598, allocations: 295.6 kB / 0.7149 GB, free: 8.555 MB / 0.5137 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Error: Internal error IndexReduction.pantelidesIndexReduction failed! Found empty set of continuous equations. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.2626, allocations: 1.481 MB / 0.7163 GB, free: 7.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.2643, allocations: 218.7 kB / 0.7165 GB, free: 6.816 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.2644, allocations: 59.98 kB / 0.7166 GB, free: 6.758 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (wT4E1.integratorLimVar.Reinit,wT4E1.integratorLimVar.Falling,wT4E1.integratorLimVar.Rising,wT4E1.integratorLimVar.ReachLower,wT4E1.integratorLimVar.ReachUpper,$whenCondition1,wT4E1.windControlEmulator1.integrator.local_reset,wT4E1.activePowerController.K2.local_reset,wT4E1.K6.local_reset,wT4G1.K.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,0.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(21,34)} Notification: Performance of prepare postOptimizeDAE: time 0.0004514/0.2649, allocations: 318 kB / 0.7169 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.2653, allocations: 169.9 kB / 0.717 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/0.2715, allocations: 2.474 MB / 0.7194 GB, free: 3.766 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.2716, allocations: 11.91 kB / 0.7195 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2716, allocations: 128 / 0.7195 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/0.272, allocations: 270.7 kB / 0.7197 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.2723, allocations: 36 kB / 0.7198 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.2736, allocations: 151.8 kB / 0.7199 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003412/0.274, allocations: 148.8 kB / 0.72 GB, free: 3.141 MB / 0.5137 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): wT4E1.WIQCMD = if wT4E1.integratorLimVar.ReachUpper then wT4E1.integratorLimVar.outMax else if wT4E1.integratorLimVar.ReachLower then wT4E1.integratorLimVar.outMin else wT4E1.integratorLimVar.w 2/2 (1): wT4G1.Iy = if abs(wT4G1.K1.T) <= 1e-15 then wT4E1.WIQCMD * wT4G1.K1.K else wT4G1.K1.state 3/3 (1): wT4G1.IyL = if wT4E1.V > wT4G1.hVRCL.VHVRCR then wT4G1.hVRCL.CurHVRCR else wT4G1.Iy 4/4 (1): -wT4G1.IyL = $cse4 * wT4G1.Is.re - $cse3 * wT4G1.Is.im 5/5 (1): $cse3 = cos(wT4G1.delta) 6/6 (1): wT4G1.delta = atan2(pwLine2.vs.im, pwLine2.vs.re) 7/7 (1): wT4E1.V = sqrt(pwLine2.vs.re ^ 2.0 + pwLine2.vs.im ^ 2.0) 8/8 (1): wT4E1.cCL.min5.u2 = (-1.6 + wT4E1.cCL.Qmax) * (-1.0 + wT4E1.V) + wT4E1.cCL.Qmax 9/9 (1): wT4E1.cCL.min2.u1 = min(wT4E1.cCL.const2.k, wT4E1.cCL.min5.u2) 10/10 (1): wT4E1.integratorLimVar.outMax = min(wT4E1.cCL.min2.u1, wT4E1.cCL.const3.k) 11/11 (1): wT4E1.integratorLimVar.outMin = wT4E1.cCL.gain.k * wT4E1.integratorLimVar.outMax 12/12 (6): algorithm wT4E1.integratorLimVar.initVar := $START.wT4E1.integratorLimVar.initVar; wT4E1.integratorLimVar.Reinit := pre(wT4E1.integratorLimVar.Reinit); wT4E1.integratorLimVar.ReachLower := pre(wT4E1.integratorLimVar.ReachLower); wT4E1.integratorLimVar.ReachUpper := pre(wT4E1.integratorLimVar.ReachUpper); wT4E1.integratorLimVar.Falling := pre(wT4E1.integratorLimVar.Falling); wT4E1.integratorLimVar.Rising := pre(wT4E1.integratorLimVar.Rising); if wT4E1.Vcl.y > 1e-15 then wT4E1.integratorLimVar.Rising := true; wT4E1.integratorLimVar.Falling := false; elseif wT4E1.Vcl.y < -1e-15 then wT4E1.integratorLimVar.Rising := false; wT4E1.integratorLimVar.Falling := true; else wT4E1.integratorLimVar.Rising := false; wT4E1.integratorLimVar.Falling := false; end if; if wT4E1.integratorLimVar.w > wT4E1.integratorLimVar.outMax then wT4E1.integratorLimVar.ReachUpper := true; wT4E1.integratorLimVar.ReachLower := false; elseif wT4E1.integratorLimVar.w < wT4E1.integratorLimVar.outMin then wT4E1.integratorLimVar.ReachLower := true; wT4E1.integratorLimVar.ReachUpper := false; else wT4E1.integratorLimVar.ReachUpper := false; wT4E1.integratorLimVar.ReachLower := false; end if; if wT4E1.integratorLimVar.ReachUpper and wT4E1.integratorLimVar.Falling then wT4E1.integratorLimVar.Reinit := true; wT4E1.integratorLimVar.initVar := wT4E1.integratorLimVar.outMax; elseif wT4E1.integratorLimVar.ReachLower and wT4E1.integratorLimVar.Rising then wT4E1.integratorLimVar.Reinit := true; wT4E1.integratorLimVar.initVar := wT4E1.integratorLimVar.outMin; end if; 13/18 (1): wT4E1.Vcl.y = wT4E1.K6.y - wT4E1.V 14/19 (1): wT4G1.lVPL.Vt = if abs(wT4G1.K2.T) <= 1e-15 then wT4E1.V * wT4G1.K2.K else wT4G1.K2.state 15/20 (1): wT4G1.lVPL.LVPL = if wT4G1.lVPL.Vt < wT4G1.lVPL.VLVPL1 then 0.0 else if wT4G1.lVPL.Vt > wT4G1.lVPL.VLVPL2 then 1e6 else wT4G1.lVPL.K * (wT4G1.lVPL.Vt - wT4G1.lVPL.VLVPL1) 16/21 (1): wT4G1.Iperr.u2 = smooth(0, if wT4G1.K.y > wT4G1.lVPL.LVPL then wT4G1.lVPL.LVPL else if wT4G1.K.y < wT4G1.const.k then wT4G1.const.k else wT4G1.K.y) 17/22 (1): wT4G1.IxL = if wT4E1.V < 0.4 then 0.0 else if wT4E1.V > 0.8 then wT4G1.Iperr.u2 else 1.25 * wT4G1.Iperr.u2 * wT4E1.V 18/23 (1): wT4G1.IxL = (-$cse3) * wT4G1.Is.re - $cse4 * wT4G1.Is.im 19/24 (1): wT4G1.Is.re = (-pwLine2.is.re) / wT4G1.CoB 20/25 (1): 0.0 = if time >= pwLine2.t1 and time < pwLine2.t2 then pwLine2.is.re else pwLine2.vs.re - pwLine2.vr.re - (pwLine2.Z.re * (pwLine2.is.re + pwLine2.vs.im * pwLine2.Y.im - pwLine2.vs.re * pwLine2.Y.re) - pwLine2.Z.im * (pwLine2.is.im + (-pwLine2.vs.re) * pwLine2.Y.im - pwLine2.vs.im * pwLine2.Y.re)) 21/26 (1): wT4G1.Is.im = (-pwLine2.is.im) / wT4G1.CoB 22/27 (1): 0.0 = if time >= pwLine2.t1 and time < pwLine2.t2 then pwLine2.is.im else pwLine2.vs.im - pwLine2.vr.im - (pwLine2.Z.re * (pwLine2.is.im + (-pwLine2.vs.re) * pwLine2.Y.im - pwLine2.vs.im * pwLine2.Y.re) + pwLine2.Z.im * (pwLine2.is.re + pwLine2.vs.im * pwLine2.Y.im - pwLine2.vs.re * pwLine2.Y.re)) 23/28 (1): 0.0 = if time >= pwLine2.t1 and time < pwLine2.t2 then pwLine2.ir.im else pwLine2.vr.im - pwLine2.vs.im - (pwLine2.Z.re * (pwLine2.ir.im + (-pwLine2.vr.re) * pwLine2.Y.im - pwLine2.vr.im * pwLine2.Y.re) + pwLine2.Z.im * (pwLine2.ir.re + pwLine2.vr.im * pwLine2.Y.im - pwLine2.vr.re * pwLine2.Y.re)) 24/29 (1): 0.0 = if time < pwFault.t1 then pwFault.p.ii else if time < pwFault.t2 and pwFault.ground then pwLine2.vr.re - 1e-10 else if time < pwFault.t2 then pwFault.p.ii - (pwFault.R * pwLine2.vr.im - pwFault.X * pwLine2.vr.re) / (pwFault.X ^ 2.0 + pwFault.R ^ 2.0) else pwFault.p.ii 25/30 (1): pwFault.p.ii + pwLine2.ir.im + pwLine1.is.im + pwLine.is.im = 0.0 26/31 (1): 0.0 = if time >= pwLine.t1 and time < pwLine.t2 then pwLine.is.re else pwLine2.vr.re - pwLine1.vr.re - (pwLine.Z.re * (pwLine.is.re + pwLine2.vr.im * pwLine.Y.im - pwLine2.vr.re * pwLine.Y.re) - pwLine.Z.im * (pwLine.is.im + (-pwLine2.vr.re) * pwLine.Y.im - pwLine2.vr.im * pwLine.Y.re)) 27/32 (1): 0.0 = if time < pwFault.t1 then pwFault.p.ir else if time < pwFault.t2 and pwFault.ground then pwLine2.vr.im else if time < pwFault.t2 then pwFault.p.ir - (pwFault.R * pwLine2.vr.re + pwFault.X * pwLine2.vr.im) / (pwFault.R ^ 2.0 + pwFault.X ^ 2.0) else pwFault.p.ir 28/33 (1): pwFault.p.ir + pwLine2.ir.re + pwLine1.is.re + pwLine.is.re = 0.0 29/34 (1): 0.0 = if time >= pwLine2.t1 and time < pwLine2.t2 then pwLine2.ir.re else pwLine2.vr.re - pwLine2.vs.re - (pwLine2.Z.re * (pwLine2.ir.re + pwLine2.vr.im * pwLine2.Y.im - pwLine2.vr.re * pwLine2.Y.re) - pwLine2.Z.im * (pwLine2.ir.im + (-pwLine2.vr.re) * pwLine2.Y.im - pwLine2.vr.im * pwLine2.Y.re)) 30/35 (1): 0.0 = if time >= pwLine1.t1 and time < pwLine1.t2 then pwLine1.is.re else pwLine2.vr.re - pwLine1.vr.re - (pwLine1.Z.re * (pwLine1.is.re + pwLine2.vr.im * pwLine1.Y.im - pwLine2.vr.re * pwLine1.Y.re) - pwLine1.Z.im * (pwLine1.is.im + (-pwLine2.vr.re) * pwLine1.Y.im - pwLine2.vr.im * pwLine1.Y.re)) 31/36 (1): 0.0 = if time >= pwLine1.t1 and time < pwLine1.t2 then pwLine1.is.im else pwLine2.vr.im - pwLine1.vr.im - (pwLine1.Z.re * (pwLine1.is.im + (-pwLine2.vr.re) * pwLine1.Y.im - pwLine2.vr.im * pwLine1.Y.re) + pwLine1.Z.im * (pwLine1.is.re + pwLine2.vr.im * pwLine1.Y.im - pwLine2.vr.re * pwLine1.Y.re)) 32/37 (1): 0.0 = if time >= pwLine1.t1 and time < pwLine1.t2 then pwLine1.ir.im else pwLine1.vr.im - pwLine2.vr.im - (pwLine1.Z.re * (pwLine1.ir.im + (-pwLine1.vr.re) * pwLine1.Y.im - pwLine1.vr.im * pwLine1.Y.re) + pwLine1.Z.im * (pwLine1.ir.re + pwLine1.vr.im * pwLine1.Y.im - pwLine1.vr.re * pwLine1.Y.re)) 33/38 (1): pwLine1.vr.re = $cse1 * gENCLS2_1.vd + $cse2 * gENCLS2_1.vq 34/39 (1): pwLine1.vr.im = $cse1 * gENCLS2_1.vq - $cse2 * gENCLS2_1.vd 35/40 (1): 0.0 = if time >= pwLine1.t1 and time < pwLine1.t2 then pwLine1.ir.re else pwLine1.vr.re - pwLine2.vr.re - (pwLine1.Z.re * (pwLine1.ir.re + pwLine1.vr.im * pwLine1.Y.im - pwLine1.vr.re * pwLine1.Y.re) - pwLine1.Z.im * (pwLine1.ir.im + (-pwLine1.vr.re) * pwLine1.Y.im - pwLine1.vr.im * pwLine1.Y.re)) 36/41 (1): gENCLS2_1.p.ir + pwLine1.ir.re + pwLine.ir.re = 0.0 37/42 (1): gENCLS2_1.p.ir = (-gENCLS2_1.CoB) * ($cse1 * gENCLS2_1.id + $cse2 * gENCLS2_1.iq) 38/43 (1): gENCLS2_1.p.ii = gENCLS2_1.CoB * ($cse2 * gENCLS2_1.id - $cse1 * gENCLS2_1.iq) 39/44 (1): gENCLS2_1.p.ii + pwLine1.ir.im + pwLine.ir.im = 0.0 40/45 (1): gENCLS2_1.vd = gENCLS2_1.X_d * gENCLS2_1.iq - gENCLS2_1.R_a * gENCLS2_1.id 41/46 (1): gENCLS2_1.vq = gENCLS2_1.eq + (-gENCLS2_1.R_a) * gENCLS2_1.iq - gENCLS2_1.X_d * gENCLS2_1.id 42/47 (1): 0.0 = if time >= pwLine.t1 and time < pwLine.t2 then pwLine.is.im else pwLine2.vr.im - pwLine1.vr.im - (pwLine.Z.re * (pwLine.is.im + (-pwLine2.vr.re) * pwLine.Y.im - pwLine2.vr.im * pwLine.Y.re) + pwLine.Z.im * (pwLine.is.re + pwLine2.vr.im * pwLine.Y.im - pwLine2.vr.re * pwLine.Y.re)) 43/48 (1): 0.0 = if time >= pwLine.t1 and time < pwLine.t2 then pwLine.ir.re else pwLine1.vr.re - pwLine2.vr.re - (pwLine.Z.re * (pwLine.ir.re + pwLine1.vr.im * pwLine.Y.im - pwLine1.vr.re * pwLine.Y.re) - pwLine.Z.im * (pwLine.ir.im + (-pwLine1.vr.re) * pwLine.Y.im - pwLine1.vr.im * pwLine.Y.re)) 44/49 (1): 0.0 = if time >= pwLine.t1 and time < pwLine.t2 then pwLine.ir.im else pwLine1.vr.im - pwLine2.vr.im - (pwLine.Z.re * (pwLine.ir.im + (-pwLine1.vr.re) * pwLine.Y.im - pwLine1.vr.im * pwLine.Y.re) + pwLine.Z.im * (pwLine.ir.re + pwLine1.vr.im * pwLine.Y.im - pwLine1.vr.re * pwLine.Y.re)) 45/50 (1): $cse4 = sin(wT4G1.delta) Variables: 1: $cse4:VARIABLE(protected = true ) type: Real unreplaceable 2: pwLine.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number" type: Real 3: pwLine.ir.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number" type: Real 4: pwLine.is.re:VARIABLE(start = 1e-15 ) "Real part of complex number" type: Real 5: gENCLS2_1.vq:VARIABLE(start = gENCLS2_1.vq0 unit = "1" ) "q-axis voltage" type: Real 6: gENCLS2_1.id:VARIABLE(start = gENCLS2_1.id0 unit = "1" ) "d-axis current" type: Real 7: pwLine1.ir.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number" type: Real 8: gENCLS2_1.p.ii:VARIABLE(flow=true start = gENCLS2_1.ii0 unit = "1" ) "Imaginary part of the current" type: Real 9: gENCLS2_1.iq:VARIABLE(start = gENCLS2_1.iq0 unit = "1" ) "q-axis current" type: Real 10: gENCLS2_1.p.ir:VARIABLE(flow=true start = gENCLS2_1.ir0 unit = "1" ) "Real part of the current" type: Real 11: pwLine1.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number" type: Real 12: pwLine1.vr.im:VARIABLE(start = gENCLS2_1.vi0 ) "Imaginary part of complex number" type: Real 13: gENCLS2_1.vd:VARIABLE(start = gENCLS2_1.vd0 unit = "1" ) "d-axis voltage" type: Real 14: pwLine1.vr.re:VARIABLE(start = gENCLS2_1.vr0 ) "Real part of complex number" type: Real 15: pwLine1.is.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number" type: Real 16: pwLine1.is.re:VARIABLE(start = 1e-15 ) "Real part of complex number" type: Real 17: pwLine2.ir.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number" type: Real 18: pwLine2.ir.re:VARIABLE(start = 1e-15 ) "Real part of complex number" type: Real 19: pwFault.p.ir:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Real part of the current" type: Real 20: pwLine2.vr.im:VARIABLE(start = FAULT.v_0 * sin(FAULT.angle_0) ) "Imaginary part of complex number" type: Real 21: pwLine.is.im:VARIABLE(start = 1e-15 ) "Imaginary part of complex number" type: Real 22: pwFault.p.ii:VARIABLE(flow=true start = 1e-15 unit = "1" ) "Imaginary part of the current" type: Real 23: pwLine2.vr.re:VARIABLE(start = FAULT.v_0 * cos(FAULT.angle_0) ) "Real part of complex number" type: Real 24: pwLine2.vs.im:VARIABLE(start = wT4G1.vi0 ) "Imaginary part of complex number" type: Real 25: wT4G1.Is.im:VARIABLE() "Imaginary part of complex number" type: Real 26: pwLine2.is.im:VARIABLE(start = -wT4G1.ii1 ) "Imaginary part of complex number" type: Real 27: pwLine2.is.re:VARIABLE(start = -wT4G1.ir1 ) "Real part of complex number" type: Real 28: wT4G1.Is.re:VARIABLE() "Real part of complex number" type: Real 29: wT4G1.IxL:VARIABLE(flow=false start = wT4G1.Ix0 ) type: Real 30: wT4G1.Iperr.u2:VARIABLE(flow=false start = wT4G1.Ipcmd0 ) "Feedback input" type: Real 31: wT4G1.lVPL.LVPL:VARIABLE(flow=false ) type: Real 32: wT4G1.lVPL.Vt:VARIABLE(flow=false start = wT4G1.K2.y_start ) type: Real 33: wT4E1.Vcl.y:VARIABLE(flow=false ) type: Real 34: wT4E1.integratorLimVar.Falling:DISCRETE(protected = true ) "Flag to know if input is negative" type: Boolean 35: wT4E1.integratorLimVar.ReachLower:DISCRETE(protected = true ) "Flag for reaching lower limit" type: Boolean 36: wT4E1.integratorLimVar.outMin:VARIABLE(flow=false ) type: Real 37: wT4E1.integratorLimVar.outMax:VARIABLE(flow=false ) type: Real 38: wT4E1.cCL.min2.u1:VARIABLE(flow=false ) "Connector of Real input signal 1" type: Real 39: wT4E1.cCL.min5.u2:VARIABLE(flow=false ) "Connector of Real input signal 2" type: Real 40: wT4E1.V:VARIABLE(flow=false start = wT4E1.v0 ) type: Real 41: pwLine2.vs.re:VARIABLE(start = wT4G1.vr0 ) "Real part of complex number" type: Real 42: wT4G1.delta:VARIABLE(start = wT4G1.angle_0 unit = "rad" protected = true ) type: Real 43: $cse3:VARIABLE(protected = true ) type: Real unreplaceable 44: wT4G1.IyL:VARIABLE(flow=false start = wT4G1.Iy0 ) type: Real 45: wT4G1.Iy:VARIABLE(flow=false start = wT4G1.K1.y_start ) type: Real 46: wT4E1.WIQCMD:VARIABLE(flow=false start = wT4G1.Iy0 ) type: Real 47: wT4E1.integratorLimVar.ReachUpper:DISCRETE(protected = true ) "Flag for reaching upper limit" type: Boolean 48: wT4E1.integratorLimVar.initVar:VARIABLE(protected = true ) "Dummy variable to be used as setting quantity" type: Real 49: wT4E1.integratorLimVar.Rising:DISCRETE(protected = true ) "Flag to know if input is positive" type: Boolean 50: wT4E1.integratorLimVar.Reinit:DISCRETE(protected = true ) "Flag to reset state variable" type: Boolean [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003247/0.2773, allocations: 3.387 MB / 0.7233 GB, free: 15.22 MB / 0.5294 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1 could not be translated