Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 102.9 kB / 16.45 MB, free: 6.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 198.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1527/0.1527, allocations: 22.7 MB / 325.4 MB, free: 3.531 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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) 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(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 67.89 kB / 455.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1308, allocations: 58.02 MB / 0.5015 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002777/0.1335, allocations: 1.485 MB / 0.503 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007314/0.1343, allocations: 419.2 kB / 0.5034 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.846e-05/0.1343, allocations: 0 / 0.5034 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.623e-05/0.1344, allocations: 11.86 kB / 0.5034 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.1346, allocations: 23.84 kB / 0.5034 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.644e-05/0.1346, allocations: 11.97 kB / 0.5034 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.1347, allocations: 67.72 kB / 0.5035 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.635e-05/0.1348, allocations: 11.98 kB / 0.5035 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.1349, allocations: 35.84 kB / 0.5035 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.135, allocations: 35.78 kB / 0.5036 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.135, allocations: 4 kB / 0.5036 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.347e-05/0.135, allocations: 4 kB / 0.5036 GB, free: 7.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.135, allocations: 15.92 kB / 0.5036 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.23e-05/0.1351, allocations: 27.84 kB / 0.5036 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.1352, allocations: 43.72 kB / 0.5037 GB, free: 7.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1352, allocations: 0 / 0.5037 GB, free: 7.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1352, allocations: 0 / 0.5037 GB, free: 7.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1352, allocations: 4 kB / 0.5037 GB, free: 7.047 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000647/0.1359, allocations: 379.2 kB / 0.504 GB, free: 6.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1359, allocations: 12.03 kB / 0.504 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.1359, allocations: 8.891 kB / 0.504 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.1361, allocations: 184.2 kB / 0.5042 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1362, allocations: 4.375 kB / 0.5042 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.1362, allocations: 8.375 kB / 0.5042 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.1363, allocations: 69.55 kB / 0.5043 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1363, allocations: 0 / 0.5043 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.1363, allocations: 4 kB / 0.5043 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1364, allocations: 4 kB / 0.5043 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.827e-05/0.1364, allocations: 27.97 kB / 0.5043 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005683/0.137, allocations: 312.6 kB / 0.5046 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.1373, allocations: 78.64 kB / 0.5047 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.886e-05/0.1373, allocations: 36.78 kB / 0.5047 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.1373, allocations: 0 / 0.5047 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.1374, allocations: 42.69 kB / 0.5048 GB, free: 5.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.1374, allocations: 0 / 0.5048 GB, free: 5.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007381/0.1381, allocations: 379 kB / 0.5051 GB, free: 5.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.1382, allocations: 55.39 kB / 0.5052 GB, free: 5.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.1383, allocations: 126.1 kB / 0.5053 GB, free: 5.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.1383, allocations: 25.7 kB / 0.5053 GB, free: 5.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.1384, allocations: 108 kB / 0.5054 GB, free: 4.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.1384, allocations: 39.67 kB / 0.5055 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.1385, allocations: 25.72 kB / 0.5055 GB, free: 4.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1386, allocations: 326.8 kB / 0.5058 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.494e-05/0.1387, allocations: 19.98 kB / 0.5058 GB, free: 4.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-05/0.1387, allocations: 50.5 kB / 0.5059 GB, free: 4.492 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004299/0.1392, allocations: 218.7 kB / 0.5061 GB, free: 4.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1392, allocations: 3.938 kB / 0.5061 GB, free: 4.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002492/0.1394, allocations: 142.2 kB / 0.5062 GB, free: 4.102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1394, allocations: 4 kB / 0.5062 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1394, allocations: 4.062 kB / 0.5062 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.1396, allocations: 32.83 kB / 0.5063 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.858e-05/0.1397, allocations: 23.98 kB / 0.5063 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.1413, allocations: 1.576 MB / 0.5078 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.107e-05/0.1413, allocations: 11.97 kB / 0.5078 GB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.1413, allocations: 4 kB / 0.5079 GB, free: 2.301 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Pm = Pcmd. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.1415, allocations: 118.7 kB / 0.508 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.1415, allocations: 11.89 kB / 0.508 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.394e-05/0.1415, allocations: 12.38 kB / 0.508 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1415, allocations: 0 / 0.508 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-06/0.1415, allocations: 0 / 0.508 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.036e-06/0.1415, allocations: 7.984 kB / 0.508 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004838/0.142, allocations: 380.1 kB / 0.5084 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.142, allocations: 0 / 0.5084 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-05/0.1421, allocations: 19.98 kB / 0.5084 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.1422, allocations: 32.81 kB / 0.5084 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1422, allocations: 8 kB / 0.5084 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2218/0.364, allocations: 1.571 MB / 0.5099 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.364, allocations: 2.938 kB / 0.51 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005153/0.3646, allocations: 250.6 kB / 0.5102 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.3646, allocations: 85.25 kB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.3647, allocations: 1.906 kB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.3648, allocations: 2.5 kB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.3648, allocations: 15.06 kB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.3648, allocations: 2.641 kB / 0.5103 GB, free: 14.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.3649, allocations: 103.4 kB / 0.5104 GB, free: 14.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3649, allocations: 1.594 kB / 0.5104 GB, free: 14.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005146/0.3655, allocations: 23.84 kB / 0.5104 GB, free: 14.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000145/0.3656, allocations: 101.5 kB / 0.5105 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004925/0.3661, allocations: 180.2 kB / 0.5107 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.3661, allocations: 1.375 kB / 0.5107 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.3663, allocations: 154.1 kB / 0.5108 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.3666, allocations: 15.55 kB / 0.5108 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009669/0.3675, allocations: 420.3 kB / 0.5112 GB, free: 14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.3677, allocations: 0.6995 MB / 0.5119 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.08e-05/0.3677, allocations: 6.594 kB / 0.5119 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.3678, allocations: 16.75 kB / 0.512 GB, free: 13.29 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3678, allocations: 0 / 0.512 GB, free: 13.29 MB / 382.1 MB Notification: Performance of Templates: time 0.004659/0.3724, allocations: 1.188 MB / 0.5131 GB, free: 13.21 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile [Timeout 660] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.0489024659618735] Failed to read output from testmodel.py, exit status != 0: 0.38045681174844503 0.39383459400000004 0.255934418 Calling exit ...