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.0007562/0.0007562, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001853/0.002609, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001159/0.001159, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001676/0.002835, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9668/0.9668, allocations: 177.2 MB / 189.7 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09493/1.062, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.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.06267/0.06267, allocations: 18.12 MB / 262.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01206/0.07474, allocations: 6.786 MB / 269.1 MB, free: 6.25 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.372e-06/1.372e-06, allocations: 0 / 270.5 MB, free: 4.793 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/2.616e-05, allocations: 6.25 kB / 270.5 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003851/0.003877, allocations: 2.508 MB / 273 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.005616, allocations: 0.822 MB / 273.8 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.005866, allocations: 7.938 kB / 273.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003487/0.006215, allocations: 95.16 kB / 273.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.006566, allocations: 151 kB / 274.1 MB, free: 1.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.007053, allocations: 267.5 kB / 274.4 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.007454, allocations: 463.2 kB / 274.8 MB, free: 476 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.007619, allocations: 101.8 kB / 274.9 MB, free: 364 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004332/0.008052, allocations: 350.3 kB / 275.2 MB, free: 12 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.126/0.134, allocations: 184.9 kB / 275.4 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.1342, allocations: 33.72 kB / 275.5 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.805e-05/0.1342, allocations: 34.25 kB / 275.5 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.1343, allocations: 83.33 kB / 275.6 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.1345, allocations: 87.7 kB / 275.7 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.135, allocations: 257.6 kB / 275.9 MB, free: 2.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-05/0.135, allocations: 0 / 275.9 MB, free: 2.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.135, allocations: 0 / 275.9 MB, free: 2.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.1351, allocations: 0.5312 kB / 275.9 MB, free: 2.305 MB / 266.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.001323/0.1364, allocations: 0.7362 MB / 276.6 MB, free: 1.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1364, allocations: 11.84 kB / 276.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.1365, allocations: 54.48 kB / 276.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/0.137, allocations: 281.5 kB / 277 MB, free: 1.738 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.137, allocations: 25.5 kB / 277 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/0.1371, allocations: 33.61 kB / 277 MB, free: 1.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.1374, allocations: 234.1 kB / 277.3 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1375, allocations: 1.031 kB / 277.3 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.1375, allocations: 13.97 kB / 277.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.1375, allocations: 7.75 kB / 277.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.1377, allocations: 93.16 kB / 277.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009976/0.1387, allocations: 0.6835 MB / 278.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000469/0.1391, allocations: 277.4 kB / 278.3 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.1393, allocations: 67.88 kB / 278.4 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1393, allocations: 12.25 kB / 278.4 MB, free: 1.191 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.1393, allocations: 41.38 kB / 278.5 MB, free: 1.152 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.074e-06/0.1393, allocations: 0 / 278.5 MB, free: 1.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.001202/0.1405, allocations: 0.6232 MB / 279.1 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.398e-05/0.1405, allocations: 60.67 kB / 279.1 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.1408, allocations: 297.8 kB / 279.4 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1408, allocations: 33.33 kB / 279.5 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.955e-05/0.1409, allocations: 169.4 kB / 279.6 MB, free: 0.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.982e-05/0.141, allocations: 149.9 kB / 279.8 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.252e-05/0.1411, allocations: 77.55 kB / 279.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.1411, allocations: 360 kB / 280.2 MB, free: 200 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.813e-05/0.1412, allocations: 39.45 kB / 280.2 MB, free: 196 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.1413, allocations: 105.3 kB / 280.3 MB, free: 140 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.1416, allocations: 239.4 kB / 280.6 MB, free: 80 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1416, allocations: 1.625 kB / 280.6 MB, free: 80 kB / 266.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.0005875/0.1422, allocations: 314 kB / 280.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1422, allocations: 6.797 kB / 280.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1422, allocations: 3.594 kB / 280.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004079/0.1426, allocations: 109.7 kB / 281 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.1431, allocations: 143.1 kB / 281.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00363/0.1467, allocations: 7.191 MB / 288.3 MB, free: 8.984 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1469, allocations: 17.7 kB / 288.4 MB, free: 8.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.1469, allocations: 10.34 kB / 288.4 MB, free: 8.984 MB / 282.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.0001696/0.1471, allocations: 141.9 kB / 288.5 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.008e-05/0.1472, allocations: 37.73 kB / 288.5 MB, free: 8.859 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.64e-05/0.1472, allocations: 50.2 kB / 288.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1472, allocations: 6.375 kB / 288.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1472, allocations: 3.25 kB / 288.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.1472, allocations: 2.156 kB / 288.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006976/0.1479, allocations: 0.5233 MB / 289.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1479, allocations: 1.156 kB / 289.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.1482, allocations: 83.08 kB / 289.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.1482, allocations: 33.48 kB / 289.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.1485, allocations: 80.22 kB / 289.3 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.1485, allocations: 12.17 kB / 289.3 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000986/0.1495, allocations: 1.519 MB / 290.8 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1495, allocations: 3.812 kB / 290.9 MB, free: 7.297 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005581/0.1501, allocations: 445.3 kB / 291.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.1501, allocations: 11.59 kB / 291.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1502, allocations: 16.31 kB / 291.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.1503, allocations: 25.11 kB / 291.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1503, allocations: 8.312 kB / 291.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001877/0.1505, allocations: 130.6 kB / 291.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1505, allocations: 0 / 291.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004231/0.1509, allocations: 81.52 kB / 291.6 MB, free: 7.074 MB / 282.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.0001757/0.1511, allocations: 93.66 kB / 291.6 MB, free: 7.008 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006563/0.1517, allocations: 0.5211 MB / 292.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.951e-05/0.1518, allocations: 5.625 kB / 292.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.152, allocations: 253.4 kB / 292.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.1526, allocations: 418.1 kB / 292.8 MB, free: 6.156 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.1549, allocations: 0.742 MB / 293.6 MB, free: 5.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.155, allocations: 128 kB / 293.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.1551, allocations: 38.83 kB / 293.7 MB, free: 5.688 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1553, allocations: 104.1 kB / 293.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of SimCode: time 1.213e-06/0.1553, allocations: 1.188 kB / 293.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of Templates: time 0.00891/0.1642, allocations: 5.12 MB / 299 MB, free: 4.176 MB / 282.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: 2.8354381900280714]