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.0008432/0.0008434, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005994/0.005994, allocations: 170.7 kB / 16.27 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.505/1.505, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2293/0.2293, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005027/0.0005027, allocations: 4 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4014, allocations: 55.98 MB / 438.6 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002478/0.404, allocations: 2.201 MB / 440.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.4053, allocations: 0.7638 MB / 441.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.4055, allocations: 2.562 kB / 441.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.4059, allocations: 71.7 kB / 441.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.4062, allocations: 125.8 kB / 441.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.4066, allocations: 171.6 kB / 441.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.4071, allocations: 0.4934 MB / 442.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.4073, allocations: 113.8 kB / 442.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.4076, allocations: 196.1 kB / 442.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.4078, allocations: 209.3 kB / 442.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.55e-05/0.4079, allocations: 14.47 kB / 442.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.491e-05/0.4079, allocations: 15.62 kB / 442.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.4081, allocations: 86.56 kB / 443 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.4082, allocations: 187 kB / 443.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.4085, allocations: 364.4 kB / 443.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4085, allocations: 3 kB / 443.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.4085, allocations: 0 / 443.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.4085, allocations: 0 / 443.5 MB, free: 36.29 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.001649/0.4102, allocations: 0.7775 MB / 444.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.4102, allocations: 12.25 kB / 444.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.799e-05/0.4103, allocations: 55.58 kB / 444.4 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.4111, allocations: 420.5 kB / 444.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.4111, allocations: 27.53 kB / 444.8 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.4112, allocations: 41.88 kB / 444.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004314/0.4116, allocations: 299.1 kB / 445.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.4116, allocations: 0 / 445.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.4117, allocations: 11.12 kB / 445.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.4117, allocations: 9.688 kB / 445.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.412, allocations: 218.5 kB / 445.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.4134, allocations: 1.046 MB / 446.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.4141, allocations: 386.6 kB / 446.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.4144, allocations: 149.9 kB / 447 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.4144, allocations: 9.719 kB / 447 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.4144, allocations: 37.56 kB / 447 MB, free: 34.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.184e-06/0.4144, allocations: 4 kB / 447 MB, free: 34.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001871/0.4163, allocations: 1.112 MB / 448.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.4164, allocations: 58.34 kB / 448.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007399/0.4171, allocations: 430.7 kB / 448.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.4172, allocations: 32.52 kB / 448.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.4173, allocations: 209.1 kB / 448.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.496e-05/0.4174, allocations: 143.4 kB / 449 MB, free: 33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.4175, allocations: 37.62 kB / 449 MB, free: 32.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.379e-05/0.4176, allocations: 348.5 kB / 449.4 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.4178, allocations: 113 kB / 449.5 MB, free: 32.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.418, allocations: 171.2 kB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.4195, allocations: 0.6159 MB / 450.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4195, allocations: 0 / 450.2 MB, free: 32.25 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.0009765/0.4205, allocations: 0.8007 MB / 451 MB, free: 31.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4206, allocations: 5.531 kB / 451.1 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4206, allocations: 0 / 451.1 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.4208, allocations: 106.2 kB / 451.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.4212, allocations: 85.64 kB / 451.2 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003252/0.4245, allocations: 7.308 MB / 458.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.4249, allocations: 43.41 kB / 458.6 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.4249, allocations: 18.56 kB / 458.6 MB, free: 24.19 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.0002398/0.4252, allocations: 165.6 kB / 458.8 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.4253, allocations: 43.28 kB / 458.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.521e-05/0.4254, allocations: 45.08 kB / 458.9 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.4254, allocations: 9.25 kB / 458.9 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4254, allocations: 0 / 458.9 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.4254, allocations: 7.281 kB / 458.9 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.4265, allocations: 0.8845 MB / 459.8 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4265, allocations: 0 / 459.8 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.4268, allocations: 63.34 kB / 459.8 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.4271, allocations: 79.88 kB / 459.9 MB, free: 23.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.4271, allocations: 13.19 kB / 459.9 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.4283, allocations: 1.708 MB / 461.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4283, allocations: 192 / 461.6 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.429, allocations: 0.6129 MB / 462.2 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.4291, allocations: 122.2 kB / 462.4 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.4292, allocations: 11.42 kB / 462.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.4295, allocations: 41.06 kB / 462.4 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.273e-05/0.4296, allocations: 30.11 kB / 462.4 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.4297, allocations: 5.375 kB / 462.4 MB, free: 21.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005984/0.4303, allocations: 331.9 kB / 462.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4303, allocations: 0 / 462.8 MB, free: 21.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004955/0.4308, allocations: 81 kB / 462.8 MB, free: 21.21 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.0001278/0.4309, allocations: 116.1 kB / 463 MB, free: 21.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007828/0.4317, allocations: 0.6372 MB / 463.6 MB, free: 20.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4317, allocations: 0 / 463.6 MB, free: 20.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003367/0.432, allocations: 296.5 kB / 463.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.4325, allocations: 56.06 kB / 463.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.4345, allocations: 1.26 MB / 465.2 MB, free: 19.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.4349, allocations: 0.8286 MB / 466 MB, free: 18.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.4351, allocations: 47.33 kB / 466.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.4352, allocations: 29.89 kB / 466.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4352, allocations: 0 / 466.1 MB, free: 18.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01003/0.4452, allocations: 3.972 MB / 470.1 MB, free: 18.63 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)