Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1") translateModel(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07725/0.07725, allocations: 12.61 MB / 28.91 MB, free: 412 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 107.5 kB / 32.51 MB, free: 3.414 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 241.1 MB, free: 12.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 192.5 kB / 291.4 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4355/0.4355, allocations: 78.5 MB / 420 MB, free: 11.24 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00271/0.00271, allocations: 134.3 kB / 0.5565 GB, free: 28.59 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1145, allocations: 68.13 MB / 0.623 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Wind.PSSE.WT4G.WT4E1): time 0.009769/0.1243, allocations: 8.202 MB / 0.631 GB, free: 7.219 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.1297, allocations: 2.543 MB / 0.6335 GB, free: 4.668 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.1311, allocations: 27.88 kB / 0.6336 GB, free: 4.641 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.1322, allocations: 277.1 kB / 0.6338 GB, free: 4.367 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001985/0.1342, allocations: 0.5431 MB / 0.6344 GB, free: 3.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003012/0.1373, allocations: 1.351 MB / 0.6357 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002909/0.1402, allocations: 2.371 MB / 0.638 GB, free: 100 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001142/0.1413, allocations: 0.6649 MB / 0.6386 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.1426, allocations: 0.9065 MB / 0.6395 GB, free: 14.49 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.1441, allocations: 1.011 MB / 0.6405 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005817/0.1447, allocations: 232 kB / 0.6407 GB, free: 13.25 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007175/0.1454, allocations: 300 kB / 0.641 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004814/0.1459, allocations: 498.1 kB / 0.6415 GB, free: 12.46 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000875/0.1468, allocations: 0.9946 MB / 0.6425 GB, free: 11.46 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002433/0.1492, allocations: 2.733 MB / 0.6451 GB, free: 8.723 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1492, allocations: 0 / 0.6451 GB, free: 8.723 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1493, allocations: 0 / 0.6451 GB, free: 8.723 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.171e-05/0.1493, allocations: 4 kB / 0.6451 GB, free: 8.719 MB / 462.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.007441/0.1567, allocations: 2.844 MB / 0.6479 GB, free: 5.809 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.1568, allocations: 11.98 kB / 0.6479 GB, free: 5.797 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002801/0.1596, allocations: 0.5487 MB / 0.6485 GB, free: 5.246 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.1615, allocations: 1.197 MB / 0.6496 GB, free: 3.996 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005632/0.162, allocations: 0.5797 MB / 0.6502 GB, free: 3.316 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.1622, allocations: 139.9 kB / 0.6503 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003333/0.1656, allocations: 1.693 MB / 0.652 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.1656, allocations: 0 / 0.652 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.1658, allocations: 56 kB / 0.652 GB, free: 1.352 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.1658, allocations: 28 kB / 0.6521 GB, free: 1.324 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003281/0.1691, allocations: 1.422 MB / 0.6535 GB, free: 15.89 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.008793/0.1779, allocations: 5.975 MB / 0.6593 GB, free: 9.688 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009737/0.1876, allocations: 3.085 MB / 0.6623 GB, free: 6.508 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.1897, allocations: 0.9034 MB / 0.6632 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.963e-05/0.1898, allocations: 21.06 kB / 0.6632 GB, free: 5.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002177/0.192, allocations: 0.9838 MB / 0.6642 GB, free: 4.566 MB / 478.1 MB Notification: Performance of pre-optimization done (n=121): time 3.146e-06/0.192, allocations: 0 / 0.6642 GB, free: 4.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=121): time 0.02105/0.2131, allocations: 5.653 MB / 0.6697 GB, free: 14.87 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.2132, allocations: 252.3 kB / 0.6699 GB, free: 14.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.2155, allocations: 1.423 MB / 0.6713 GB, free: 13.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.2157, allocations: 53.7 kB / 0.6714 GB, free: 13.08 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00058/0.2163, allocations: 0.6898 MB / 0.672 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004888/0.2168, allocations: 433.8 kB / 0.6725 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005973/0.2174, allocations: 339.4 kB / 0.6728 GB, free: 11.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.2175, allocations: 301.1 kB / 0.6731 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.2196, allocations: 0.8675 MB / 0.6739 GB, free: 10.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002355/0.222, allocations: 1.138 MB / 0.675 GB, free: 9.227 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00425/0.2263, allocations: 1.926 MB / 0.6769 GB, free: 7.219 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/0.2263, allocations: 11.88 kB / 0.6769 GB, free: 7.207 MB / 494.1 MB 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.01414/0.2404, allocations: 4.446 MB / 0.6813 GB, free: 2.699 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.043e-05/0.2405, allocations: 48.66 kB / 0.6813 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.2405, allocations: 7.938 kB / 0.6813 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006104/0.2467, allocations: 1.762 MB / 0.683 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.2481, allocations: 311.5 kB / 0.6833 GB, free: 0.5586 MB / 494.1 MB 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.003121/0.2513, allocations: 1.506 MB / 0.6848 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.2533, allocations: 266.2 kB / 0.6851 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/0.2535, allocations: 67.98 kB / 0.6851 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00263/0.2562, allocations: 1.043 MB / 0.6861 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002172/0.2583, allocations: 1.052 MB / 0.6872 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003933/0.2623, allocations: 1.805 MB / 0.6889 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.165e-06/0.2623, allocations: 0 / 0.6889 GB, free: 10.62 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_lambda0): time 0.01292/0.2752, allocations: 4.214 MB / 0.693 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.046e-05/0.2753, allocations: 37.7 kB / 0.6931 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.2753, allocations: 4 kB / 0.6931 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005729/0.2811, allocations: 1.699 MB / 0.6947 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.2824, allocations: 299.5 kB / 0.695 GB, free: 4.289 MB / 0.4981 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.003006/0.2854, allocations: 1.485 MB / 0.6965 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.2873, allocations: 214.7 kB / 0.6967 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/0.2876, allocations: 67.98 kB / 0.6967 GB, free: 2.484 MB / 0.4981 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.0006108/0.2882, allocations: 313.5 kB / 0.697 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005453/0.2887, allocations: 169.9 kB / 0.6972 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006543/0.2953, allocations: 2.474 MB / 0.6996 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.2953, allocations: 7.922 kB / 0.6996 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.2953, allocations: 4 kB / 0.6996 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.2959, allocations: 278.6 kB / 0.6999 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003597/0.2963, allocations: 32 kB / 0.6999 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/0.2978, allocations: 151.8 kB / 0.7001 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003691/0.2981, allocations: 132.8 kB / 0.7002 GB, free: 14.89 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 ) 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.003465/0.3016, allocations: 3.407 MB / 0.7035 GB, free: 10.95 MB / 0.5137 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