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.001174/0.001174, allocations: 107.4 kB / 15.99 MB, free: 6.348 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.0009826/0.0009826, allocations: 199 kB / 16.91 MB, free: 6.188 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.199/1.199, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08647/0.08647, allocations: 22.31 MB / 313.1 MB, free: 9.082 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 66.47 kB / 380.9 MB, free: 41.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07445/0.07567, allocations: 54.96 MB / 435.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003217/0.07891, allocations: 2.565 MB / 438.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.08006, allocations: 0.768 MB / 439.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.08022, allocations: 4 kB / 439.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.08056, allocations: 71.53 kB / 439.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002685/0.08083, allocations: 119.3 kB / 439.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.08114, allocations: 179.8 kB / 439.6 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.08159, allocations: 0.5188 MB / 440.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.08179, allocations: 128.8 kB / 440.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.08203, allocations: 227.1 kB / 440.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.08229, allocations: 246.9 kB / 440.7 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.97e-05/0.08235, allocations: 32 kB / 440.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.852e-05/0.08241, allocations: 36 kB / 440.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.08251, allocations: 115.6 kB / 440.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.08265, allocations: 182.9 kB / 441 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002566/0.08292, allocations: 291.4 kB / 441.3 MB, free: 8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.08293, allocations: 4 kB / 441.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08293, allocations: 0 / 441.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.08294, allocations: 0 / 441.3 MB, free: 7.996 MB / 318.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.001688/0.08464, allocations: 0.8298 MB / 442.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.08467, allocations: 8.031 kB / 442.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.26e-05/0.08476, allocations: 48.38 kB / 442.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007231/0.08549, allocations: 427.6 kB / 442.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.08553, allocations: 24.78 kB / 442.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.857e-05/0.08558, allocations: 32 kB / 442.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/0.08602, allocations: 301.7 kB / 443 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.08604, allocations: 3.938 kB / 443 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.08607, allocations: 12 kB / 443 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.08609, allocations: 12 kB / 443 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.08645, allocations: 214.1 kB / 443.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.08783, allocations: 1.034 MB / 444.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.08855, allocations: 387.5 kB / 444.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.08876, allocations: 152.8 kB / 444.8 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.0888, allocations: 8.562 kB / 444.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.08882, allocations: 38.56 kB / 444.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.575e-06/0.08883, allocations: 3.984 kB / 444.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.001721/0.09056, allocations: 1.106 MB / 445.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.0906, allocations: 55.41 kB / 446 MB, free: 3.066 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000699/0.09131, allocations: 429.6 kB / 446.4 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.09134, allocations: 33.7 kB / 446.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.09146, allocations: 208.3 kB / 446.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.09156, allocations: 141.9 kB / 446.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.736e-05/0.09166, allocations: 74.12 kB / 446.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.09177, allocations: 346.8 kB / 447.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.09196, allocations: 112.8 kB / 447.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.09217, allocations: 169.8 kB / 447.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.09361, allocations: 0.6174 MB / 448.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.09363, allocations: 0 / 448.1 MB, free: 0.8984 MB / 318.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.0009313/0.09456, allocations: 0.8069 MB / 448.9 MB, free: 0 / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.0946, allocations: 4.047 kB / 448.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.09461, allocations: 4 kB / 448.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002514/0.09487, allocations: 102.6 kB / 449 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.09523, allocations: 83.89 kB / 449.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.09897, allocations: 7.932 MB / 457 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.09938, allocations: 43.95 kB / 457.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.09942, allocations: 19.94 kB / 457.1 MB, free: 7.27 MB / 334.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.0001757/0.09961, allocations: 169.6 kB / 457.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.09968, allocations: 43.52 kB / 457.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.465e-05/0.09977, allocations: 48.06 kB / 457.3 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.09978, allocations: 4 kB / 457.3 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.09978, allocations: 0 / 457.3 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.09979, allocations: 0 / 457.3 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.1009, allocations: 0.8853 MB / 458.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1009, allocations: 0 / 458.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.1012, allocations: 59.97 kB / 458.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.1014, allocations: 76.62 kB / 458.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.1015, allocations: 16 kB / 458.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.1028, allocations: 1.881 MB / 460.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1029, allocations: 0 / 460.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/0.1037, allocations: 0.6223 MB / 460.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.667e-05/0.1038, allocations: 116.6 kB / 461 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.696e-05/0.1038, allocations: 8 kB / 461 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003789/0.1042, allocations: 31.95 kB / 461 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.152e-05/0.1043, allocations: 35.91 kB / 461.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.1043, allocations: 16.17 kB / 461.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005771/0.1049, allocations: 323.1 kB / 461.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1049, allocations: 7.938 kB / 461.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004849/0.1054, allocations: 80 kB / 461.5 MB, free: 2.621 MB / 334.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.961e-05/0.1055, allocations: 111.7 kB / 461.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008178/0.1063, allocations: 0.6672 MB / 462.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1063, allocations: 0 / 462.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.1067, allocations: 290.3 kB / 462.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.1071, allocations: 59.58 kB / 462.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.1086, allocations: 1.199 MB / 463.8 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.1089, allocations: 0.8271 MB / 464.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.798e-05/0.109, allocations: 31.44 kB / 464.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.109, allocations: 0 / 464.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of Templates: time 0.007763/0.1168, allocations: 7.283 MB / 471.9 MB, free: 8.016 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)