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.001376/0.001376, allocations: 75.64 kB / 19.96 MB, free: 1.746 MB / 14.72 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.00215/0.00215, allocations: 171.7 kB / 23.24 MB, free: 4.855 MB / 14.72 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.616/1.616, allocations: 177.1 MB / 203.6 MB, free: 9.156 MB / 190.1 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.1055/0.1055, allocations: 18.13 MB / 278.1 MB, free: 15.05 MB / 270.1 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 1.934e-06/1.934e-06, allocations: 0 / 415.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.161e-05/3.354e-05, allocations: 8.812 kB / 415.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004632/0.004666, allocations: 2.372 MB / 417.9 MB, free: 172 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00288/0.007546, allocations: 0.7639 MB / 418.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004619/0.008007, allocations: 19.88 kB / 418.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006855/0.008693, allocations: 91.22 kB / 418.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006245/0.009318, allocations: 143 kB / 419 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007905/0.01011, allocations: 283.4 kB / 419.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007685/0.01088, allocations: 471.2 kB / 419.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.0112, allocations: 89.12 kB / 419.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.0117, allocations: 195.4 kB / 420 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004053/0.01211, allocations: 195.4 kB / 420.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.743e-05/0.01219, allocations: 32 kB / 420.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.363e-05/0.01228, allocations: 36 kB / 420.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.01244, allocations: 115.5 kB / 420.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.01261, allocations: 123.6 kB / 420.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005296/0.01314, allocations: 402.5 kB / 420.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.01314, allocations: 3.938 kB / 420.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01314, allocations: 4 kB / 420.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.01316, allocations: 0 / 420.9 MB, free: 13.24 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.0022/0.01536, allocations: 0.7542 MB / 421.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.01541, allocations: 12.92 kB / 421.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.01554, allocations: 48.61 kB / 421.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009493/0.01649, allocations: 373.4 kB / 422 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.01652, allocations: 25.03 kB / 422.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.01659, allocations: 40.31 kB / 422.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.01713, allocations: 302 kB / 422.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.01715, allocations: 4 kB / 422.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.01718, allocations: 12 kB / 422.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.01719, allocations: 11.94 kB / 422.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004578/0.01765, allocations: 218.4 kB / 422.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.01941, allocations: 0.8679 MB / 423.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008754/0.02029, allocations: 363.1 kB / 423.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002576/0.02054, allocations: 140.8 kB / 424 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.02057, allocations: 4.469 kB / 424 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.02061, allocations: 38.5 kB / 424 MB, free: 9.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.02061, allocations: 0 / 424 MB, free: 9.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002269/0.02288, allocations: 0.9579 MB / 425 MB, free: 8.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.02293, allocations: 55.41 kB / 425.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008612/0.02379, allocations: 445.5 kB / 425.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.02382, allocations: 29.7 kB / 425.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.02399, allocations: 200.7 kB / 425.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.02412, allocations: 146.7 kB / 425.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.02424, allocations: 70.2 kB / 425.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.02442, allocations: 354.8 kB / 426.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.02466, allocations: 105 kB / 426.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.02496, allocations: 178.4 kB / 426.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.02668, allocations: 0.6078 MB / 427.2 MB, free: 6.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.02668, allocations: 0 / 427.2 MB, free: 6.691 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.001078/0.02776, allocations: 0.5115 MB / 427.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.02778, allocations: 7.984 kB / 427.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.02779, allocations: 7.938 kB / 427.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.02811, allocations: 98.67 kB / 427.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.02851, allocations: 79.91 kB / 427.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/0.03441, allocations: 7.541 MB / 435.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.03487, allocations: 44.08 kB / 435.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.0349, allocations: 12 kB / 435.5 MB, free: 13.94 MB / 366.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.0002444/0.03515, allocations: 157.8 kB / 435.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.899e-05/0.03524, allocations: 39.77 kB / 435.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.03534, allocations: 52.06 kB / 435.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.03534, allocations: 4 kB / 435.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.03535, allocations: 192 / 435.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.03536, allocations: 11.92 kB / 435.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.03669, allocations: 0.761 MB / 436.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.0367, allocations: 0 / 436.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.03703, allocations: 63.91 kB / 436.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002744/0.0373, allocations: 68.8 kB / 436.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.262e-05/0.03734, allocations: 19.92 kB / 436.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/0.03917, allocations: 1.747 MB / 438.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.03918, allocations: 0 / 438.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009675/0.04014, allocations: 0.6048 MB / 439 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.04022, allocations: 43.7 kB / 439 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.04028, allocations: 8 kB / 439 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/0.04068, allocations: 47.95 kB / 439.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.04075, allocations: 27.94 kB / 439.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.04077, allocations: 8 kB / 439.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006933/0.04147, allocations: 323.1 kB / 439.4 MB, free: 9.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.04147, allocations: 3.938 kB / 439.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005519/0.04202, allocations: 84 kB / 439.5 MB, free: 9.707 MB / 366.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.0001602/0.04218, allocations: 107.2 kB / 439.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.0432, allocations: 0.6276 MB / 440.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.0432, allocations: 0 / 440.2 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.04363, allocations: 286.7 kB / 440.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.04409, allocations: 59.17 kB / 440.6 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.0457, allocations: 0.8907 MB / 441.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.04594, allocations: 227.8 kB / 441.7 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001565/0.0461, allocations: 47.27 kB / 441.7 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.04623, allocations: 24.5 kB / 441.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.04623, allocations: 0 / 441.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of Templates: time 0.01016/0.05639, allocations: 4.244 MB / 446 MB, free: 3.137 MB / 366.1 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=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.097648732364178] Failed to read output from testmodel.py, exit status != 0: 0.06632363051176071 0.276975407 0.25906005400000004 Calling exit ...