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.001015/0.001015, allocations: 102.2 kB / 16.27 MB, free: 6 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.001275/0.001275, allocations: 191 kB / 17.2 MB, free: 5.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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09328/0.09328, allocations: 22.33 MB / 313.4 MB, free: 8.949 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 64.23 kB / 381.4 MB, free: 41.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08816, allocations: 54.97 MB / 436.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004061/0.09226, allocations: 2.521 MB / 438.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.09383, allocations: 0.7718 MB / 439.7 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004426/0.0943, allocations: 4 kB / 439.7 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004986/0.09481, allocations: 91.28 kB / 439.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003759/0.09524, allocations: 135.1 kB / 439.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.09571, allocations: 203.7 kB / 440.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005702/0.09629, allocations: 0.511 MB / 440.6 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.09654, allocations: 120.9 kB / 440.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.09681, allocations: 227.1 kB / 441 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.0971, allocations: 242.9 kB / 441.2 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.583e-05/0.09719, allocations: 36 kB / 441.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.934e-05/0.09726, allocations: 32 kB / 441.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.09739, allocations: 107.6 kB / 441.4 MB, free: 8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.09756, allocations: 186.8 kB / 441.6 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.09792, allocations: 390.6 kB / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.09793, allocations: 0 / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09794, allocations: 0 / 442 MB, free: 7.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.09795, allocations: 0 / 442 MB, free: 7.434 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.001762/0.09972, allocations: 0.8298 MB / 442.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.09976, allocations: 12.03 kB / 442.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.681e-05/0.09985, allocations: 44.38 kB / 442.8 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000799/0.1007, allocations: 435.6 kB / 443.3 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.1007, allocations: 28.72 kB / 443.3 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.1008, allocations: 32 kB / 443.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004444/0.1012, allocations: 297.7 kB / 443.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1012, allocations: 0 / 443.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.1013, allocations: 19.98 kB / 443.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.1013, allocations: 12 kB / 443.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003965/0.1017, allocations: 218.1 kB / 443.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1032, allocations: 1.03 MB / 444.9 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007662/0.1039, allocations: 390.1 kB / 445.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.1042, allocations: 152.8 kB / 445.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.1042, allocations: 8.562 kB / 445.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1043, allocations: 30.56 kB / 445.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.974e-06/0.1043, allocations: 4 kB / 445.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.00198/0.1062, allocations: 1.109 MB / 446.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.1063, allocations: 55.41 kB / 446.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007758/0.1071, allocations: 421.6 kB / 447 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1071, allocations: 41.7 kB / 447.1 MB, free: 2.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.1073, allocations: 204.3 kB / 447.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.1074, allocations: 142 kB / 447.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1075, allocations: 74.12 kB / 447.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1076, allocations: 346.8 kB / 447.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.1078, allocations: 112.8 kB / 447.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.1081, allocations: 169.8 kB / 448.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.1096, allocations: 0.6135 MB / 448.7 MB, free: 336 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1096, allocations: 0 / 448.7 MB, free: 336 kB / 318.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.001064/0.1107, allocations: 0.8007 MB / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1107, allocations: 4 kB / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1107, allocations: 0 / 449.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.111, allocations: 106.5 kB / 449.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.1114, allocations: 87.89 kB / 449.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00455/0.116, allocations: 7.937 MB / 457.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004183/0.1164, allocations: 44.02 kB / 457.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.1164, allocations: 12 kB / 457.7 MB, free: 6.703 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.0002092/0.1167, allocations: 185.6 kB / 457.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.1168, allocations: 35.53 kB / 457.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.109e-05/0.1169, allocations: 60.05 kB / 458 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1169, allocations: 4 kB / 458 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1169, allocations: 0 / 458 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1169, allocations: 0 / 458 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.1181, allocations: 0.8815 MB / 458.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1181, allocations: 3.984 kB / 458.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.1185, allocations: 59.91 kB / 458.9 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002454/0.1187, allocations: 80.77 kB / 459 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.1188, allocations: 19.98 kB / 459 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/0.1204, allocations: 1.877 MB / 460.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1204, allocations: 0 / 460.9 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000915/0.1213, allocations: 0.6223 MB / 461.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1214, allocations: 116.6 kB / 461.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/0.1215, allocations: 8 kB / 461.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003848/0.1219, allocations: 31.95 kB / 461.7 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.515e-05/0.122, allocations: 31.91 kB / 461.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.122, allocations: 15.98 kB / 461.7 MB, free: 2.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006528/0.1227, allocations: 319.1 kB / 462 MB, free: 2.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1227, allocations: 4 kB / 462 MB, free: 2.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000554/0.1232, allocations: 84 kB / 462.1 MB, free: 2.043 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.0001265/0.1234, allocations: 103.2 kB / 462.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009816/0.1243, allocations: 0.6711 MB / 462.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1244, allocations: 0 / 462.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004052/0.1248, allocations: 290.3 kB / 463.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.1252, allocations: 59.59 kB / 463.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.1269, allocations: 1.062 MB / 464.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.1274, allocations: 0.8271 MB / 465.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.1275, allocations: 31.44 kB / 465.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1275, allocations: 0 / 465.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Templates: time 0.01001/0.1375, allocations: 7.274 MB / 472.4 MB, free: 7.59 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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)