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.001524/0.001523, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001889/0.001889, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.586/1.586, 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.08625/0.08625, allocations: 22.32 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.89 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1215, allocations: 54.95 MB / 492.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003991/0.1255, allocations: 2.534 MB / 495.2 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1274, allocations: 0.7679 MB / 496 MB, free: 1.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004542/0.1278, allocations: 11.94 kB / 496 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006141/0.1285, allocations: 91.28 kB / 496.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.1291, allocations: 135.1 kB / 496.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.1296, allocations: 183.7 kB / 496.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000876/0.1305, allocations: 0.5265 MB / 496.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.1308, allocations: 128.7 kB / 497 MB, free: 396 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004099/0.1313, allocations: 223.2 kB / 497.2 MB, free: 172 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004869/0.1318, allocations: 238.9 kB / 497.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.934e-05/0.1319, allocations: 32 kB / 497.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.75e-05/0.1319, allocations: 36 kB / 497.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1321, allocations: 107.6 kB / 497.6 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.1323, allocations: 194.9 kB / 497.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.1328, allocations: 394.4 kB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1328, allocations: 0 / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1328, allocations: 0 / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.1328, allocations: 0 / 498.2 MB, free: 15.18 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.001991/0.1348, allocations: 0.8298 MB / 499.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1348, allocations: 11.97 kB / 499.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.135, allocations: 52.38 kB / 499.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008905/0.1359, allocations: 435.6 kB / 499.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.1359, allocations: 24.78 kB / 499.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.164e-05/0.136, allocations: 35.94 kB / 499.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.1365, allocations: 301.7 kB / 499.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1365, allocations: 4 kB / 499.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.1366, allocations: 12 kB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1366, allocations: 8 kB / 499.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.137, allocations: 210.1 kB / 0.4884 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1386, allocations: 1.034 MB / 0.4894 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007965/0.1394, allocations: 386.5 kB / 0.4898 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.1397, allocations: 148.8 kB / 0.4899 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.1397, allocations: 7.938 kB / 0.4899 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.1397, allocations: 30.94 kB / 0.49 GB, free: 11.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 3.366e-06/0.1398, allocations: 7.922 kB / 0.49 GB, free: 11.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001975/0.1417, allocations: 1.103 MB / 0.491 GB, free: 10.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1418, allocations: 55.41 kB / 0.4911 GB, free: 10.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000797/0.1426, allocations: 429.6 kB / 0.4915 GB, free: 9.816 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1426, allocations: 33.7 kB / 0.4915 GB, free: 9.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.1428, allocations: 212.3 kB / 0.4917 GB, free: 9.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1429, allocations: 138 kB / 0.4919 GB, free: 9.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.143, allocations: 70.14 kB / 0.4919 GB, free: 9.352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1432, allocations: 354.8 kB / 0.4923 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.1434, allocations: 108.8 kB / 0.4924 GB, free: 8.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.1436, allocations: 173.8 kB / 0.4925 GB, free: 8.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.1451, allocations: 0.6141 MB / 0.4931 GB, free: 8.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1451, allocations: 8 kB / 0.4932 GB, free: 8.059 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.001091/0.1462, allocations: 0.7968 MB / 0.4939 GB, free: 7.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1463, allocations: 8 kB / 0.4939 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1463, allocations: 3.938 kB / 0.4939 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.1466, allocations: 106.6 kB / 0.494 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/0.1469, allocations: 79.89 kB / 0.4941 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2595/0.4065, allocations: 7.922 MB / 0.5019 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005103/0.407, allocations: 44.84 kB / 0.5019 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.407, allocations: 14.03 kB / 0.5019 GB, free: 21.14 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.0001961/0.4072, allocations: 172.7 kB / 0.5021 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.4073, allocations: 40.47 kB / 0.5021 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.561e-05/0.4074, allocations: 55.5 kB / 0.5022 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4074, allocations: 3.625 kB / 0.5022 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4074, allocations: 6.188 kB / 0.5022 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.4074, allocations: 3.422 kB / 0.5022 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.4085, allocations: 0.8685 MB / 0.503 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4085, allocations: 1.188 kB / 0.503 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.4088, allocations: 60.06 kB / 0.5031 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002315/0.4091, allocations: 86.22 kB / 0.5032 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.4091, allocations: 12.8 kB / 0.5032 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.4103, allocations: 1.889 MB / 0.505 GB, free: 19.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4103, allocations: 3.062 kB / 0.505 GB, free: 19.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007728/0.4111, allocations: 0.6167 MB / 0.5056 GB, free: 19.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.465e-05/0.4112, allocations: 121.2 kB / 0.5058 GB, free: 18.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.4113, allocations: 8.688 kB / 0.5058 GB, free: 18.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003799/0.4117, allocations: 38.34 kB / 0.5058 GB, free: 18.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.4117, allocations: 24.91 kB / 0.5058 GB, free: 18.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.4118, allocations: 11.25 kB / 0.5058 GB, free: 18.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006367/0.4124, allocations: 323.7 kB / 0.5061 GB, free: 18.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4124, allocations: 1.531 kB / 0.5061 GB, free: 18.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005232/0.4129, allocations: 81.66 kB / 0.5062 GB, free: 18.88 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.0001121/0.4131, allocations: 113.2 kB / 0.5063 GB, free: 18.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007758/0.4138, allocations: 0.6342 MB / 0.5069 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4139, allocations: 6.344 kB / 0.507 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.4142, allocations: 286.1 kB / 0.5072 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.4146, allocations: 59 kB / 0.5073 GB, free: 18.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.4162, allocations: 1.054 MB / 0.5083 GB, free: 17.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.4164, allocations: 0.8328 MB / 0.5091 GB, free: 17.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4165, allocations: 29.14 kB / 0.5092 GB, free: 17.12 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4165, allocations: 0 / 0.5092 GB, free: 17.12 MB / 382.1 MB Notification: Performance of Templates: time 0.01137/0.4279, allocations: 7.323 MB / 0.5163 GB, free: 16.07 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)