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.001096/0.001096, allocations: 71.59 kB / 20.8 MB, free: 3.719 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.0009373/0.0009373, allocations: 166 kB / 24.09 MB, free: 432 kB / 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 0.8853/0.8853, allocations: 177.1 MB / 204.4 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] 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.06072/0.06072, allocations: 18.14 MB / 279 MB, free: 11.48 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 1.092e-06/1.092e-06, allocations: 0 / 416.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.335e-05, allocations: 2.281 kB / 416.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002157/0.00218, allocations: 2.376 MB / 418.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009166/0.003097, allocations: 0.7714 MB / 419.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.00322, allocations: 12.59 kB / 419.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003432/0.003563, allocations: 98.45 kB / 419.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.003775, allocations: 139.9 kB / 419.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.004172, allocations: 284.1 kB / 420.2 MB, free: 9.934 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.004518, allocations: 469.3 kB / 420.7 MB, free: 9.727 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.004672, allocations: 88.02 kB / 420.8 MB, free: 9.68 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.004912, allocations: 193.3 kB / 420.9 MB, free: 9.605 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.005143, allocations: 193.9 kB / 421.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.005192, allocations: 37.53 kB / 421.2 MB, free: 9.539 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.88e-05/0.00524, allocations: 34.84 kB / 421.2 MB, free: 9.539 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.644e-05/0.005327, allocations: 117 kB / 421.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.112e-05/0.005418, allocations: 118.2 kB / 421.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.005749, allocations: 404.6 kB / 421.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.165e-06/0.005751, allocations: 1.031 kB / 421.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005752, allocations: 0 / 421.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.005758, allocations: 0 / 421.8 MB, free: 9.246 MB / 330.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.001057/0.006815, allocations: 0.756 MB / 422.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.006848, allocations: 10.27 kB / 422.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.089e-05/0.006909, allocations: 51.84 kB / 422.7 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.007408, allocations: 374.3 kB / 423 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.007428, allocations: 30.25 kB / 423 MB, free: 8.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.00747, allocations: 33.09 kB / 423.1 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.007802, allocations: 309.4 kB / 423.4 MB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.007814, allocations: 2.469 kB / 423.4 MB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.007833, allocations: 10 kB / 423.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.007841, allocations: 7.125 kB / 423.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.008121, allocations: 219.7 kB / 423.6 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009621/0.009083, allocations: 0.8831 MB / 424.5 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.009632, allocations: 363.2 kB / 424.9 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.009792, allocations: 150 kB / 425 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.009813, allocations: 8.078 kB / 425 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.009826, allocations: 32.66 kB / 425 MB, free: 7.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 1.533e-06/0.009828, allocations: 1.094 kB / 425 MB, free: 7.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001405/0.01123, allocations: 0.9556 MB / 426 MB, free: 6.918 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.068e-05/0.01125, allocations: 55.25 kB / 426 MB, free: 6.855 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000518/0.01177, allocations: 431.7 kB / 426.5 MB, free: 6.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.01179, allocations: 36.7 kB / 426.5 MB, free: 6.633 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.356e-05/0.01187, allocations: 201.7 kB / 426.7 MB, free: 6.465 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.01193, allocations: 150.8 kB / 426.9 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.895e-05/0.012, allocations: 72.16 kB / 426.9 MB, free: 6.301 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.01205, allocations: 354 kB / 427.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.01219, allocations: 110.4 kB / 427.4 MB, free: 5.934 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.01234, allocations: 175 kB / 427.5 MB, free: 5.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009867/0.01333, allocations: 0.6094 MB / 428.2 MB, free: 5.586 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01333, allocations: 1.031 kB / 428.2 MB, free: 5.586 MB / 330.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.0006248/0.01396, allocations: 0.4976 MB / 428.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.01397, allocations: 7.266 kB / 428.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01398, allocations: 1.156 kB / 428.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/0.01419, allocations: 99.52 kB / 428.8 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.01439, allocations: 83.98 kB / 428.8 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.01663, allocations: 7.539 MB / 436.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.01683, allocations: 47.73 kB / 436.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.01685, allocations: 11.06 kB / 436.4 MB, free: 13.77 MB / 346.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.000136/0.01698, allocations: 158.9 kB / 436.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.01703, allocations: 42.41 kB / 436.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.979e-05/0.01709, allocations: 54.38 kB / 436.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.01709, allocations: 3.938 kB / 436.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.0171, allocations: 0.5625 kB / 436.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.01711, allocations: 7.312 kB / 436.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008444/0.01795, allocations: 0.7515 MB / 437.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.01795, allocations: 0.9062 kB / 437.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.01814, allocations: 59.59 kB / 437.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.0183, allocations: 76.02 kB / 437.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.01833, allocations: 14.28 kB / 437.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.01947, allocations: 1.756 MB / 439.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01947, allocations: 0 / 439.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000672/0.02014, allocations: 0.6065 MB / 440 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.02019, allocations: 40.45 kB / 440 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.02022, allocations: 12 kB / 440 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.02042, allocations: 43.38 kB / 440.1 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.02049, allocations: 30.39 kB / 440.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.0205, allocations: 11.5 kB / 440.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004027/0.0209, allocations: 330.6 kB / 440.4 MB, free: 11 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0209, allocations: 0 / 440.4 MB, free: 11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003708/0.02127, allocations: 81.44 kB / 440.5 MB, free: 10.98 MB / 346.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 9.703e-05/0.02137, allocations: 101.4 kB / 440.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006689/0.02204, allocations: 0.6348 MB / 441.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.02204, allocations: 0 / 441.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002614/0.0223, allocations: 283 kB / 441.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.02262, allocations: 61.19 kB / 441.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.0238, allocations: 0.8942 MB / 442.5 MB, free: 9.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.02402, allocations: 227.6 kB / 442.7 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.02414, allocations: 48.75 kB / 442.7 MB, free: 9.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.948e-05/0.02421, allocations: 28.7 kB / 442.8 MB, free: 9.574 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.02421, allocations: 0 / 442.8 MB, free: 9.574 MB / 346.7 MB Notification: Performance of Templates: time 0.006993/0.0312, allocations: 4.25 MB / 447 MB, free: 7.797 MB / 346.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=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.0354742417111993] Failed to read output from testmodel.py, exit status != 0: 0.03653682954609394 0.047890342 0.040219832000000004 Calling exit ...