Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 108.8 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 204.5 kB / 20.11 MB, free: 3.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1268/0.1268, allocations: 24.04 MB / 333.6 MB, free: 1.586 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 65.58 kB / 468.9 MB, free: 31.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1081, allocations: 59.55 MB / 0.516 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003281/0.1114, allocations: 1.873 MB / 0.5179 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1125, allocations: 0.5612 MB / 0.5184 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.986e-05/0.1126, allocations: 0 / 0.5184 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.1129, allocations: 31.78 kB / 0.5184 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.1131, allocations: 47.69 kB / 0.5185 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001878/0.1133, allocations: 63.86 kB / 0.5186 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000269/0.1135, allocations: 211.4 kB / 0.5188 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1137, allocations: 37.47 kB / 0.5188 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.1139, allocations: 87.69 kB / 0.5189 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.1141, allocations: 99.58 kB / 0.519 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.1141, allocations: 12 kB / 0.519 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.685e-05/0.1142, allocations: 12 kB / 0.519 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.1142, allocations: 35.84 kB / 0.519 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.1143, allocations: 71.64 kB / 0.5191 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.1145, allocations: 151.3 kB / 0.5192 GB, free: 8.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1145, allocations: 4 kB / 0.5192 GB, free: 8.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1145, allocations: 0 / 0.5192 GB, free: 8.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1146, allocations: 0 / 0.5192 GB, free: 8.531 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.001073/0.1156, allocations: 0.4947 MB / 0.5197 GB, free: 7.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1157, allocations: 8.625 kB / 0.5197 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.156e-05/0.1157, allocations: 16.84 kB / 0.5198 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000462/0.1162, allocations: 259.9 kB / 0.52 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1162, allocations: 8.375 kB / 0.52 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.887e-05/0.1162, allocations: 12.38 kB / 0.52 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.1165, allocations: 121.5 kB / 0.5201 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1165, allocations: 0 / 0.5201 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.1165, allocations: 8 kB / 0.5201 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.1165, allocations: 4 kB / 0.5201 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.1167, allocations: 87.94 kB / 0.5202 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008307/0.1176, allocations: 456.4 kB / 0.5207 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.1179, allocations: 150.7 kB / 0.5208 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.1181, allocations: 68.81 kB / 0.5209 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.1181, allocations: 0 / 0.5209 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1181, allocations: 34.55 kB / 0.5209 GB, free: 6.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.1181, allocations: 4 kB / 0.5209 GB, free: 6.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001123/0.1192, allocations: 0.5363 MB / 0.5214 GB, free: 6.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1193, allocations: 51.41 kB / 0.5215 GB, free: 6.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.1196, allocations: 194.9 kB / 0.5217 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.1196, allocations: 33.7 kB / 0.5217 GB, free: 5.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.725e-05/0.1197, allocations: 120.3 kB / 0.5218 GB, free: 5.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.233e-05/0.1198, allocations: 67.47 kB / 0.5219 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.089e-05/0.1198, allocations: 29.72 kB / 0.5219 GB, free: 5.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.12, allocations: 330.8 kB / 0.5222 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.1201, allocations: 47.92 kB / 0.5223 GB, free: 5.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.1202, allocations: 69.64 kB / 0.5223 GB, free: 5.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.121, allocations: 268.4 kB / 0.5226 GB, free: 4.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.121, allocations: 4 kB / 0.5226 GB, free: 4.816 MB / 382.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006353/0.1217, allocations: 378.2 kB / 0.523 GB, free: 4.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1217, allocations: 10.12 kB / 0.523 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1217, allocations: 0 / 0.523 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/0.1219, allocations: 53.72 kB / 0.523 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1221, allocations: 43.89 kB / 0.5231 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.1254, allocations: 4.64 MB / 0.5276 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.1255, allocations: 16 kB / 0.5276 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1256, allocations: 8 kB / 0.5276 GB, free: 15.28 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (17): * Single equations (assignments): 15 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002033/0.1258, allocations: 135.6 kB / 0.5277 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.1258, allocations: 11.91 kB / 0.5278 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.888e-05/0.1259, allocations: 29.11 kB / 0.5278 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1259, allocations: 0 / 0.5278 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.1259, allocations: 7.938 kB / 0.5278 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1259, allocations: 0 / 0.5278 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007129/0.1266, allocations: 0.4952 MB / 0.5283 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.1266, allocations: 7.984 kB / 0.5283 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.1267, allocations: 24 kB / 0.5283 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001502/0.1269, allocations: 40.81 kB / 0.5283 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.1269, allocations: 0 / 0.5283 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001379/0.1283, allocations: 1.619 MB / 0.5299 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1283, allocations: 4.094 kB / 0.5299 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005219/0.1288, allocations: 342.7 kB / 0.5303 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.1289, allocations: 85.06 kB / 0.5303 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.1289, allocations: 8 kB / 0.5303 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.1291, allocations: 12.02 kB / 0.5304 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.1292, allocations: 23.92 kB / 0.5304 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.1292, allocations: 7.938 kB / 0.5304 GB, free: 12.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.1294, allocations: 155.4 kB / 0.5305 GB, free: 12.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1294, allocations: 0 / 0.5305 GB, free: 12.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003979/0.1298, allocations: 36 kB / 0.5306 GB, free: 12.01 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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.0001185/0.1299, allocations: 105.4 kB / 0.5307 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005645/0.1305, allocations: 354.2 kB / 0.531 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1305, allocations: 0 / 0.531 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.1308, allocations: 178.6 kB / 0.5312 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.1311, allocations: 19.98 kB / 0.5312 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009757/0.1321, allocations: 0.5154 MB / 0.5317 GB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.1325, allocations: 0.7319 MB / 0.5324 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.776e-05/0.1326, allocations: 13.42 kB / 0.5324 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/0.1326, allocations: 23.44 kB / 0.5324 GB, free: 9.988 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1326, allocations: 0 / 0.5324 GB, free: 9.988 MB / 398.1 MB Notification: Performance of Templates: time 0.0057/0.1383, allocations: 2.014 MB / 0.5344 GB, free: 7.973 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.859295492991805] Failed to read output from testmodel.py, exit status != 0: 0.1462032739073038 0.15967899100000002 0.04230566 Calling exit ...