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.001691/0.001691, allocations: 111.9 kB / 15.61 MB, free: 140 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.001982/0.001981, allocations: 199.7 kB / 16.54 MB, free: 6.691 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2058/0.2058, allocations: 22.36 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.91 kB / 380.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2813, allocations: 54.95 MB / 435.8 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.0031/0.2844, allocations: 2.521 MB / 438.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2855, allocations: 0.7697 MB / 439.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.2857, allocations: 5.562 kB / 439.1 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.286, allocations: 94.5 kB / 439.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.2863, allocations: 136.4 kB / 439.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2866, allocations: 193.3 kB / 439.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003912/0.287, allocations: 0.5276 MB / 440 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.2872, allocations: 121.8 kB / 440.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.2874, allocations: 218 kB / 440.3 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.2877, allocations: 235.1 kB / 440.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.2878, allocations: 38.03 kB / 440.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.2878, allocations: 36.28 kB / 440.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.587e-05/0.2879, allocations: 109.7 kB / 440.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.2881, allocations: 187.6 kB / 440.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.2883, allocations: 389.2 kB / 441.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2883, allocations: 0 / 441.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2883, allocations: 2.469 kB / 441.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.2884, allocations: 0 / 441.3 MB, free: 36.27 MB / 350.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.001635/0.29, allocations: 0.8326 MB / 442.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.29, allocations: 6.719 kB / 442.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.344e-05/0.2901, allocations: 54.59 kB / 442.2 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006778/0.2908, allocations: 418.5 kB / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.2908, allocations: 29.66 kB / 442.6 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.2909, allocations: 30.09 kB / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.2913, allocations: 303.1 kB / 443 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2913, allocations: 3.938 kB / 443 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.2913, allocations: 14.14 kB / 443 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2913, allocations: 8.719 kB / 443 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00034/0.2917, allocations: 217.2 kB / 443.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.2929, allocations: 1.043 MB / 444.3 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.2936, allocations: 397.8 kB / 444.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.2938, allocations: 149.4 kB / 444.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.2938, allocations: 9.094 kB / 444.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.2938, allocations: 37.89 kB / 444.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.563e-06/0.2938, allocations: 0 / 444.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001604/0.2954, allocations: 1.102 MB / 445.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.2955, allocations: 62.75 kB / 446 MB, free: 33.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006503/0.2961, allocations: 426.2 kB / 446.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.2962, allocations: 31.92 kB / 446.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.588e-05/0.2962, allocations: 210.2 kB / 446.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.392e-05/0.2963, allocations: 139.3 kB / 446.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.331e-05/0.2964, allocations: 72.33 kB / 446.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.2965, allocations: 351 kB / 447.2 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.2966, allocations: 107.2 kB / 447.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.2968, allocations: 173.4 kB / 447.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.2982, allocations: 0.6143 MB / 448.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2982, allocations: 0 / 448.1 MB, free: 32.17 MB / 350.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.0008169/0.299, allocations: 0.8038 MB / 448.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2991, allocations: 2.875 kB / 448.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2991, allocations: 2.438 kB / 448.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002408/0.2993, allocations: 104.9 kB / 449 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.2996, allocations: 82.08 kB / 449.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.3022, allocations: 7.944 MB / 457 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003675/0.3026, allocations: 41.81 kB / 457.1 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.3026, allocations: 14.5 kB / 457.1 MB, free: 23.48 MB / 350.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.0001475/0.3028, allocations: 167.8 kB / 457.2 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.3028, allocations: 40.09 kB / 457.3 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.075e-05/0.3029, allocations: 50 kB / 457.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3029, allocations: 2.672 kB / 457.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3029, allocations: 3.984 kB / 457.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3029, allocations: 3.422 kB / 457.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009396/0.3039, allocations: 0.8843 MB / 458.2 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3039, allocations: 4 kB / 458.2 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.3042, allocations: 62.5 kB / 458.3 MB, free: 22.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.3044, allocations: 77.53 kB / 458.4 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.3044, allocations: 6.625 kB / 458.4 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.3056, allocations: 1.901 MB / 460.3 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3056, allocations: 0 / 460.3 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006998/0.3063, allocations: 0.6177 MB / 460.9 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.159e-05/0.3064, allocations: 117.5 kB / 461 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.3064, allocations: 10.25 kB / 461 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003672/0.3068, allocations: 36.19 kB / 461.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.3068, allocations: 26.7 kB / 461.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.3069, allocations: 13.5 kB / 461.1 MB, free: 20.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005547/0.3074, allocations: 325.4 kB / 461.4 MB, free: 20.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3074, allocations: 4 kB / 461.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005011/0.308, allocations: 84.09 kB / 461.5 MB, free: 20.33 MB / 350.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 9.325e-05/0.308, allocations: 108.3 kB / 461.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007329/0.3088, allocations: 0.6636 MB / 462.3 MB, free: 19.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3088, allocations: 1.125 kB / 462.3 MB, free: 19.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.3091, allocations: 293.1 kB / 462.6 MB, free: 19.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.3096, allocations: 52.02 kB / 462.6 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3109, allocations: 1.019 MB / 463.6 MB, free: 18.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.3112, allocations: 0.8297 MB / 464.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.3113, allocations: 49.47 kB / 464.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.49e-05/0.3114, allocations: 29.91 kB / 464.5 MB, free: 18.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3114, allocations: 96 / 464.5 MB, free: 18.19 MB / 350.1 MB Notification: Performance of Templates: time 0.008168/0.3196, allocations: 4.295 MB / 468.8 MB, free: 17.89 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)