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.001472/0.001472, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001701/0.001701, allocations: 210.2 kB / 23.01 MB, free: 4.992 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.552/1.552, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1057/0.1057, allocations: 24.03 MB / 337.2 MB, free: 11.35 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_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.002123/0.002123, allocations: 75.89 kB / 474.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4152, allocations: 59.56 MB / 0.5214 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.006333/0.4215, allocations: 2.433 MB / 0.5238 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.4237, allocations: 0.8001 MB / 0.5245 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.4239, allocations: 4.969 kB / 0.5245 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005838/0.4245, allocations: 100.1 kB / 0.5246 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004322/0.4249, allocations: 141.3 kB / 0.5248 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.4256, allocations: 230.5 kB / 0.525 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.4267, allocations: 0.5844 MB / 0.5256 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003298/0.427, allocations: 93 kB / 0.5257 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005328/0.4276, allocations: 255.7 kB / 0.5259 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004153/0.428, allocations: 241 kB / 0.5261 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.491e-05/0.4281, allocations: 39.91 kB / 0.5262 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.979e-05/0.4282, allocations: 37.19 kB / 0.5262 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.4283, allocations: 114.2 kB / 0.5263 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.4285, allocations: 160.8 kB / 0.5265 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005629/0.4291, allocations: 436.3 kB / 0.5269 GB, free: 7.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4291, allocations: 1.125 kB / 0.5269 GB, free: 7.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4291, allocations: 0 / 0.5269 GB, free: 7.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.4291, allocations: 4 kB / 0.5269 GB, free: 7.16 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.002059/0.4311, allocations: 0.7816 MB / 0.5276 GB, free: 6.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.4312, allocations: 13.92 kB / 0.5277 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.4313, allocations: 53.2 kB / 0.5277 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009111/0.4322, allocations: 377.7 kB / 0.5281 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.4323, allocations: 26.09 kB / 0.5281 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.882e-05/0.4323, allocations: 37.95 kB / 0.5281 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.4329, allocations: 311.4 kB / 0.5284 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.4329, allocations: 0.9688 kB / 0.5284 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.433, allocations: 18.38 kB / 0.5284 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.433, allocations: 8.531 kB / 0.5285 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.4335, allocations: 231.4 kB / 0.5287 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.4352, allocations: 0.9125 MB / 0.5296 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008668/0.436, allocations: 399.4 kB / 0.5299 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.4363, allocations: 150.5 kB / 0.5301 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.4363, allocations: 6.719 kB / 0.5301 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.4363, allocations: 37.39 kB / 0.5301 GB, free: 5.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/0.4363, allocations: 0 / 0.5301 GB, free: 5.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003196/0.4395, allocations: 1.126 MB / 0.5312 GB, free: 4.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.4396, allocations: 56.28 kB / 0.5313 GB, free: 4.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009366/0.4405, allocations: 436 kB / 0.5317 GB, free: 4.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.4405, allocations: 31.45 kB / 0.5317 GB, free: 4.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.4407, allocations: 211.5 kB / 0.5319 GB, free: 4.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.4408, allocations: 158.3 kB / 0.5321 GB, free: 4.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.4409, allocations: 77.17 kB / 0.5322 GB, free: 4.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.441, allocations: 350.5 kB / 0.5325 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.4413, allocations: 121.8 kB / 0.5326 GB, free: 3.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.4415, allocations: 166.7 kB / 0.5328 GB, free: 3.641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004153/0.4457, allocations: 0.9129 MB / 0.5337 GB, free: 3.379 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4457, allocations: 5.188 kB / 0.5337 GB, free: 3.375 MB / 382.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.002241/0.4479, allocations: 0.6546 MB / 0.5343 GB, free: 3.109 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.4479, allocations: 11.12 kB / 0.5343 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4479, allocations: 1.312 kB / 0.5343 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/0.4497, allocations: 257.1 kB / 0.5346 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/0.45, allocations: 83.8 kB / 0.5346 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009357/0.4594, allocations: 8.202 MB / 0.5427 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.46, allocations: 36.52 kB / 0.5427 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.46, allocations: 18.25 kB / 0.5427 GB, free: 11.35 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.0004194/0.4604, allocations: 173.9 kB / 0.5429 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.273e-05/0.4605, allocations: 46.31 kB / 0.5429 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.4622, allocations: 0.5332 MB / 0.5434 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4622, allocations: 5.047 kB / 0.5434 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-06/0.4622, allocations: 1.625 kB / 0.5434 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4622, allocations: 10 kB / 0.5435 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.4646, allocations: 0.9098 MB / 0.5443 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4646, allocations: 0 / 0.5443 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.465, allocations: 64.55 kB / 0.5444 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.4661, allocations: 185.4 kB / 0.5446 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/0.4662, allocations: 13.28 kB / 0.5446 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.4712, allocations: 2.253 MB / 0.5468 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4712, allocations: 3.938 kB / 0.5468 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.4733, allocations: 0.7681 MB / 0.5475 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.4734, allocations: 46.27 kB / 0.5476 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.4734, allocations: 7.922 kB / 0.5476 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.4739, allocations: 43.39 kB / 0.5476 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.474, allocations: 29.08 kB / 0.5477 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.474, allocations: 13.55 kB / 0.5477 GB, free: 8.348 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007832/0.4748, allocations: 335.8 kB / 0.548 GB, free: 8.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4748, allocations: 0 / 0.548 GB, free: 8.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006699/0.4754, allocations: 92.28 kB / 0.5481 GB, free: 8.191 MB / 398.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.000154/0.4756, allocations: 106.5 kB / 0.5482 GB, free: 8.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.4768, allocations: 0.6578 MB / 0.5488 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4768, allocations: 0 / 0.5488 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.4773, allocations: 300.7 kB / 0.5491 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.4778, allocations: 54.44 kB / 0.5492 GB, free: 7.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.48, allocations: 1.072 MB / 0.5502 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.4803, allocations: 235.1 kB / 0.5504 GB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002035/0.4805, allocations: 44.94 kB / 0.5505 GB, free: 6.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.4806, allocations: 39.58 kB / 0.5505 GB, free: 6.555 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4806, allocations: 0 / 0.5505 GB, free: 6.555 MB / 398.1 MB Notification: Performance of Templates: time 0.01349/0.4941, allocations: 5.359 MB / 0.5558 GB, free: 3.82 MB / 398.1 MB " [Timeout remaining time 659] 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: 5.504547355696559] Failed to read output from testmodel.py, exit status != 0: 0.5054158270359039 0.522054448 0.089546367 Calling exit ...