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.0009883/0.0009883, allocations: 85.86 kB / 21.46 MB, free: 3.016 MB / 18.57 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.001145/0.001145, allocations: 168.7 kB / 24.86 MB, free: 9.258 MB / 18.57 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.067/1.067, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.06534/0.06534, allocations: 18.14 MB / 280 MB, free: 11.15 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 358.6 MB, free: 8.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.811e-05/2.969e-05, allocations: 2.312 kB / 358.6 MB, free: 8.547 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00401/0.004039, allocations: 2.468 MB / 361 MB, free: 6.059 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001608/0.005647, allocations: 0.7872 MB / 361.8 MB, free: 5.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.005858, allocations: 8 kB / 361.8 MB, free: 5.262 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000372/0.00623, allocations: 95.22 kB / 361.9 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003475/0.006577, allocations: 139 kB / 362.1 MB, free: 5.031 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.007182, allocations: 287.4 kB / 362.3 MB, free: 4.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/0.007731, allocations: 475.1 kB / 362.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.007933, allocations: 89.19 kB / 362.9 MB, free: 4.195 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003512/0.008284, allocations: 199.3 kB / 363.1 MB, free: 4 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.008598, allocations: 187.4 kB / 363.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.101e-05/0.008669, allocations: 36 kB / 363.3 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.274e-05/0.008722, allocations: 32 kB / 363.3 MB, free: 3.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.008969, allocations: 115.5 kB / 363.5 MB, free: 3.637 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.009101, allocations: 123.6 kB / 363.6 MB, free: 3.516 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003422/0.009444, allocations: 278.7 kB / 363.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.738e-06/0.009447, allocations: 8 kB / 363.9 MB, free: 3.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.009449, allocations: 0 / 363.9 MB, free: 3.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.009455, allocations: 0 / 363.9 MB, free: 3.234 MB / 330.7 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.001208/0.01066, allocations: 0.7878 MB / 364.6 MB, free: 2.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.01069, allocations: 8.922 kB / 364.6 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.01081, allocations: 80.61 kB / 364.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004752/0.01128, allocations: 313 kB / 365 MB, free: 1.984 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.01131, allocations: 21.03 kB / 365.1 MB, free: 1.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.01136, allocations: 36.33 kB / 365.1 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.01171, allocations: 242.4 kB / 365.3 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.01172, allocations: 0 / 365.3 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.01174, allocations: 15.94 kB / 365.3 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.01175, allocations: 4 kB / 365.3 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.01196, allocations: 103.1 kB / 365.4 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.01322, allocations: 0.9237 MB / 366.4 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005297/0.01375, allocations: 251.4 kB / 366.6 MB, free: 340 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.01389, allocations: 87.38 kB / 366.7 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.0139, allocations: 8 kB / 366.7 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.01393, allocations: 45.33 kB / 366.8 MB, free: 188 kB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.01393, allocations: 0 / 366.8 MB, free: 188 kB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001615/0.01555, allocations: 0.6679 MB / 367.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.01558, allocations: 59.34 kB / 367.5 MB, free: 15.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.01591, allocations: 374.5 kB / 367.8 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.01593, allocations: 33.7 kB / 367.9 MB, free: 14.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.01608, allocations: 247.4 kB / 368.1 MB, free: 14.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.01618, allocations: 154.7 kB / 368.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.01629, allocations: 75.83 kB / 368.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.01646, allocations: 0.5273 MB / 368.9 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.863e-05/0.01656, allocations: 44.91 kB / 368.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.0167, allocations: 131.4 kB / 369 MB, free: 13.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.01706, allocations: 249.5 kB / 369.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01706, allocations: 0 / 369.3 MB, free: 13.5 MB / 346.7 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.0007269/0.01779, allocations: 399.3 kB / 369.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.01781, allocations: 10.03 kB / 369.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01781, allocations: 0 / 369.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.01824, allocations: 115.1 kB / 369.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.01854, allocations: 79.91 kB / 369.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004783/0.02332, allocations: 10.66 MB / 380.5 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.02357, allocations: 19.98 kB / 380.6 MB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.0236, allocations: 12.09 kB / 380.6 MB, free: 1.715 MB / 346.7 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.0001682/0.02376, allocations: 188.4 kB / 380.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.02385, allocations: 47.77 kB / 380.8 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.418e-05/0.02391, allocations: 48.06 kB / 380.8 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.02392, allocations: 4 kB / 380.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.02392, allocations: 0 / 380.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.02392, allocations: 3.984 kB / 380.9 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008744/0.0248, allocations: 0.6385 MB / 381.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.0248, allocations: 0 / 381.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.02532, allocations: 59.97 kB / 381.6 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003546/0.02568, allocations: 87.53 kB / 381.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.02571, allocations: 15.98 kB / 381.7 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001379/0.02709, allocations: 2.181 MB / 383.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.02709, allocations: 8.031 kB / 383.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.02768, allocations: 498.2 kB / 384.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.786e-05/0.02773, allocations: 43.7 kB / 384.4 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.02778, allocations: 4 kB / 384.4 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.02797, allocations: 20.02 kB / 384.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.02802, allocations: 23.95 kB / 384.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.02804, allocations: 11.98 kB / 384.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001961/0.02824, allocations: 251 kB / 384.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.02824, allocations: 0 / 384.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005007/0.02874, allocations: 84 kB / 384.8 MB, free: 13.34 MB / 362.7 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.0001248/0.02887, allocations: 103.2 kB / 384.9 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006541/0.02952, allocations: 0.6958 MB / 385.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.02952, allocations: 0 / 385.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.0298, allocations: 309.8 kB / 385.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.03023, allocations: 61.34 kB / 385.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.03162, allocations: 0.8528 MB / 386.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.03172, allocations: 121 kB / 386.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.03185, allocations: 43.25 kB / 386.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.03201, allocations: 114.2 kB / 387 MB, free: 10.91 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.03201, allocations: 4 kB / 387 MB, free: 10.91 MB / 362.7 MB Notification: Performance of Templates: time 0.009224/0.04124, allocations: 4.658 MB / 391.7 MB, free: 6.289 MB / 362.7 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=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1760732689872384]