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.001572/0.001572, allocations: 103.3 kB / 16.35 MB, free: 5.824 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.001645/0.001646, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09347/0.09347, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 60.53 kB / 382.2 MB, free: 40.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09298, allocations: 54.97 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003779/0.0968, allocations: 2.524 MB / 439.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.09804, allocations: 0.7679 MB / 440.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.0982, allocations: 4 kB / 440.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.09863, allocations: 91.28 kB / 440.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.09894, allocations: 139.1 kB / 440.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.0993, allocations: 191.7 kB / 440.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004911/0.0998, allocations: 0.5188 MB / 441.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.1, allocations: 128.6 kB / 441.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.1003, allocations: 227.1 kB / 441.8 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.1006, allocations: 242.9 kB / 442 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-05/0.1006, allocations: 36 kB / 442 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.091e-05/0.1007, allocations: 36 kB / 442.1 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1008, allocations: 103.7 kB / 442.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.101, allocations: 194.7 kB / 442.4 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.1013, allocations: 394.5 kB / 442.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1013, allocations: 0 / 442.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1014, allocations: 0 / 442.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1014, allocations: 0 / 442.8 MB, free: 6.648 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.001858/0.1032, allocations: 0.8336 MB / 443.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.1033, allocations: 12.03 kB / 443.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.1034, allocations: 48.38 kB / 443.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000832/0.1042, allocations: 431.6 kB / 444.1 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.1042, allocations: 28.78 kB / 444.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.1043, allocations: 28 kB / 444.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.1048, allocations: 301.7 kB / 444.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1048, allocations: 0 / 444.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.1048, allocations: 12 kB / 444.4 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1048, allocations: 8 kB / 444.4 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003953/0.1052, allocations: 226 kB / 444.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.1068, allocations: 1.026 MB / 445.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007621/0.1076, allocations: 394.3 kB / 446.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.1078, allocations: 148.8 kB / 446.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1079, allocations: 8.562 kB / 446.2 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.1079, allocations: 34.56 kB / 446.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.1079, allocations: 4 kB / 446.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.00193/0.1098, allocations: 1.103 MB / 447.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.1099, allocations: 59.41 kB / 447.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007511/0.1106, allocations: 425.6 kB / 447.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.1107, allocations: 33.7 kB / 447.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1108, allocations: 204.3 kB / 448.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.1109, allocations: 142 kB / 448.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.857e-05/0.111, allocations: 74.14 kB / 448.3 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1111, allocations: 346.8 kB / 448.6 MB, free: 484 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.1113, allocations: 112.8 kB / 448.7 MB, free: 372 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.1115, allocations: 169.8 kB / 448.9 MB, free: 180 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1131, allocations: 0.6141 MB / 449.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1131, allocations: 7.938 kB / 449.5 MB, free: 15.54 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.001047/0.1142, allocations: 0.8065 MB / 450.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.1142, allocations: 4 kB / 450.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1142, allocations: 0 / 450.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/0.1145, allocations: 102.6 kB / 450.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.1149, allocations: 83.91 kB / 450.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/0.1193, allocations: 7.932 MB / 458.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.1197, allocations: 44.02 kB / 458.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.1197, allocations: 16 kB / 458.5 MB, free: 5.918 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.0001837/0.1199, allocations: 179.9 kB / 458.7 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/0.12, allocations: 35.53 kB / 458.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.592e-05/0.1201, allocations: 52.25 kB / 458.8 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1201, allocations: 4 kB / 458.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.1201, allocations: 7.938 kB / 458.8 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1201, allocations: 3.984 kB / 458.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1213, allocations: 0.8783 MB / 459.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1213, allocations: 0 / 459.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.1217, allocations: 63.91 kB / 459.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002238/0.1219, allocations: 84.62 kB / 459.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.1219, allocations: 8 kB / 459.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.1235, allocations: 1.884 MB / 461.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1235, allocations: 4.062 kB / 461.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008464/0.1244, allocations: 0.6118 MB / 462.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.1245, allocations: 120.6 kB / 462.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.1245, allocations: 4 kB / 462.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.1249, allocations: 43.95 kB / 462.5 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.125, allocations: 27.89 kB / 462.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.125, allocations: 12 kB / 462.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006453/0.1257, allocations: 323.1 kB / 462.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1257, allocations: 0 / 462.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.1262, allocations: 84 kB / 462.9 MB, free: 1.266 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.0001442/0.1264, allocations: 115.1 kB / 463 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008701/0.1273, allocations: 0.6435 MB / 463.7 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1273, allocations: 192 / 463.7 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003759/0.1277, allocations: 290.3 kB / 464 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.1281, allocations: 64 kB / 464 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.1296, allocations: 1.006 MB / 465 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.13, allocations: 0.8271 MB / 465.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.1302, allocations: 51.2 kB / 465.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.1303, allocations: 31.42 kB / 465.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1303, allocations: 0 / 465.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of Templates: time 0.008354/0.1387, allocations: 4.291 MB / 470.2 MB, free: 9.844 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 gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1)