Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.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.001961/0.001961, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.002263/0.002263, allocations: 204 kB / 20.11 MB, free: 2.977 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.494/1.494, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.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.1059/0.1059, allocations: 24.03 MB / 333.6 MB, free: 1.656 MB / 254.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_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 72.59 kB / 468.9 MB, free: 31.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09323/0.09525, allocations: 59.54 MB / 0.516 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004265/0.09952, allocations: 2.63 MB / 0.5186 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.1012, allocations: 0.8379 MB / 0.5194 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1013, allocations: 7.938 kB / 0.5194 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000396/0.1017, allocations: 91.22 kB / 0.5195 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.1021, allocations: 151.1 kB / 0.5197 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.1025, allocations: 191.7 kB / 0.5199 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006477/0.1031, allocations: 0.5539 MB / 0.5204 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1033, allocations: 100.5 kB / 0.5205 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.1037, allocations: 243.1 kB / 0.5207 GB, free: 7.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.1041, allocations: 262.9 kB / 0.521 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.676e-05/0.1042, allocations: 39.98 kB / 0.521 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.888e-05/0.1042, allocations: 36 kB / 0.521 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1044, allocations: 119.5 kB / 0.5212 GB, free: 6.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1045, allocations: 202.8 kB / 0.5214 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005263/0.1051, allocations: 426 kB / 0.5218 GB, free: 5.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1051, allocations: 0 / 0.5218 GB, free: 5.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1051, allocations: 0 / 0.5218 GB, free: 5.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1051, allocations: 3.938 kB / 0.5218 GB, free: 5.938 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002117/0.1072, allocations: 0.8568 MB / 0.5226 GB, free: 5.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1072, allocations: 8.625 kB / 0.5226 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.832e-05/0.1073, allocations: 56.55 kB / 0.5227 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009391/0.1083, allocations: 446.3 kB / 0.5231 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.1083, allocations: 24.97 kB / 0.5231 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/0.1084, allocations: 35.94 kB / 0.5231 GB, free: 4.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.1089, allocations: 321.9 kB / 0.5235 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1089, allocations: 0 / 0.5235 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.109, allocations: 8 kB / 0.5235 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.109, allocations: 8 kB / 0.5235 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.1094, allocations: 234.4 kB / 0.5237 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.1112, allocations: 1.058 MB / 0.5247 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008838/0.1121, allocations: 407.8 kB / 0.5251 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.1123, allocations: 145.5 kB / 0.5253 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.1124, allocations: 4.328 kB / 0.5253 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.1124, allocations: 46.83 kB / 0.5253 GB, free: 2.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.472e-06/0.1124, allocations: 0 / 0.5253 GB, free: 2.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003348/0.1158, allocations: 1.187 MB / 0.5265 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.1158, allocations: 59.34 kB / 0.5265 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008619/0.1167, allocations: 437.6 kB / 0.5269 GB, free: 384 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.1167, allocations: 33.7 kB / 0.527 GB, free: 344 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.1169, allocations: 212.6 kB / 0.5272 GB, free: 128 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.117, allocations: 154.7 kB / 0.5273 GB, free: 15.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.1171, allocations: 70.14 kB / 0.5274 GB, free: 15.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.1173, allocations: 354.7 kB / 0.5277 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.1176, allocations: 120.8 kB / 0.5278 GB, free: 15.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.1178, allocations: 177 kB / 0.528 GB, free: 15.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004604/0.1224, allocations: 0.9093 MB / 0.5289 GB, free: 14.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1224, allocations: 0 / 0.5289 GB, free: 14.31 MB / 398.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.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm 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=54) (initialization): time 0.002574/0.125, allocations: 0.9531 MB / 0.5298 GB, free: 13.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.125, allocations: 7.938 kB / 0.5298 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.125, allocations: 11.88 kB / 0.5298 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/0.1269, allocations: 258.4 kB / 0.5301 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.1272, allocations: 79.89 kB / 0.5302 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.1373, allocations: 8.62 MB / 0.5386 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004555/0.1377, allocations: 47.94 kB / 0.5386 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.1378, allocations: 16 kB / 0.5386 GB, free: 3.676 MB / 398.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: 5 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000237/0.138, allocations: 162.2 kB / 0.5388 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.466e-05/0.1381, allocations: 47.66 kB / 0.5388 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.1397, allocations: 0.5336 MB / 0.5394 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1397, allocations: 4 kB / 0.5394 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1397, allocations: 0 / 0.5394 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1397, allocations: 0 / 0.5394 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.142, allocations: 1.042 MB / 0.5404 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.142, allocations: 4 kB / 0.5404 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.1423, allocations: 63.91 kB / 0.5405 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.1434, allocations: 180.6 kB / 0.5406 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.1434, allocations: 8 kB / 0.5406 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/0.1484, allocations: 2.42 MB / 0.543 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1484, allocations: 3.938 kB / 0.543 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.1504, allocations: 0.7604 MB / 0.5437 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.1505, allocations: 124.8 kB / 0.5439 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.744e-05/0.1506, allocations: 12 kB / 0.5439 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.151, allocations: 39.94 kB / 0.5439 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-05/0.1511, allocations: 27.95 kB / 0.5439 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.1511, allocations: 16 kB / 0.544 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007263/0.1519, allocations: 323.1 kB / 0.5443 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1519, allocations: 0 / 0.5443 GB, free: 13.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000607/0.1525, allocations: 96 kB / 0.5444 GB, free: 13.57 MB / 414.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 (32): * Single equations (assignments): 31 * 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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001588/0.1526, allocations: 123.1 kB / 0.5445 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.1538, allocations: 0.6555 MB / 0.5451 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1538, allocations: 4 kB / 0.5451 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.1543, allocations: 306.4 kB / 0.5454 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.1547, allocations: 69.7 kB / 0.5455 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.1566, allocations: 1.055 MB / 0.5465 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006399/0.1572, allocations: 0.8353 MB / 0.5473 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001605/0.1574, allocations: 47.25 kB / 0.5474 GB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.734e-05/0.1575, allocations: 23.44 kB / 0.5474 GB, free: 10.35 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1575, allocations: 4 kB / 0.5474 GB, free: 10.35 MB / 414.1 MB Notification: Performance of Templates: time 0.01205/0.1696, allocations: 5.244 MB / 0.5525 GB, free: 5.109 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.823212176561356] Failed to read output from testmodel.py, exit status != 0: 0.17807754687964916 0.192031222 0.084076788 Calling exit ...