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.001142/0.001142, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.001021, allocations: 197.4 kB / 16.63 MB, free: 6.609 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.378/1.378, allocations: 222.9 MB / 240.3 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2112/0.2112, allocations: 22.37 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 61.44 kB / 437 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1245, allocations: 54.97 MB / 492 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00349/0.128, allocations: 2.529 MB / 494.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1294, allocations: 0.764 MB / 495.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.1296, allocations: 4 kB / 495.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004189/0.1301, allocations: 99.22 kB / 495.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.1304, allocations: 143.1 kB / 495.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1308, allocations: 187.7 kB / 495.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005057/0.1313, allocations: 0.5188 MB / 496.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.1315, allocations: 121.4 kB / 496.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.1318, allocations: 227.1 kB / 496.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003028/0.1321, allocations: 238.9 kB / 496.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.009e-05/0.1322, allocations: 32 kB / 496.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.291e-05/0.1323, allocations: 36 kB / 496.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.1324, allocations: 111.5 kB / 497 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.1326, allocations: 190.8 kB / 497.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.133, allocations: 402.4 kB / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.133, allocations: 0 / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.133, allocations: 4 kB / 497.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.133, allocations: 0 / 497.5 MB, free: 11.55 MB / 366.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.001927/0.1349, allocations: 0.8259 MB / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.135, allocations: 8.031 kB / 498.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.823e-05/0.1351, allocations: 48.38 kB / 498.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008443/0.1359, allocations: 431.6 kB / 498.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.136, allocations: 24.78 kB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.136, allocations: 32 kB / 498.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.1365, allocations: 305.7 kB / 499.2 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1365, allocations: 0 / 499.2 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.1366, allocations: 15.94 kB / 499.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1366, allocations: 8 kB / 499.2 MB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.137, allocations: 222.1 kB / 499.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.1385, allocations: 1.034 MB / 0.4887 GB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007855/0.1393, allocations: 386.8 kB / 0.4891 GB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.1396, allocations: 144.8 kB / 0.4893 GB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1396, allocations: 11.94 kB / 0.4893 GB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.1396, allocations: 38.56 kB / 0.4893 GB, free: 7.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/0.1396, allocations: 0 / 0.4893 GB, free: 7.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.002036/0.1417, allocations: 1.107 MB / 0.4904 GB, free: 6.684 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1417, allocations: 55.41 kB / 0.4904 GB, free: 6.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007953/0.1425, allocations: 433.6 kB / 0.4909 GB, free: 6.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.1426, allocations: 29.7 kB / 0.4909 GB, free: 6.148 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.1427, allocations: 200.4 kB / 0.4911 GB, free: 5.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1429, allocations: 141.9 kB / 0.4912 GB, free: 5.805 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.143, allocations: 70.14 kB / 0.4913 GB, free: 5.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1431, allocations: 350.8 kB / 0.4916 GB, free: 5.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1433, allocations: 112.8 kB / 0.4917 GB, free: 5.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.1436, allocations: 169.8 kB / 0.4919 GB, free: 5.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.1452, allocations: 0.6179 MB / 0.4925 GB, free: 4.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1452, allocations: 0 / 0.4925 GB, free: 4.445 MB / 366.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.001087/0.1463, allocations: 0.7994 MB / 0.4933 GB, free: 3.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1463, allocations: 8 kB / 0.4933 GB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1463, allocations: 4.156 kB / 0.4933 GB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003002/0.1466, allocations: 98.45 kB / 0.4934 GB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.147, allocations: 83.91 kB / 0.4934 GB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004525/0.1515, allocations: 7.951 MB / 0.5012 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004614/0.152, allocations: 39.95 kB / 0.5012 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.1521, allocations: 12 kB / 0.5013 GB, free: 10.82 MB / 382.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.0002433/0.1523, allocations: 170.6 kB / 0.5014 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.1524, allocations: 39.72 kB / 0.5015 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.1526, allocations: 52 kB / 0.5015 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1526, allocations: 11.94 kB / 0.5015 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1526, allocations: 0 / 0.5015 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1526, allocations: 3.984 kB / 0.5015 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.1538, allocations: 0.8822 MB / 0.5024 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1539, allocations: 0 / 0.5024 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.1542, allocations: 59.97 kB / 0.5024 GB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002623/0.1545, allocations: 72.72 kB / 0.5025 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.1545, allocations: 16 kB / 0.5025 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.1563, allocations: 1.888 MB / 0.5044 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1564, allocations: 4.031 kB / 0.5044 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009329/0.1573, allocations: 0.6196 MB / 0.505 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1574, allocations: 116.6 kB / 0.5051 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.1575, allocations: 8 kB / 0.5051 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.1579, allocations: 39.95 kB / 0.5051 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/0.1579, allocations: 23.89 kB / 0.5052 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.158, allocations: 16 kB / 0.5052 GB, free: 6.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006682/0.1586, allocations: 323.1 kB / 0.5055 GB, free: 6.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1587, allocations: 0 / 0.5055 GB, free: 6.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005908/0.1593, allocations: 84 kB / 0.5056 GB, free: 6.16 MB / 382.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.0001694/0.1594, allocations: 111.2 kB / 0.5057 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.1605, allocations: 0.6401 MB / 0.5063 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.1605, allocations: 4 kB / 0.5063 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.1609, allocations: 294.3 kB / 0.5066 GB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004583/0.1613, allocations: 54.78 kB / 0.5066 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.163, allocations: 1.016 MB / 0.5076 GB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.1635, allocations: 0.831 MB / 0.5084 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.1636, allocations: 47.25 kB / 0.5085 GB, free: 3.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.696e-05/0.1637, allocations: 31.42 kB / 0.5085 GB, free: 3.031 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1637, allocations: 0 / 0.5085 GB, free: 3.031 MB / 382.1 MB Notification: Performance of Templates: time 0.008871/0.1726, allocations: 4.296 MB / 0.5127 GB, free: 14.74 MB / 398.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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)