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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,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=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 117.2 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 191.6 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09109/0.09109, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002227, allocations: 62.47 kB / 382.2 MB, free: 41.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1198, allocations: 54.97 MB / 437.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00382/0.1237, allocations: 2.52 MB / 439.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1251, allocations: 0.7679 MB / 440.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.1252, allocations: 4 kB / 440.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.1256, allocations: 91.22 kB / 440.6 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002993/0.1259, allocations: 139.1 kB / 440.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1263, allocations: 195.7 kB / 440.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005455/0.1268, allocations: 0.5226 MB / 441.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.1271, allocations: 120.6 kB / 441.6 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002911/0.1274, allocations: 223.1 kB / 441.8 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1277, allocations: 242.9 kB / 442 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.1278, allocations: 32 kB / 442 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.1279, allocations: 36 kB / 442.1 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.128, allocations: 103.6 kB / 442.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.1282, allocations: 194.8 kB / 442.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004054/0.1286, allocations: 394.4 kB / 442.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1286, allocations: 0 / 442.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1286, allocations: 0 / 442.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1286, allocations: 0 / 442.8 MB, free: 6.793 MB / 318.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.001951/0.1306, allocations: 0.8376 MB / 443.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1306, allocations: 12.02 kB / 443.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.818e-05/0.1307, allocations: 48.38 kB / 443.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.1316, allocations: 435.6 kB / 444.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.1317, allocations: 24.78 kB / 444.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.1317, allocations: 32 kB / 444.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.1322, allocations: 301.7 kB / 444.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1322, allocations: 0 / 444.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.1323, allocations: 19.94 kB / 444.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1323, allocations: 8 kB / 444.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003986/0.1327, allocations: 218.1 kB / 444.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.1343, allocations: 1.026 MB / 445.7 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007878/0.1351, allocations: 390.7 kB / 446.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.1353, allocations: 150.9 kB / 446.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.979e-05/0.1354, allocations: 8.547 kB / 446.2 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1354, allocations: 38.56 kB / 446.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 3.627e-06/0.1354, allocations: 4 kB / 446.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.001934/0.1374, allocations: 1.107 MB / 447.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.1374, allocations: 55.41 kB / 447.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007496/0.1382, allocations: 429.6 kB / 447.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.1382, allocations: 33.7 kB / 447.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1384, allocations: 208.3 kB / 448.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.1385, allocations: 134 kB / 448.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1386, allocations: 74.12 kB / 448.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1387, allocations: 346.8 kB / 448.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.1389, allocations: 108.8 kB / 448.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.1392, allocations: 173.8 kB / 448.9 MB, free: 316 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.1407, allocations: 0.6141 MB / 449.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1408, allocations: 0 / 449.5 MB, free: 15.68 MB / 334.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.001046/0.1418, allocations: 0.8046 MB / 450.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1418, allocations: 8 kB / 450.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1418, allocations: 0 / 450.3 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002756/0.1421, allocations: 102.6 kB / 450.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.1425, allocations: 83.89 kB / 450.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004462/0.147, allocations: 7.944 MB / 458.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.1474, allocations: 44.11 kB / 458.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1474, allocations: 11.94 kB / 458.5 MB, free: 6.047 MB / 334.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.0001887/0.1476, allocations: 169.6 kB / 458.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.091e-05/0.1477, allocations: 43.53 kB / 458.7 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.213e-05/0.1478, allocations: 52.05 kB / 458.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1478, allocations: 8 kB / 458.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1478, allocations: 0 / 458.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1479, allocations: 0 / 458.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.1491, allocations: 0.8821 MB / 459.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1491, allocations: 0 / 459.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.1494, allocations: 59.97 kB / 459.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002344/0.1497, allocations: 76.64 kB / 459.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.1497, allocations: 16.17 kB / 459.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001681/0.1514, allocations: 1.892 MB / 461.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1514, allocations: 4.031 kB / 461.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008869/0.1523, allocations: 0.6234 MB / 462.3 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1524, allocations: 116.6 kB / 462.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.1525, allocations: 8 kB / 462.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.1529, allocations: 40.02 kB / 462.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.153, allocations: 23.91 kB / 462.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.153, allocations: 15.98 kB / 462.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006267/0.1536, allocations: 327.1 kB / 462.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1536, allocations: 0 / 462.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005411/0.1542, allocations: 80 kB / 462.9 MB, free: 1.387 MB / 334.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.0001269/0.1543, allocations: 107.2 kB / 463 MB, free: 1.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008995/0.1552, allocations: 0.6435 MB / 463.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1552, allocations: 0 / 463.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.1556, allocations: 298.5 kB / 464 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.1561, allocations: 63.88 kB / 464 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.1577, allocations: 1.006 MB / 465 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.158, allocations: 0.8232 MB / 465.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1582, allocations: 47.25 kB / 465.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.078e-05/0.1583, allocations: 31.44 kB / 465.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1583, allocations: 0 / 465.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of Templates: time 0.008297/0.1666, allocations: 4.284 MB / 470.2 MB, free: 9.98 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile (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 cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)