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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 88.98 kB / 20.23 MB, free: 4.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 161.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1153/0.1153, allocations: 18.14 MB / 278.5 MB, free: 11.35 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,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=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.505e-06/2.505e-06, allocations: 0 / 356.5 MB, free: 8.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.589e-05/3.839e-05, allocations: 2.312 kB / 356.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00467/0.004708, allocations: 2.442 MB / 359 MB, free: 5.762 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.00678, allocations: 0.7871 MB / 359.7 MB, free: 4.973 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.006966, allocations: 7.938 kB / 359.8 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00049/0.007456, allocations: 95.16 kB / 359.8 MB, free: 4.871 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003871/0.007843, allocations: 143.1 kB / 360 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007123/0.008556, allocations: 286.9 kB / 360.3 MB, free: 4.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000639/0.009194, allocations: 475.1 kB / 360.7 MB, free: 3.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.009429, allocations: 105.1 kB / 360.8 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.00982, allocations: 191.5 kB / 361 MB, free: 3.695 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003628/0.01018, allocations: 195.3 kB / 361.2 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.542e-05/0.01026, allocations: 36 kB / 361.2 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.781e-05/0.01033, allocations: 32 kB / 361.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.01048, allocations: 111.5 kB / 361.4 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.01064, allocations: 119.6 kB / 361.5 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005582/0.0112, allocations: 406.5 kB / 361.9 MB, free: 2.812 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.0112, allocations: 0 / 361.9 MB, free: 2.812 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.0112, allocations: 4 kB / 361.9 MB, free: 2.809 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.01121, allocations: 3.938 kB / 361.9 MB, free: 2.805 MB / 282.7 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.001861/0.01307, allocations: 0.8226 MB / 362.7 MB, free: 1.945 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.01312, allocations: 12.92 kB / 362.7 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.01326, allocations: 72.61 kB / 362.8 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.01398, allocations: 320.3 kB / 363.1 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.01401, allocations: 21.03 kB / 363.1 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.01408, allocations: 40.36 kB / 363.2 MB, free: 1.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.01462, allocations: 290.6 kB / 363.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.01463, allocations: 0 / 363.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.01466, allocations: 20 kB / 363.5 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.25e-05/0.01474, allocations: 8 kB / 363.5 MB, free: 1.133 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.01517, allocations: 182.5 kB / 363.7 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.01707, allocations: 1.048 MB / 364.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008541/0.01793, allocations: 340.7 kB / 365.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.01817, allocations: 120.3 kB / 365.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.0182, allocations: 8 kB / 365.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.01824, allocations: 41.14 kB / 365.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.603e-06/0.01824, allocations: 4 kB / 365.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002288/0.02053, allocations: 0.9057 MB / 366.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.02059, allocations: 63.34 kB / 366.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000727/0.02131, allocations: 462.7 kB / 366.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.02135, allocations: 33.7 kB / 366.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.02157, allocations: 255.4 kB / 366.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.02172, allocations: 158.6 kB / 367.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.02189, allocations: 91.81 kB / 367.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000376/0.02227, allocations: 0.5391 MB / 367.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002261/0.02249, allocations: 92.97 kB / 367.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.02281, allocations: 175.4 kB / 368 MB, free: 12.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007383/0.02355, allocations: 405.5 kB / 368.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.02355, allocations: 0 / 368.4 MB, free: 12.04 MB / 298.7 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.001231/0.02478, allocations: 0.5072 MB / 368.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.0248, allocations: 6.969 kB / 368.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.02481, allocations: 4 kB / 368.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006049/0.02541, allocations: 135 kB / 369 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.0258, allocations: 83.89 kB / 369.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008155/0.03396, allocations: 10.93 MB / 380 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/0.03438, allocations: 23.97 kB / 380.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.444e-05/0.03441, allocations: 19.98 kB / 380.1 MB, free: 15.8 MB / 314.7 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.0003119/0.03472, allocations: 192.5 kB / 380.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.03483, allocations: 55.77 kB / 380.3 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.03495, allocations: 52.05 kB / 380.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.03496, allocations: 4 kB / 380.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.03496, allocations: 0 / 380.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.03497, allocations: 3.938 kB / 380.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.03639, allocations: 0.81 MB / 381.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.03639, allocations: 4 kB / 381.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003548/0.03675, allocations: 55.91 kB / 381.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005325/0.03728, allocations: 99.58 kB / 381.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.03732, allocations: 15.94 kB / 381.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.03992, allocations: 2.384 MB / 383.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.03992, allocations: 0 / 383.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.04097, allocations: 0.6233 MB / 384.4 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.984e-05/0.04107, allocations: 43.7 kB / 384.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.054e-05/0.04112, allocations: 8 kB / 384.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.0414, allocations: 19.92 kB / 384.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.04148, allocations: 31.92 kB / 384.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.04151, allocations: 19.92 kB / 384.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005011/0.04201, allocations: 311 kB / 384.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.04201, allocations: 0 / 384.8 MB, free: 10.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005725/0.04259, allocations: 80 kB / 384.9 MB, free: 10.8 MB / 314.7 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.0001603/0.04275, allocations: 111.2 kB / 385 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.04389, allocations: 0.7856 MB / 385.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.0439, allocations: 0 / 385.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004819/0.04438, allocations: 341.8 kB / 386.1 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.04484, allocations: 56.88 kB / 386.1 MB, free: 9.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.04649, allocations: 0.8927 MB / 387 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.04675, allocations: 223.6 kB / 387.3 MB, free: 8.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.0469, allocations: 39.27 kB / 387.3 MB, free: 8.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.047, allocations: 28.5 kB / 387.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.047, allocations: 0 / 387.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of Templates: time 0.01098/0.05798, allocations: 4.313 MB / 391.6 MB, free: 3.926 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile [Timeout 660] (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=240 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.760741593083367]