Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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.001566/0.001566, allocations: 109.5 kB / 17.14 MB, free: 5.93 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.001507/0.001507, allocations: 204 kB / 20.11 MB, free: 2.977 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.486/1.486, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1063/0.1063, allocations: 24.04 MB / 333.6 MB, free: 1.539 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.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [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.002092/0.002092, allocations: 65.06 kB / 468.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1014, allocations: 59.54 MB / 0.516 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004421/0.1058, allocations: 2.555 MB / 0.5185 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.1077, allocations: 0.8107 MB / 0.5193 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.1079, allocations: 7.938 kB / 0.5193 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005178/0.1084, allocations: 91.28 kB / 0.5194 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.1088, allocations: 147.1 kB / 0.5196 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.1092, allocations: 191.7 kB / 0.5197 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006102/0.1098, allocations: 0.5187 MB / 0.5202 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.11, allocations: 100.6 kB / 0.5203 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003598/0.1104, allocations: 231.1 kB / 0.5206 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003314/0.1107, allocations: 254.9 kB / 0.5208 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.038e-05/0.1108, allocations: 32 kB / 0.5208 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.1108, allocations: 36 kB / 0.5209 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.111, allocations: 107.6 kB / 0.521 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1112, allocations: 190.8 kB / 0.5212 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005384/0.1117, allocations: 402.1 kB / 0.5215 GB, free: 6.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1117, allocations: 0 / 0.5215 GB, free: 6.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1117, allocations: 0 / 0.5215 GB, free: 6.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1117, allocations: 0 / 0.5215 GB, free: 6.016 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.002062/0.1138, allocations: 0.8412 MB / 0.5224 GB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1138, allocations: 8.625 kB / 0.5224 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.1139, allocations: 56.59 kB / 0.5224 GB, free: 5.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.1148, allocations: 435.9 kB / 0.5228 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.1148, allocations: 28.78 kB / 0.5229 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.613e-05/0.1149, allocations: 31.95 kB / 0.5229 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.1154, allocations: 301.7 kB / 0.5232 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1154, allocations: 3.938 kB / 0.5232 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.1154, allocations: 16 kB / 0.5232 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1154, allocations: 8 kB / 0.5232 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004231/0.1159, allocations: 218.1 kB / 0.5234 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1175, allocations: 1.022 MB / 0.5244 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.1183, allocations: 373.3 kB / 0.5248 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.1185, allocations: 136.8 kB / 0.5249 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1186, allocations: 7.938 kB / 0.5249 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.1186, allocations: 42.55 kB / 0.525 GB, free: 2.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.443e-06/0.1186, allocations: 0 / 0.525 GB, free: 2.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.002081/0.1207, allocations: 1.103 MB / 0.526 GB, free: 1.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1207, allocations: 59.34 kB / 0.5261 GB, free: 1.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000832/0.1215, allocations: 433.6 kB / 0.5265 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1216, allocations: 29.7 kB / 0.5265 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.1217, allocations: 208.6 kB / 0.5267 GB, free: 428 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.1219, allocations: 146.8 kB / 0.5269 GB, free: 280 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.122, allocations: 74.12 kB / 0.5269 GB, free: 200 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1222, allocations: 354.8 kB / 0.5273 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.1224, allocations: 104.8 kB / 0.5274 GB, free: 15.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.1226, allocations: 169.8 kB / 0.5275 GB, free: 15.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.1243, allocations: 0.6112 MB / 0.5281 GB, free: 14.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1243, allocations: 0 / 0.5281 GB, free: 14.92 MB / 398.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.001206/0.1255, allocations: 0.8067 MB / 0.5289 GB, free: 14.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1255, allocations: 4 kB / 0.5289 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1255, allocations: 4 kB / 0.5289 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.1258, allocations: 98.61 kB / 0.529 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003681/0.1262, allocations: 91.77 kB / 0.5291 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005542/0.1317, allocations: 7.95 MB / 0.5369 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.1322, allocations: 44.02 kB / 0.5369 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.1322, allocations: 12 kB / 0.5369 GB, free: 5.281 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.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: 6 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.1325, allocations: 169.7 kB / 0.5371 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.171e-05/0.1325, allocations: 39.72 kB / 0.5371 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.1327, allocations: 56.06 kB / 0.5372 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1327, allocations: 4 kB / 0.5372 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1327, allocations: 7.984 kB / 0.5372 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1327, allocations: 0 / 0.5372 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.1341, allocations: 0.8668 MB / 0.538 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1341, allocations: 0 / 0.538 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003429/0.1344, allocations: 59.91 kB / 0.5381 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002905/0.1347, allocations: 92.86 kB / 0.5382 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.396e-05/0.1347, allocations: 11.98 kB / 0.5382 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.1366, allocations: 1.892 MB / 0.54 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1366, allocations: 4 kB / 0.54 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.1376, allocations: 0.6081 MB / 0.5406 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.1378, allocations: 120.8 kB / 0.5408 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.535e-05/0.1378, allocations: 15.98 kB / 0.5408 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.1382, allocations: 36.02 kB / 0.5408 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.507e-05/0.1383, allocations: 27.91 kB / 0.5408 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.1383, allocations: 8 kB / 0.5408 GB, free: 1.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007333/0.1391, allocations: 327 kB / 0.5412 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1391, allocations: 0 / 0.5412 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005841/0.1397, allocations: 84 kB / 0.5412 GB, free: 0.6211 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (g1.x_scaled[1],g2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.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 (31): * Single equations (assignments): 30 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001397/0.1398, allocations: 107.8 kB / 0.5413 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.1408, allocations: 0.6272 MB / 0.5419 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1408, allocations: 0 / 0.5419 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004268/0.1412, allocations: 282.3 kB / 0.5422 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004449/0.1416, allocations: 59.22 kB / 0.5423 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.1434, allocations: 1.018 MB / 0.5433 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000468/0.1438, allocations: 0.8232 MB / 0.5441 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.144, allocations: 51.25 kB / 0.5441 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1441, allocations: 31.42 kB / 0.5442 GB, free: 13.52 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1441, allocations: 0 / 0.5442 GB, free: 13.52 MB / 414.1 MB Notification: Performance of Templates: time 0.009524/0.1536, allocations: 4.414 MB / 0.5485 GB, free: 9.109 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.814188672229648] Failed to read output from testmodel.py, exit status != 0: 0.16171764768660069 0.174273014 0.05978742 Calling exit ...