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.000782/0.0007817, allocations: 91.92 kB / 16.02 MB, free: 80 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.000877/0.000877, allocations: 179.6 kB / 16.92 MB, free: 6.652 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.34/1.34, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2033/0.2033, allocations: 22.35 MB / 314.4 MB, free: 13.01 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003624, allocations: 8 kB / 383.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2922, allocations: 55.99 MB / 439.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002332/0.2945, allocations: 2.189 MB / 441.4 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2958, allocations: 0.7629 MB / 442.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.296, allocations: 2.875 kB / 442.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003816/0.2964, allocations: 73.06 kB / 442.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.2967, allocations: 119.7 kB / 442.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.297, allocations: 174 kB / 442.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.2974, allocations: 0.4959 MB / 443 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2976, allocations: 112.7 kB / 443.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.2979, allocations: 192.4 kB / 443.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.2981, allocations: 214.3 kB / 443.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.632e-05/0.2982, allocations: 17.25 kB / 443.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.208e-05/0.2982, allocations: 20.5 kB / 443.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.566e-05/0.2983, allocations: 86.28 kB / 443.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.2984, allocations: 184.7 kB / 443.9 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.2986, allocations: 278.7 kB / 444.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2987, allocations: 0 / 444.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2987, allocations: 0 / 444.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2987, allocations: 0 / 444.1 MB, free: 36.38 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.001601/0.3003, allocations: 0.7788 MB / 444.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3003, allocations: 14.69 kB / 444.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.144e-05/0.3004, allocations: 47.84 kB / 445 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.3012, allocations: 430.4 kB / 445.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.3012, allocations: 26.73 kB / 445.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.625e-05/0.3013, allocations: 36.12 kB / 445.4 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/0.3017, allocations: 302.3 kB / 445.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3017, allocations: 0 / 445.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.3017, allocations: 14.88 kB / 445.8 MB, free: 35.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3018, allocations: 6.188 kB / 445.8 MB, free: 35.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.3021, allocations: 215 kB / 446 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.3035, allocations: 1.049 MB / 447 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006863/0.3042, allocations: 384.7 kB / 447.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.3044, allocations: 151.6 kB / 447.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3044, allocations: 7.656 kB / 447.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3044, allocations: 37.59 kB / 447.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.634e-06/0.3044, allocations: 0 / 447.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001827/0.3063, allocations: 1.112 MB / 448.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.3063, allocations: 54.78 kB / 448.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000694/0.307, allocations: 431.3 kB / 449.2 MB, free: 33.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.307, allocations: 32.77 kB / 449.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3072, allocations: 214.2 kB / 449.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.403e-05/0.3072, allocations: 138.7 kB / 449.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.738e-05/0.3073, allocations: 43.02 kB / 449.6 MB, free: 33.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.362e-05/0.3074, allocations: 353.3 kB / 449.9 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001759/0.3076, allocations: 110 kB / 450.1 MB, free: 32.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.3078, allocations: 168.6 kB / 450.2 MB, free: 32.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.3092, allocations: 0.615 MB / 450.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3092, allocations: 2.469 kB / 450.8 MB, free: 32.34 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.0008989/0.3101, allocations: 0.7987 MB / 451.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.3101, allocations: 5.25 kB / 451.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3101, allocations: 0 / 451.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.3104, allocations: 105.5 kB / 451.7 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.3107, allocations: 81.19 kB / 451.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/0.3135, allocations: 7.302 MB / 459.1 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003988/0.3139, allocations: 42.89 kB / 459.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3139, allocations: 15.31 kB / 459.2 MB, free: 24.29 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.0001807/0.3141, allocations: 179.1 kB / 459.4 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.3142, allocations: 41.75 kB / 459.4 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-05/0.3143, allocations: 47.58 kB / 459.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3143, allocations: 10.78 kB / 459.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3143, allocations: 0 / 459.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3143, allocations: 0 / 459.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.3153, allocations: 0.8846 MB / 460.3 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3153, allocations: 0 / 460.3 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.3156, allocations: 64.17 kB / 460.4 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002173/0.3158, allocations: 77.39 kB / 460.5 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.3159, allocations: 14.81 kB / 460.5 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.317, allocations: 1.713 MB / 462.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.317, allocations: 0 / 462.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007375/0.3178, allocations: 0.6167 MB / 462.8 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.887e-05/0.3179, allocations: 118.2 kB / 462.9 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.3179, allocations: 10.78 kB / 462.9 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003701/0.3183, allocations: 38.3 kB / 463 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.84e-05/0.3184, allocations: 30.34 kB / 463 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.3184, allocations: 6.219 kB / 463 MB, free: 21.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006227/0.319, allocations: 331.6 kB / 463.3 MB, free: 21.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.319, allocations: 4 kB / 463.3 MB, free: 21.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005632/0.3196, allocations: 82 kB / 463.4 MB, free: 21.31 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 0.0001008/0.3197, allocations: 109.6 kB / 463.5 MB, free: 21.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007008/0.3204, allocations: 0.6427 MB / 464.2 MB, free: 20.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3204, allocations: 0 / 464.2 MB, free: 20.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.3207, allocations: 294.5 kB / 464.5 MB, free: 20.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.3212, allocations: 58.53 kB / 464.5 MB, free: 20.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3227, allocations: 1.289 MB / 465.8 MB, free: 19.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.323, allocations: 0.8276 MB / 466.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.3231, allocations: 28.84 kB / 466.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3231, allocations: 4 kB / 466.7 MB, free: 18.97 MB / 350.1 MB Notification: Performance of Templates: time 0.01074/0.3339, allocations: 7.229 MB / 473.9 MB, free: 18.44 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)