Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.ESST4B.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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/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 Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.ESST4B") translateModel(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Controls.PSSE.ES.ESST4B") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003119/0.00312, allocations: 179.2 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.2 MB / 213.1 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009449/0.0009448, allocations: 92.84 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06576/0.06576, allocations: 12.58 MB / 321.6 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.349/0.349, allocations: 78.04 MB / 450.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.582e-06/6.592e-06, allocations: 0 / 0.5141 GB, free: 29.96 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 69.32 MB / 0.5818 GB, free: 8.742 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3972/0.5338, allocations: 113.4 MB / 0.6926 GB, free: 10.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.534, allocations: 89.92 kB / 0.6926 GB, free: 10.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.127/0.661, allocations: 45.89 MB / 0.7375 GB, free: 5.176 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002034/0.6613, allocations: 32 kB / 0.7375 GB, free: 5.145 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.008971/0.6703, allocations: 2.416 MB / 0.7399 GB, free: 2.844 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.6703, allocations: 11.97 kB / 0.7399 GB, free: 2.832 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004481/0.6748, allocations: 0.709 MB / 0.7406 GB, free: 2.168 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.6778, allocations: 1.12 MB / 0.7417 GB, free: 1.27 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005808/0.6784, allocations: 438.6 kB / 0.7421 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004629/0.6789, allocations: 71.5 kB / 0.7421 GB, free: 0.7031 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002731/0.6816, allocations: 1.185 MB / 0.7433 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.6841, allocations: 1.263 MB / 0.7445 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.6842, allocations: 0 / 0.7445 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.6843, allocations: 0 / 0.7445 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.6844, allocations: 28 kB / 0.7446 GB, free: 15.04 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/0.6964, allocations: 5.81 MB / 0.7502 GB, free: 10.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003188/0.6997, allocations: 1.453 MB / 0.7516 GB, free: 8.941 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.701, allocations: 0.729 MB / 0.7524 GB, free: 8.207 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.7012, allocations: 33.28 kB / 0.7524 GB, free: 8.176 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.7012, allocations: 51.86 kB / 0.7524 GB, free: 8.113 MB / 490.7 MB Notification: Performance of pre-optimization done (n=136): time 2.876e-06/0.7012, allocations: 0 / 0.7524 GB, free: 8.113 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.01783/0.7191, allocations: 5.393 MB / 0.7577 GB, free: 2.699 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.7192, allocations: 193.2 kB / 0.7579 GB, free: 2.469 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.7221, allocations: 1.103 MB / 0.759 GB, free: 1.359 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004242/0.7225, allocations: 25.7 kB / 0.759 GB, free: 1.328 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000487/0.723, allocations: 443.2 kB / 0.7594 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.724, allocations: 465 kB / 0.7599 GB, free: 436 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.7242, allocations: 4 kB / 0.7599 GB, free: 432 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.7244, allocations: 361.9 kB / 0.7602 GB, free: 64 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.7258, allocations: 0.6172 MB / 0.7608 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.7273, allocations: 0.8243 MB / 0.7616 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.7289, allocations: 0.6779 MB / 0.7623 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.729, allocations: 8 kB / 0.7623 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=183) (initialization): time 0.005362/0.7343, allocations: 2.273 MB / 0.7645 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008428/0.7352, allocations: 1.713 MB / 0.7662 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.7352, allocations: 4 kB / 0.7662 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01208/0.7473, allocations: 2.834 MB / 0.7689 GB, free: 6.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009653/0.7483, allocations: 183.7 kB / 0.7691 GB, free: 6.695 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/0.7598, allocations: 4.179 MB / 0.7732 GB, free: 2.496 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.7625, allocations: 274.6 kB / 0.7735 GB, free: 2.227 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/0.7628, allocations: 63.91 kB / 0.7735 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.7628, allocations: 4 kB / 0.7735 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004351/0.7672, allocations: 2.035 MB / 0.7755 GB, free: 124 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.7672, allocations: 4 kB / 0.7755 GB, free: 120 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/0.7792, allocations: 2.819 MB / 0.7783 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009346/0.7801, allocations: 175.7 kB / 0.7784 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.7907, allocations: 3.855 MB / 0.7822 GB, free: 9.238 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002575/0.7933, allocations: 266.7 kB / 0.7825 GB, free: 8.977 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002975/0.7936, allocations: 55.98 kB / 0.7825 GB, free: 8.922 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: constantLoad.P:VARIABLE(unit = "1" ) "Active power consumption" type: Real constantLoad.Q:VARIABLE(unit = "1" ) "Reactive power consumption" type: Real eSST4B.V_REF:VARIABLE(fixed = false protected = true ) type: Real $START.eSST4B.TransducerDelay.state:VARIABLE(fixed = false ) type: Real $START.eSST4B.DiffV.u2:VARIABLE(fixed = false ) "Connector of Real input signal 2" type: Real eSST4B.TransducerDelay.y_start:VARIABLE() = eSST4B.ECOMP0 "Output start value" type: Real eSST4B.ECOMP0:VARIABLE(fixed = false protected = true ) type: Real eSST4B.VA.u:VARIABLE() "Connector of Real input signal" type: Real eSST4B.add.y:VARIABLE() "Connector of Real output signal" type: Real eSST4B.Gain1.y:VARIABLE() "Output signal connector" type: Real eSST4B.Gain1.u:VARIABLE() "Input signal connector" type: Real eSST4B.DiffV.y:VARIABLE() "Connector of Real output signal" type: Real gENROU.PSIpp:VARIABLE(unit = "1" ) "Air-gap flux " type: Real eSST4B.VE0:VARIABLE(fixed = false protected = true ) type: Real $START.eSST4B.VM1.y:VARIABLE(fixed = false ) "Connector of Real output signal" type: Real eSST4B.VM1.y_start:VARIABLE() = eSST4B.VA0 "Initial or guess value of output (must be in the limits outMin .. outMax)" type: Real eSST4B.VA0:VARIABLE(fixed = false protected = true ) type: Real eSST4B.VB0:VARIABLE(fixed = false protected = true ) type: Real eSST4B.IN0:VARIABLE(fixed = false protected = true ) type: Real eSST4B.Ifd0:VARIABLE(fixed = false protected = true ) type: Real eSST4B.rectifierCommutationVoltageDrop.fEX.y:VARIABLE() type: Real eSST4B.rectifierCommutationVoltageDrop.division.y:VARIABLE() "Connector of Real output signal" type: Real eSST4B.rectifierCommutationVoltageDrop.division.u1:VARIABLE() "Connector of Real input signal 1" type: Real eSST4B.EFD:VARIABLE() "Excitation Voltage [pu]" type: Real eSST4B.add1.u1:VARIABLE() "Connector of Real input signal 1" type: Real eSST4B.Gain2.u:VARIABLE() "Input signal connector" type: Real eSST4B.Gain2.y:VARIABLE() "Output signal connector" type: Real eSST4B.add2.y:VARIABLE() "Connector of Real output signal" type: Real eSST4B.lV_Gate.u1:VARIABLE() "Connector of Real input signal 1" type: Real eSST4B.lV_Gate.y:VARIABLE() "Connector of Real output signal" type: Real eSST4B.maxLimiter.y:VARIABLE() "Connector of Real output signal" type: Real eSST4B.maxLimiter.u:VARIABLE() "Connector of Real input signal" type: Real eSST4B.VE:VARIABLE(protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (eSST4B.VM1.local_reset,eSST4B.VR1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {93} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006294/0.7943, allocations: 167 kB / 0.7827 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/0.7949, allocations: 165.9 kB / 0.7828 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/0.8126, allocations: 5.503 MB / 0.7882 GB, free: 3.059 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.224e-05/0.8127, allocations: 16 kB / 0.7882 GB, free: 3.043 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.8127, allocations: 0 / 0.7882 GB, free: 3.043 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.928e-05/0.8128, allocations: 11.97 kB / 0.7882 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/0.8358, allocations: 7.535 MB / 0.7956 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.8358, allocations: 0 / 0.7956 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.8373, allocations: 191.8 kB / 0.7958 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007522/0.8448, allocations: 2.135 MB / 0.7979 GB, free: 9.062 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003852/0.8452, allocations: 11.98 kB / 0.7979 GB, free: 9.051 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02269/0.868, allocations: 8.748 MB / 0.8064 GB, free: 64 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.868, allocations: 0 / 0.8064 GB, free: 64 kB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02068/0.8887, allocations: 6.59 MB / 0.8129 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.8898, allocations: 274.6 kB / 0.8131 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/0.8909, allocations: 8 kB / 0.8131 GB, free: 9.125 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/0.8935, allocations: 199.8 kB / 0.8133 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000711/0.8942, allocations: 177 kB / 0.8135 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.8945, allocations: 35.98 kB / 0.8135 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001908/0.8964, allocations: 0.8277 MB / 0.8143 GB, free: 7.898 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00381/0.9002, allocations: 0.7677 MB / 0.8151 GB, free: 7.129 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 13 (gENCLS.delta,gENCLS.eq,gENROU.w,gENROU.delta,gENROU.Epd,gENROU.Epq,gENROU.PSIkd,gENROU.PSIkq,eSST4B.VA.state,eSST4B.VR1.y,eSST4B.VM1.y,eSST4B.TransducerDelay.state,gENCLS.omega) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,26 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005597/0.9008, allocations: 159.5 kB / 0.8152 GB, free: 6.965 MB / 0.5417 GB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3706:7-3706:48:writable] Error: Internal error createOdeSystem2 failed for Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3599:9-3599:50:writable] Error: Internal error function createOdeSystem failed for component {74, 82, 77, 79, 73, 68, 155, 156, 33, 124, 153, 154, 67, 72, 80, 78, 83, 75, 70, 69, 35, 37, 43, 56, 57, 45, 44, 46, 49, 48, 85, 39, 36, 38, 9, 11, 12, 13, 162, 20, 7, 10, 76, 64, 40, 58, 42, 52, 50, 51, 54, 17, 161, 24, 19, 8, 15, 165, 147, 148, 32, 117, 145, 146, 34, 123, 126, 125, 119, 121, 100, 99, 90, 97, 98, 91, 92, 29, 140, 139, 138, 137, 31, 118, 131, 136, 135, 132, 89, 134, 133, 30, 120:119, 136, 128, 137, 94, 87, 131, 129, 130, 148, 117, 141, 140, 86, 138, 139, 85, 84, 96, 97, 95, 93, 92, 98, 122, 121, 118, 120, 124, 150, 151, 149, 116, 146, 147, 14, 12, 22, 20, 48, 8, 7, 42, 43, 32, 33, 34, 47, 49, 50, 53, 1, 30, 28, 9, 3, 4, 5, 6, 19, 17, 18, 46, 51, 31, 27, 26, 25, 45, 44, 23, 24, 16, 158, 68, 69, 61, 63, 55, 57, 66, 160, 159, 99, 125, 157, 156, 161, 67, 56, 54, 59, 65} Size: 93 Generic Jacobian via directional derivatives [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]