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: "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSSE_ES_ESST4B",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSSE.ES.ESST4B,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Controls_PSSE_ES_ESST4B",fmuType="me",version="2.0",platforms={"static"}) [: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.002682/0.002682, allocations: 187 kB / 7.46 MB, free: 2.516 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.355/1.355, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0009611/0.000961, allocations: 101.6 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4495/0.4495, allocations: 78.92 MB / 409.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1612/0.6107, allocations: 75.65 MB / 485.5 MB, free: 3.551 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.9907, allocations: 69.5 MB / 0.542 GB, free: 21.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/1.131, allocations: 112.5 MB / 0.6518 GB, free: 7.477 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/1.131, allocations: 87.95 kB / 0.6519 GB, free: 7.391 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.4526/1.584, allocations: 47.87 MB / 0.6986 GB, free: 104.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.351e-05/1.584, allocations: 9.125 kB / 0.6987 GB, free: 104.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005398/1.589, allocations: 0.7077 MB / 0.6993 GB, free: 104 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003127/1.592, allocations: 1.105 MB / 0.7004 GB, free: 103.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000555/1.593, allocations: 448.1 kB / 0.7009 GB, free: 102.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003696/1.593, allocations: 75.2 kB / 0.7009 GB, free: 102.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002856/1.596, allocations: 1.181 MB / 0.7021 GB, free: 102.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002862/1.599, allocations: 1.263 MB / 0.7033 GB, free: 101.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/1.599, allocations: 0.75 kB / 0.7033 GB, free: 101.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/1.599, allocations: 0.7188 kB / 0.7033 GB, free: 101.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.73e-05/1.599, allocations: 29.2 kB / 0.7033 GB, free: 101.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0146/1.614, allocations: 5.795 MB / 0.709 GB, free: 97.74 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/1.617, allocations: 1.452 MB / 0.7104 GB, free: 97.08 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/1.619, allocations: 0.7349 MB / 0.7111 GB, free: 96.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002124/1.619, allocations: 28.92 kB / 0.7112 GB, free: 96.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.45e-05/1.619, allocations: 54 kB / 0.7112 GB, free: 96.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=136): time 6.131e-06/1.619, allocations: 3.938 kB / 0.7112 GB, free: 96.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.01726/1.636, allocations: 5.392 MB / 0.7165 GB, free: 92.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.15e-05/1.637, allocations: 205.2 kB / 0.7167 GB, free: 92.37 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/1.638, allocations: 1.087 MB / 0.7177 GB, free: 91.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004678/1.639, allocations: 29.7 kB / 0.7178 GB, free: 91.24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/1.639, allocations: 439.2 kB / 0.7182 GB, free: 90.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006722/1.64, allocations: 472.9 kB / 0.7186 GB, free: 90.33 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/1.64, allocations: 0 / 0.7186 GB, free: 90.33 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.366e-05/1.64, allocations: 357.9 kB / 0.719 GB, free: 89.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/1.641, allocations: 0.625 MB / 0.7196 GB, free: 89.35 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/1.642, allocations: 0.8243 MB / 0.7204 GB, free: 88.46 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/1.643, allocations: 0.6818 MB / 0.7211 GB, free: 87.78 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/1.643, allocations: 0 / 0.7211 GB, free: 87.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.004324/1.648, allocations: 2.28 MB / 0.7233 GB, free: 85.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000376/1.648, allocations: 1.71 MB / 0.725 GB, free: 83.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/1.648, allocations: 7.984 kB / 0.725 GB, free: 83.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/1.659, allocations: 2.838 MB / 0.7277 GB, free: 80.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/1.661, allocations: 175.7 kB / 0.7279 GB, free: 80.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/1.671, allocations: 4.176 MB / 0.732 GB, free: 76.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002849/1.674, allocations: 282.6 kB / 0.7322 GB, free: 76.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/1.674, allocations: 59.92 kB / 0.7323 GB, free: 76.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/1.674, allocations: 4 kB / 0.7323 GB, free: 76.06 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003626/1.678, allocations: 2.031 MB / 0.7343 GB, free: 74.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1.678, allocations: 7.984 kB / 0.7343 GB, free: 74.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01131/1.689, allocations: 2.818 MB / 0.7371 GB, free: 71.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.69, allocations: 179.7 kB / 0.7372 GB, free: 71.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/1.7, allocations: 3.863 MB / 0.741 GB, free: 67.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/1.703, allocations: 246.8 kB / 0.7412 GB, free: 66.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/1.703, allocations: 55.97 kB / 0.7413 GB, free: 66.84 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.000685/1.704, allocations: 181.2 kB / 0.7415 GB, free: 66.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005106/1.704, allocations: 177.8 kB / 0.7416 GB, free: 66.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01564/1.72, allocations: 5.491 MB / 0.747 GB, free: 60.99 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/1.72, allocations: 16 kB / 0.747 GB, free: 60.97 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/1.72, allocations: 0 / 0.747 GB, free: 60.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-05/1.72, allocations: 11.97 kB / 0.747 GB, free: 60.96 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/1.739, allocations: 7.536 MB / 0.7544 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/1.739, allocations: 0 / 0.7544 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/1.741, allocations: 191.8 kB / 0.7546 GB, free: 53.19 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006838/1.748, allocations: 2.139 MB / 0.7566 GB, free: 51.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003664/1.748, allocations: 19.92 kB / 0.7567 GB, free: 51.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01789/1.766, allocations: 8.744 MB / 0.7652 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.766, allocations: 8 kB / 0.7652 GB, free: 42.05 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01788/1.784, allocations: 6.578 MB / 0.7716 GB, free: 35.44 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01983/1.804, allocations: 7.966 MB / 0.7794 GB, free: 27.44 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008705/1.805, allocations: 278.5 kB / 0.7797 GB, free: 27.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003645/1.805, allocations: 8 kB / 0.7797 GB, free: 27.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/1.807, allocations: 199.8 kB / 0.7799 GB, free: 26.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004223/1.807, allocations: 177 kB / 0.78 GB, free: 26.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.807, allocations: 32 kB / 0.7801 GB, free: 26.74 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001108/1.809, allocations: 0.8275 MB / 0.7809 GB, free: 25.92 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003421/1.812, allocations: 0.7834 MB / 0.7817 GB, free: 25.13 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.0004099/1.812, allocations: 158.9 kB / 0.7818 GB, free: 24.97 MB / 490.7 MB Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/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] Error: Internal error SimCode: The model OpenIPSL.Tests.Controls.PSSE.ES.ESST4B could not be translated to FMU