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.004942/0.004942, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001212/0.001213, allocations: 192.2 kB / 16.79 MB, free: 6.254 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.35/1.35, allocations: 222.9 MB / 240.5 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1985/0.1985, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 55.91 kB / 380.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2746, allocations: 54.95 MB / 435.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002957/0.2776, allocations: 2.56 MB / 438.3 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.2786, allocations: 0.7697 MB / 439 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.2788, allocations: 9.656 kB / 439 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003563/0.2792, allocations: 71.05 kB / 439.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002635/0.2794, allocations: 116.6 kB / 439.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.2797, allocations: 173.6 kB / 439.4 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.2801, allocations: 0.502 MB / 439.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.2803, allocations: 119.2 kB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.2806, allocations: 200.6 kB / 440.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.2808, allocations: 229 kB / 440.4 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.2809, allocations: 19.81 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.341e-05/0.2809, allocations: 21.91 kB / 440.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.281, allocations: 99.52 kB / 440.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.2812, allocations: 175.5 kB / 440.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.2814, allocations: 284.5 kB / 441 MB, free: 36.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2814, allocations: 4 kB / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2814, allocations: 0 / 441 MB, free: 36.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.2814, allocations: 0 / 441 MB, free: 36.34 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.001715/0.2831, allocations: 0.8307 MB / 441.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2832, allocations: 16.16 kB / 441.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.212e-05/0.2833, allocations: 48.88 kB / 441.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007171/0.284, allocations: 419.2 kB / 442.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.284, allocations: 27.62 kB / 442.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5e-05/0.2841, allocations: 41.45 kB / 442.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.2845, allocations: 298.1 kB / 442.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2845, allocations: 0 / 442.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.2846, allocations: 10.91 kB / 442.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.2846, allocations: 9.406 kB / 442.7 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.2849, allocations: 218.5 kB / 442.9 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.2862, allocations: 1.046 MB / 444 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006815/0.2869, allocations: 392.3 kB / 444.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.2871, allocations: 148.2 kB / 444.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2872, allocations: 8.938 kB / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.2872, allocations: 37.34 kB / 444.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.533e-06/0.2872, allocations: 0 / 444.5 MB, free: 34.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001676/0.2889, allocations: 1.099 MB / 445.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.2889, allocations: 58.25 kB / 445.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006853/0.2896, allocations: 433.3 kB / 446.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.2896, allocations: 32.8 kB / 446.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.2897, allocations: 206 kB / 446.4 MB, free: 33.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.89e-05/0.2898, allocations: 141.9 kB / 446.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.652e-05/0.2899, allocations: 73.47 kB / 446.6 MB, free: 32.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.215e-05/0.29, allocations: 348.6 kB / 446.9 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.2901, allocations: 111.5 kB / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2903, allocations: 165.4 kB / 447.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.2917, allocations: 0.6164 MB / 447.8 MB, free: 32.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2918, allocations: 0 / 447.8 MB, free: 32.26 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.0008557/0.2926, allocations: 0.8113 MB / 448.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2926, allocations: 5.031 kB / 448.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2927, allocations: 0 / 448.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002613/0.2929, allocations: 104.5 kB / 448.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.2933, allocations: 86.91 kB / 448.8 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/0.296, allocations: 7.296 MB / 456.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.2965, allocations: 42.86 kB / 456.1 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.2965, allocations: 14.5 kB / 456.1 MB, free: 24.2 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.0001996/0.2967, allocations: 169.7 kB / 456.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.2968, allocations: 35.28 kB / 456.3 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.2969, allocations: 50.09 kB / 456.4 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2969, allocations: 6.609 kB / 456.4 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2969, allocations: 4 kB / 456.4 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2969, allocations: 6.953 kB / 456.4 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.298, allocations: 0.8793 MB / 457.3 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.298, allocations: 4 kB / 457.3 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.2983, allocations: 66.73 kB / 457.4 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/0.2985, allocations: 75.16 kB / 457.4 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.2985, allocations: 14.06 kB / 457.4 MB, free: 23.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/0.2996, allocations: 1.714 MB / 459.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2997, allocations: 6.844 kB / 459.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007323/0.3004, allocations: 0.6027 MB / 459.8 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.3005, allocations: 126.6 kB / 459.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.3005, allocations: 7.562 kB / 459.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.3009, allocations: 39.05 kB / 459.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.301, allocations: 26.23 kB / 460 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.301, allocations: 14.84 kB / 460 MB, free: 21.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005676/0.3016, allocations: 325.4 kB / 460.3 MB, free: 21.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3016, allocations: 0 / 460.3 MB, free: 21.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005113/0.3021, allocations: 81.97 kB / 460.4 MB, free: 21.22 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.373e-05/0.3022, allocations: 113.4 kB / 460.5 MB, free: 21.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006696/0.3029, allocations: 0.6339 MB / 461.1 MB, free: 20.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3029, allocations: 0 / 461.1 MB, free: 20.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.3032, allocations: 293.7 kB / 461.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.3037, allocations: 60.36 kB / 461.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.3051, allocations: 1.201 MB / 462.7 MB, free: 19.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3053, allocations: 0.8254 MB / 463.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.3054, allocations: 31.41 kB / 463.5 MB, free: 18.92 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3055, allocations: 4 kB / 463.5 MB, free: 18.91 MB / 350.1 MB Notification: Performance of Templates: time 0.00935/0.3148, allocations: 7.266 MB / 470.8 MB, free: 18.35 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)