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.0009071/0.0009073, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001044/0.001044, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2277/0.2277, allocations: 22.36 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003976, allocations: 8 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3964, allocations: 55.98 MB / 437.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002846/0.3993, allocations: 2.102 MB / 440 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.4005, allocations: 0.7411 MB / 440.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.4007, allocations: 5.688 kB / 440.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.4011, allocations: 77.11 kB / 440.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.4013, allocations: 106.8 kB / 440.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.4016, allocations: 159.9 kB / 441.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.402, allocations: 459.2 kB / 441.5 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.4022, allocations: 105.8 kB / 441.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.4025, allocations: 206 kB / 441.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.4027, allocations: 205.8 kB / 442 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.611e-05/0.4028, allocations: 14.53 kB / 442.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.002e-05/0.4028, allocations: 14.75 kB / 442.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.4029, allocations: 75.17 kB / 442.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.403, allocations: 83.83 kB / 442.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.4032, allocations: 279.6 kB / 442.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4032, allocations: 3.719 kB / 442.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4032, allocations: 0 / 442.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.4032, allocations: 0 / 442.5 MB, free: 36.56 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.001511/0.4047, allocations: 0.7769 MB / 443.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.4048, allocations: 11.56 kB / 443.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.405e-05/0.4049, allocations: 47.09 kB / 443.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007067/0.4056, allocations: 407.4 kB / 443.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.4056, allocations: 24.09 kB / 443.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.4057, allocations: 41.69 kB / 443.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.4061, allocations: 305.1 kB / 444.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4061, allocations: 0 / 444.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.4062, allocations: 11.94 kB / 444.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4062, allocations: 5.812 kB / 444.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.4066, allocations: 218.8 kB / 444.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.4079, allocations: 1.044 MB / 445.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007046/0.4087, allocations: 380.1 kB / 445.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.4089, allocations: 148.4 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.4089, allocations: 3.094 kB / 445.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.409, allocations: 41.38 kB / 445.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.409, allocations: 0 / 445.9 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.001809/0.4108, allocations: 1.104 MB / 447 MB, free: 33.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.4108, allocations: 58.78 kB / 447.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006365/0.4115, allocations: 437 kB / 447.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.4115, allocations: 29.7 kB / 447.6 MB, free: 33.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.4116, allocations: 205.4 kB / 447.8 MB, free: 33.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.884e-05/0.4117, allocations: 148.5 kB / 447.9 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.4117, allocations: 6.938 kB / 447.9 MB, free: 33.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.762e-05/0.4118, allocations: 352.9 kB / 448.3 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.412, allocations: 105.9 kB / 448.4 MB, free: 32.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.4122, allocations: 169.1 kB / 448.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.4124, allocations: 137.6 kB / 448.7 MB, free: 32.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4124, allocations: 2.031 kB / 448.7 MB, free: 32.76 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.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd 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.0008988/0.4133, allocations: 0.793 MB / 449.4 MB, free: 32.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.4133, allocations: 3.281 kB / 449.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.4133, allocations: 10.2 kB / 449.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.4136, allocations: 102.9 kB / 449.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.4139, allocations: 78.64 kB / 449.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.4169, allocations: 7.32 MB / 457 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.4173, allocations: 47.88 kB / 457 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4173, allocations: 12.56 kB / 457 MB, free: 24.69 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.4175, allocations: 165.8 kB / 457.2 MB, free: 24.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-05/0.4176, allocations: 41.08 kB / 457.2 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.894e-05/0.4176, allocations: 54.97 kB / 457.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4177, allocations: 3.594 kB / 457.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4177, allocations: 4 kB / 457.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4177, allocations: 0 / 457.3 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.4187, allocations: 0.8751 MB / 458.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4187, allocations: 0 / 458.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.419, allocations: 57.67 kB / 458.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002023/0.4192, allocations: 87.34 kB / 458.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.4193, allocations: 6.531 kB / 458.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.4204, allocations: 1.718 MB / 460 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4204, allocations: 4.031 kB / 460 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007238/0.4212, allocations: 0.6053 MB / 460.6 MB, free: 22.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.348e-05/0.4212, allocations: 121.7 kB / 460.7 MB, free: 21.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.4213, allocations: 11.06 kB / 460.8 MB, free: 21.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/0.4216, allocations: 41.47 kB / 460.8 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/0.4217, allocations: 29.39 kB / 460.8 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.4217, allocations: 7.875 kB / 460.8 MB, free: 21.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005187/0.4222, allocations: 325.7 kB / 461.2 MB, free: 21.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4223, allocations: 0 / 461.2 MB, free: 21.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000524/0.4228, allocations: 82.72 kB / 461.2 MB, free: 21.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001213/0.4229, allocations: 114.8 kB / 461.3 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007162/0.4236, allocations: 0.6354 MB / 462 MB, free: 21.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4236, allocations: 0 / 462 MB, free: 21.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.424, allocations: 296.5 kB / 462.3 MB, free: 21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004066/0.4244, allocations: 58.31 kB / 462.3 MB, free: 20.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.4258, allocations: 1.205 MB / 463.5 MB, free: 20.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.426, allocations: 0.8271 MB / 464.4 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.4262, allocations: 50.5 kB / 464.4 MB, free: 19.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.862e-05/0.4263, allocations: 25.91 kB / 464.4 MB, free: 19.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4263, allocations: 0 / 464.4 MB, free: 19.47 MB / 350.1 MB Notification: Performance of Templates: time 0.008608/0.4349, allocations: 3.861 MB / 468.3 MB, free: 19.19 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)