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.001559/0.001559, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001769/0.001769, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.516/1.516, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.09884/0.09884, allocations: 17.8 MB / 277.6 MB, free: 15.33 MB / 270.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.002246/0.002246, allocations: 68.17 kB / 414.7 MB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1293, allocations: 59.55 MB / 474.2 MB, free: 8.816 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004254/0.1336, allocations: 2.386 MB / 476.6 MB, free: 6.414 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.1353, allocations: 0.7679 MB / 477.4 MB, free: 5.645 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.1357, allocations: 7.938 kB / 477.4 MB, free: 5.637 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004891/0.1361, allocations: 95.22 kB / 477.5 MB, free: 5.539 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.1366, allocations: 143.2 kB / 477.6 MB, free: 5.398 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.1372, allocations: 215.6 kB / 477.8 MB, free: 5.188 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009002/0.1381, allocations: 0.5616 MB / 478.4 MB, free: 4.621 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.1383, allocations: 90.19 kB / 478.5 MB, free: 4.531 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005205/0.1388, allocations: 239.1 kB / 478.7 MB, free: 4.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004362/0.1393, allocations: 226.9 kB / 478.9 MB, free: 4.074 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.889e-05/0.1394, allocations: 36 kB / 479 MB, free: 4.039 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.1395, allocations: 32 kB / 479 MB, free: 4.008 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1397, allocations: 119.5 kB / 479.1 MB, free: 3.891 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.14, allocations: 147.1 kB / 479.2 MB, free: 3.746 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006939/0.1407, allocations: 410.1 kB / 479.6 MB, free: 3.344 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1407, allocations: 3.938 kB / 479.6 MB, free: 3.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1407, allocations: 0 / 479.6 MB, free: 3.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.353e-05/0.1407, allocations: 0 / 479.6 MB, free: 3.34 MB / 446.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.002535/0.1432, allocations: 0.762 MB / 480.4 MB, free: 2.547 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1433, allocations: 8.922 kB / 480.4 MB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.1434, allocations: 52.66 kB / 480.5 MB, free: 2.488 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009695/0.1444, allocations: 378 kB / 480.8 MB, free: 2.094 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.1444, allocations: 28.78 kB / 480.9 MB, free: 2.062 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-05/0.1445, allocations: 31.95 kB / 480.9 MB, free: 2.031 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.145, allocations: 305.9 kB / 481.2 MB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.145, allocations: 0 / 481.2 MB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.87e-05/0.1451, allocations: 15.94 kB / 481.2 MB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1451, allocations: 8 kB / 481.2 MB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.1455, allocations: 214.5 kB / 481.4 MB, free: 1.484 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.1471, allocations: 0.8795 MB / 482.3 MB, free: 0.5625 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008267/0.148, allocations: 371.3 kB / 482.7 MB, free: 196 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.1482, allocations: 138.2 kB / 482.8 MB, free: 56 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.1482, allocations: 4 kB / 482.8 MB, free: 52 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1483, allocations: 42.5 kB / 482.9 MB, free: 0 / 446.1 MB Notification: Performance of pre-optimization done (n=37): time 1.152e-06/0.1483, allocations: 0 / 482.9 MB, free: 0 / 446.1 MB Notification: Performance of matching and sorting (n=39): time 0.2522/0.4005, allocations: 0.9489 MB / 483.8 MB, free: 52.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.4005, allocations: 58.19 kB / 483.9 MB, free: 52.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.4017, allocations: 433 kB / 484.3 MB, free: 52.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.4017, allocations: 34.8 kB / 484.3 MB, free: 52.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.4018, allocations: 206.3 kB / 484.5 MB, free: 52.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.4019, allocations: 151.3 kB / 484.7 MB, free: 52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.402, allocations: 67.42 kB / 484.7 MB, free: 51.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.419e-05/0.4021, allocations: 355.3 kB / 485.1 MB, free: 51.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.4024, allocations: 108.6 kB / 485.2 MB, free: 51.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.4027, allocations: 169.1 kB / 485.3 MB, free: 51.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002364/0.4051, allocations: 0.613 MB / 486 MB, free: 51.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4051, allocations: 0 / 486 MB, free: 51.56 MB / 446.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.001364/0.4065, allocations: 0.4998 MB / 486.5 MB, free: 51.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.4065, allocations: 8.969 kB / 486.5 MB, free: 51.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.4065, allocations: 2.5 kB / 486.5 MB, free: 51.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003957/0.4069, allocations: 98.03 kB / 486.6 MB, free: 51.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.4075, allocations: 87.25 kB / 486.7 MB, free: 51.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003893/0.4114, allocations: 7.543 MB / 494.2 MB, free: 43.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005993/0.412, allocations: 33.59 kB / 494.2 MB, free: 43.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.412, allocations: 16.56 kB / 494.2 MB, free: 43.86 MB / 446.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.0002553/0.4123, allocations: 169.8 kB / 494.4 MB, free: 43.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.4124, allocations: 45.97 kB / 494.5 MB, free: 43.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.4125, allocations: 56.81 kB / 494.5 MB, free: 43.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4125, allocations: 3.312 kB / 494.5 MB, free: 43.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.4125, allocations: 3.125 kB / 494.5 MB, free: 43.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4125, allocations: 7.359 kB / 494.5 MB, free: 43.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.4141, allocations: 0.7415 MB / 495.3 MB, free: 43.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4141, allocations: 2.469 kB / 495.3 MB, free: 43.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/0.4146, allocations: 64.64 kB / 495.3 MB, free: 43.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003248/0.415, allocations: 79.11 kB / 495.4 MB, free: 43.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.415, allocations: 10.19 kB / 495.4 MB, free: 43.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001768/0.4168, allocations: 1.747 MB / 497.2 MB, free: 41.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4168, allocations: 2.969 kB / 497.2 MB, free: 41.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.418, allocations: 0.6146 MB / 497.8 MB, free: 41.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.426e-05/0.418, allocations: 50.44 kB / 497.8 MB, free: 41.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.994e-05/0.4181, allocations: 7.219 kB / 497.8 MB, free: 41.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.4187, allocations: 42.06 kB / 497.9 MB, free: 41.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.74e-05/0.4188, allocations: 23.62 kB / 497.9 MB, free: 41.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.4188, allocations: 15.05 kB / 497.9 MB, free: 41.26 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009914/0.4198, allocations: 323.9 kB / 498.2 MB, free: 41.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4198, allocations: 0 / 498.2 MB, free: 41.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009637/0.4208, allocations: 82.09 kB / 498.3 MB, free: 41.11 MB / 446.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.0001193/0.4209, allocations: 106.8 kB / 498.4 MB, free: 41.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.4221, allocations: 0.626 MB / 499 MB, free: 40.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4221, allocations: 0 / 499 MB, free: 40.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005203/0.4226, allocations: 285.8 kB / 499.3 MB, free: 40.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006778/0.4233, allocations: 59.95 kB / 499.4 MB, free: 40.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.4254, allocations: 1.005 MB / 0.4887 GB, free: 39.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.4256, allocations: 229.6 kB / 0.4889 GB, free: 39.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002431/0.4258, allocations: 47.48 kB / 0.4889 GB, free: 39.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.426, allocations: 28 kB / 0.489 GB, free: 39.66 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.426, allocations: 0 / 0.489 GB, free: 39.66 MB / 446.1 MB Notification: Performance of Templates: time 0.01347/0.4395, allocations: 4.238 MB / 0.4931 GB, free: 39.21 MB / 446.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 -s ida -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.32984782801941] Failed to read output from testmodel.py, exit status != 0: 0.4492892649723217 0.46531414600000004 0.32102968800000004 Calling exit ...