Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Controls.PSSE.ES.ESST4B.conf.json 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/Modelica 4.0.0+maint.om/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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Tests.Controls.PSSE.ES.ESST4B") translateModel(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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 4.0.0+maint.om/package.mo): time 0.002848/0.002848, allocations: 180.3 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 221.4 MB / 229.3 MB, free: 3.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 102.2 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4568/0.4568, allocations: 78.92 MB / 409.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.895e-06, allocations: 3.938 kB / 485.4 MB, free: 3.656 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.332, allocations: 69.51 MB / 0.5419 GB, free: 20.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4816, allocations: 112.5 MB / 0.6517 GB, free: 7.367 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.4819, allocations: 87.94 kB / 0.6518 GB, free: 7.281 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.3792/0.8611, allocations: 45.43 MB / 0.6962 GB, free: 105 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.378e-05/0.8613, allocations: 35.72 kB / 0.6962 GB, free: 105 MB / 490.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.006838/0.8681, allocations: 2.401 MB / 0.6986 GB, free: 103.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.8682, allocations: 8.875 kB / 0.6986 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004881/0.8731, allocations: 0.7059 MB / 0.6993 GB, free: 103.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/0.8759, allocations: 1.112 MB / 0.7003 GB, free: 103 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000497/0.8764, allocations: 441.1 kB / 0.7008 GB, free: 102.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000278/0.8767, allocations: 78.55 kB / 0.7008 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002567/0.8793, allocations: 1.186 MB / 0.702 GB, free: 102.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/0.8818, allocations: 1.255 MB / 0.7032 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.8819, allocations: 3.938 kB / 0.7032 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001346/0.882, allocations: 1.469 kB / 0.7032 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-05/0.882, allocations: 31.81 kB / 0.7033 GB, free: 101.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01179/0.8938, allocations: 5.793 MB / 0.7089 GB, free: 97.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.8969, allocations: 1.445 MB / 0.7103 GB, free: 96.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.898, allocations: 0.7405 MB / 0.711 GB, free: 96.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001602/0.8982, allocations: 24.61 kB / 0.7111 GB, free: 96.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.8982, allocations: 50.12 kB / 0.7111 GB, free: 96.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=136): time 4.318e-06/0.8982, allocations: 1.25 kB / 0.7111 GB, free: 96.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.01646/0.9147, allocations: 5.399 MB / 0.7164 GB, free: 92.35 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.9148, allocations: 197.2 kB / 0.7166 GB, free: 92.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.9166, allocations: 1.091 MB / 0.7176 GB, free: 91.01 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003653/0.917, allocations: 25.7 kB / 0.7177 GB, free: 90.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/0.9172, allocations: 443.2 kB / 0.7181 GB, free: 90.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005453/0.9177, allocations: 472.9 kB / 0.7185 GB, free: 90.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.9178, allocations: 3.938 kB / 0.7185 GB, free: 90.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.9179, allocations: 357.9 kB / 0.7189 GB, free: 89.71 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.919, allocations: 0.6211 MB / 0.7195 GB, free: 89.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.92, allocations: 0.832 MB / 0.7203 GB, free: 88.19 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.9213, allocations: 0.6818 MB / 0.721 GB, free: 87.51 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.9213, allocations: 4 kB / 0.721 GB, free: 87.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003892/0.9252, allocations: 2.276 MB / 0.7232 GB, free: 85.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003055/0.9255, allocations: 1.717 MB / 0.7249 GB, free: 83.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.9255, allocations: 4 kB / 0.7249 GB, free: 83.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01077/0.9363, allocations: 2.838 MB / 0.7277 GB, free: 80.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.9371, allocations: 171.8 kB / 0.7278 GB, free: 80.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009467/0.9466, allocations: 4.187 MB / 0.7319 GB, free: 76.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.9491, allocations: 278.6 kB / 0.7322 GB, free: 75.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.9493, allocations: 51.98 kB / 0.7322 GB, free: 75.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.9493, allocations: 5.875 kB / 0.7322 GB, free: 75.79 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003485/0.9528, allocations: 2.035 MB / 0.7342 GB, free: 73.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.9528, allocations: 11.97 kB / 0.7342 GB, free: 73.74 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01078/0.9636, allocations: 2.811 MB / 0.737 GB, free: 70.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008683/0.9645, allocations: 171.8 kB / 0.7371 GB, free: 70.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008622/0.9731, allocations: 3.863 MB / 0.7409 GB, free: 66.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.9755, allocations: 254.8 kB / 0.7411 GB, free: 66.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.9757, allocations: 55.98 kB / 0.7412 GB, free: 66.57 MB / 490.7 MB 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.0005197/0.9762, allocations: 175.4 kB / 0.7414 GB, free: 66.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/0.9766, allocations: 173.8 kB / 0.7415 GB, free: 66.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01528/0.9918, allocations: 5.491 MB / 0.7469 GB, free: 60.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.9919, allocations: 20 kB / 0.7469 GB, free: 60.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.9919, allocations: 0 / 0.7469 GB, free: 60.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/0.9919, allocations: 11.91 kB / 0.7469 GB, free: 60.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01818/1.01, allocations: 7.541 MB / 0.7543 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.01, allocations: 0 / 0.7543 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/1.011, allocations: 191.8 kB / 0.7545 GB, free: 52.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006423/1.018, allocations: 2.139 MB / 0.7566 GB, free: 50.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/1.018, allocations: 11.98 kB / 0.7566 GB, free: 50.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01726/1.035, allocations: 8.736 MB / 0.7651 GB, free: 41.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.035, allocations: 4 kB / 0.7651 GB, free: 41.79 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01691/1.052, allocations: 6.582 MB / 0.7715 GB, free: 35.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008608/1.053, allocations: 282.6 kB / 0.7718 GB, free: 34.89 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/1.053, allocations: 4 kB / 0.7718 GB, free: 34.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/1.055, allocations: 199.8 kB / 0.772 GB, free: 34.69 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004146/1.056, allocations: 180.9 kB / 0.7722 GB, free: 34.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/1.056, allocations: 35.98 kB / 0.7722 GB, free: 34.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001029/1.057, allocations: 0.8275 MB / 0.773 GB, free: 33.65 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001943/1.059, allocations: 0.7678 MB / 0.7738 GB, free: 32.88 MB / 490.7 MB 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.0003441/1.059, allocations: 162.9 kB / 0.7739 GB, free: 32.71 MB / 490.7 MB 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]