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.005058/0.005058, allocations: 99.83 kB / 15.73 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.00114/0.00114, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09112/0.09112, allocations: 22.33 MB / 312.9 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 437 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 54.96 MB / 492 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00353/0.1343, allocations: 2.534 MB / 494.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.1357, allocations: 0.764 MB / 495.3 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.136, allocations: 8 kB / 495.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000388/0.1364, allocations: 91.28 kB / 495.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.1368, allocations: 139.1 kB / 495.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1372, allocations: 191.7 kB / 495.7 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005851/0.1378, allocations: 0.5226 MB / 496.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.138, allocations: 132.6 kB / 496.4 MB, free: 368 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.1384, allocations: 219.1 kB / 496.6 MB, free: 148 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.1388, allocations: 235 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.941e-05/0.1389, allocations: 36 kB / 496.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.847e-05/0.139, allocations: 32 kB / 496.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.1392, allocations: 107.6 kB / 497 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001924/0.1394, allocations: 190.8 kB / 497.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000465/0.1398, allocations: 406.1 kB / 497.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1399, allocations: 0 / 497.6 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1399, allocations: 7.922 kB / 497.6 MB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.1399, allocations: 0 / 497.6 MB, free: 15.15 MB / 382.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.00195/0.1418, allocations: 0.8412 MB / 498.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1419, allocations: 8.031 kB / 498.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.142, allocations: 56.61 kB / 498.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007803/0.1428, allocations: 420 kB / 498.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.1428, allocations: 32.78 kB / 498.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.1429, allocations: 35.95 kB / 498.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004499/0.1433, allocations: 297.7 kB / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1434, allocations: 0 / 499.2 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.1434, allocations: 12 kB / 499.2 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1434, allocations: 8 kB / 499.3 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003831/0.1438, allocations: 218.1 kB / 499.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.1454, allocations: 1.042 MB / 0.4888 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007767/0.1462, allocations: 378.8 kB / 0.4891 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.1464, allocations: 152.8 kB / 0.4893 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.1465, allocations: 7.938 kB / 0.4893 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1465, allocations: 42.5 kB / 0.4893 GB, free: 11.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.552e-06/0.1465, allocations: 0 / 0.4893 GB, free: 11.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001889/0.1484, allocations: 1.108 MB / 0.4904 GB, free: 10.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.1485, allocations: 55.41 kB / 0.4905 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007865/0.1493, allocations: 429.5 kB / 0.4909 GB, free: 9.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.1493, allocations: 33.7 kB / 0.4909 GB, free: 9.727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1495, allocations: 212.6 kB / 0.4911 GB, free: 9.512 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.935e-05/0.1496, allocations: 150.7 kB / 0.4913 GB, free: 9.363 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1497, allocations: 74.12 kB / 0.4913 GB, free: 9.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1498, allocations: 350.8 kB / 0.4917 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.15, allocations: 112.8 kB / 0.4918 GB, free: 8.824 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.1503, allocations: 165.8 kB / 0.4919 GB, free: 8.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.1518, allocations: 0.6141 MB / 0.4925 GB, free: 8.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1518, allocations: 0 / 0.4925 GB, free: 8.008 MB / 382.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.001056/0.1528, allocations: 0.8089 MB / 0.4933 GB, free: 7.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1529, allocations: 4 kB / 0.4933 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1529, allocations: 4 kB / 0.4933 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002827/0.1532, allocations: 98.45 kB / 0.4934 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003478/0.1535, allocations: 87.92 kB / 0.4935 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2644/0.4179, allocations: 7.93 MB / 0.5012 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004969/0.4185, allocations: 41.59 kB / 0.5013 GB, free: 21.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.4185, allocations: 15.97 kB / 0.5013 GB, free: 21.05 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.000213/0.4187, allocations: 164 kB / 0.5015 GB, free: 20.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.4188, allocations: 40.84 kB / 0.5015 GB, free: 20.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.702e-05/0.4189, allocations: 51 kB / 0.5015 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4189, allocations: 5.219 kB / 0.5015 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4189, allocations: 3.984 kB / 0.5015 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4189, allocations: 3.891 kB / 0.5016 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.42, allocations: 0.8773 MB / 0.5024 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.42, allocations: 0 / 0.5024 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.4203, allocations: 61 kB / 0.5025 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/0.4206, allocations: 75.77 kB / 0.5025 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.4206, allocations: 14.41 kB / 0.5026 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.4221, allocations: 1.89 MB / 0.5044 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4222, allocations: 1.156 kB / 0.5044 GB, free: 19.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009783/0.4231, allocations: 0.6241 MB / 0.505 GB, free: 18.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.548e-05/0.4232, allocations: 119.4 kB / 0.5051 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.4233, allocations: 10.16 kB / 0.5051 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.4237, allocations: 41.67 kB / 0.5052 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.4238, allocations: 22.45 kB / 0.5052 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.4238, allocations: 13.69 kB / 0.5052 GB, free: 18.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007899/0.4246, allocations: 323.2 kB / 0.5055 GB, free: 18.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4246, allocations: 0 / 0.5055 GB, free: 18.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006017/0.4252, allocations: 80.56 kB / 0.5056 GB, free: 18.8 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.0001296/0.4254, allocations: 114.8 kB / 0.5057 GB, free: 18.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.4264, allocations: 0.6371 MB / 0.5063 GB, free: 18.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4264, allocations: 288 / 0.5063 GB, free: 18.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.4268, allocations: 297.6 kB / 0.5066 GB, free: 18.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005204/0.4273, allocations: 64.92 kB / 0.5067 GB, free: 18.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.4289, allocations: 1.031 MB / 0.5077 GB, free: 17.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.4293, allocations: 0.8361 MB / 0.5085 GB, free: 17.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.4294, allocations: 51.58 kB / 0.5085 GB, free: 17.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.079e-05/0.4295, allocations: 26.19 kB / 0.5086 GB, free: 17.04 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4295, allocations: 0 / 0.5086 GB, free: 17.04 MB / 382.1 MB Notification: Performance of Templates: time 0.01137/0.4409, allocations: 4.365 MB / 0.5128 GB, free: 16.79 MB / 382.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)