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.001287/0.001287, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001359/0.001359, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.334/1.334, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2001/0.2001, allocations: 22.37 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 380.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2718, allocations: 54.94 MB / 435.2 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003047/0.2749, allocations: 2.567 MB / 437.8 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.276, allocations: 0.7773 MB / 438.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.2761, allocations: 3.219 kB / 438.6 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.2765, allocations: 69.06 kB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.2768, allocations: 122.2 kB / 438.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.2771, allocations: 177.3 kB / 438.9 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.2775, allocations: 0.5168 MB / 439.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.2777, allocations: 122.5 kB / 439.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.278, allocations: 231.4 kB / 439.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.2782, allocations: 238.1 kB / 440 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.462e-05/0.2783, allocations: 39.7 kB / 440.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.72e-05/0.2783, allocations: 36.66 kB / 440.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2784, allocations: 103.2 kB / 440.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.2786, allocations: 189.2 kB / 440.4 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2789, allocations: 386.9 kB / 440.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2789, allocations: 2.656 kB / 440.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2789, allocations: 0 / 440.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2789, allocations: 4 kB / 440.8 MB, free: 36.09 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.001782/0.2807, allocations: 0.8323 MB / 441.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2808, allocations: 11.5 kB / 441.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.17e-05/0.2809, allocations: 44.5 kB / 441.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007707/0.2817, allocations: 416.9 kB / 442.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.2817, allocations: 33.94 kB / 442.1 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.2818, allocations: 30.97 kB / 442.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/0.2822, allocations: 299.8 kB / 442.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.2822, allocations: 4 kB / 442.4 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.2823, allocations: 15.09 kB / 442.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.2823, allocations: 7.719 kB / 442.5 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000368/0.2827, allocations: 216.2 kB / 442.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.2841, allocations: 1.038 MB / 443.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007165/0.2848, allocations: 394.1 kB / 444.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.285, allocations: 148.7 kB / 444.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.2851, allocations: 6.812 kB / 444.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.2851, allocations: 48.77 kB / 444.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.674e-06/0.2851, allocations: 0 / 444.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001781/0.2869, allocations: 1.105 MB / 445.4 MB, free: 33.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.17e-05/0.2869, allocations: 54.28 kB / 445.5 MB, free: 33.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006678/0.2876, allocations: 430.7 kB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.2876, allocations: 32.45 kB / 445.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.676e-05/0.2877, allocations: 213 kB / 446.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.2878, allocations: 137.9 kB / 446.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/0.2879, allocations: 70.33 kB / 446.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/0.288, allocations: 353 kB / 446.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.2881, allocations: 109.1 kB / 446.8 MB, free: 32.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.2883, allocations: 172.4 kB / 446.9 MB, free: 32.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.2898, allocations: 0.6055 MB / 447.5 MB, free: 32.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2898, allocations: 0 / 447.5 MB, free: 32.01 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.0008546/0.2906, allocations: 0.8052 MB / 448.3 MB, free: 31.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2907, allocations: 5.25 kB / 448.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2907, allocations: 6.781 kB / 448.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.2909, allocations: 92.91 kB / 448.4 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.2913, allocations: 89.19 kB / 448.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.294, allocations: 7.94 MB / 456.5 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.2944, allocations: 36.81 kB / 456.5 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.2944, allocations: 17.88 kB / 456.5 MB, free: 23.31 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.0001645/0.2946, allocations: 166.9 kB / 456.7 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.2947, allocations: 37.91 kB / 456.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.2948, allocations: 50.05 kB / 456.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2948, allocations: 2.969 kB / 456.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2948, allocations: 0 / 456.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2948, allocations: 3.375 kB / 456.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000994/0.2958, allocations: 0.8911 MB / 457.7 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2958, allocations: 0 / 457.7 MB, free: 22.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.2961, allocations: 65.77 kB / 457.7 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002136/0.2963, allocations: 76.11 kB / 457.8 MB, free: 22.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.2964, allocations: 6.688 kB / 457.8 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.2975, allocations: 1.902 MB / 459.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2975, allocations: 0 / 459.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007248/0.2983, allocations: 0.6172 MB / 460.3 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.2983, allocations: 116.5 kB / 460.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/0.2984, allocations: 10.88 kB / 460.5 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.2988, allocations: 40.97 kB / 460.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.2989, allocations: 28.59 kB / 460.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.2989, allocations: 7.734 kB / 460.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005595/0.2994, allocations: 325 kB / 460.9 MB, free: 20.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2995, allocations: 0 / 460.9 MB, free: 20.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005095/0.3, allocations: 83.28 kB / 460.9 MB, free: 20.17 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.014e-05/0.3001, allocations: 115.1 kB / 461 MB, free: 20.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007795/0.3009, allocations: 0.6574 MB / 461.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3009, allocations: 0 / 461.7 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.3012, allocations: 299.3 kB / 462 MB, free: 19.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.3016, allocations: 55.23 kB / 462.1 MB, free: 19.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.303, allocations: 1.161 MB / 463.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.3032, allocations: 0.8348 MB / 464 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3034, allocations: 49.84 kB / 464.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/0.3035, allocations: 25.62 kB / 464.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3035, allocations: 1.125 kB / 464.1 MB, free: 17.88 MB / 350.1 MB Notification: Performance of Templates: time 0.008218/0.3117, allocations: 4.282 MB / 468.4 MB, free: 17.57 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)