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.001555/0.001555, allocations: 105.3 kB / 16.46 MB, free: 6.453 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.002196/0.002196, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.539/1.539, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.1151/0.1151, allocations: 24.04 MB / 332.9 MB, free: 12.71 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.002257/0.002257, allocations: 67.89 kB / 468.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3871, allocations: 59.53 MB / 0.5154 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004015/0.3912, allocations: 2.619 MB / 0.5179 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.3932, allocations: 0.8415 MB / 0.5187 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.3935, allocations: 5.031 kB / 0.5187 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005251/0.394, allocations: 99.98 kB / 0.5188 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003573/0.3944, allocations: 146.2 kB / 0.519 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.3949, allocations: 203.4 kB / 0.5192 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006692/0.3955, allocations: 0.5428 MB / 0.5197 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.3958, allocations: 100.9 kB / 0.5198 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.3962, allocations: 249.4 kB / 0.52 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003781/0.3966, allocations: 258.1 kB / 0.5203 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.3966, allocations: 36.56 kB / 0.5203 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.485e-05/0.3967, allocations: 37.69 kB / 0.5204 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.3969, allocations: 115.5 kB / 0.5205 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.3971, allocations: 202.3 kB / 0.5207 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.3977, allocations: 427.6 kB / 0.5211 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3977, allocations: 0 / 0.5211 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3977, allocations: 0 / 0.5211 GB, free: 6.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3977, allocations: 5.375 kB / 0.5211 GB, free: 6.531 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.002021/0.3997, allocations: 0.8566 MB / 0.5219 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3998, allocations: 10.06 kB / 0.5219 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.3999, allocations: 52.77 kB / 0.522 GB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.4007, allocations: 448.3 kB / 0.5224 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.4008, allocations: 22.22 kB / 0.5224 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-05/0.4008, allocations: 44 kB / 0.5225 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005503/0.4014, allocations: 318.4 kB / 0.5228 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4014, allocations: 0 / 0.5228 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.4014, allocations: 15.09 kB / 0.5228 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4015, allocations: 11.47 kB / 0.5228 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.4019, allocations: 229.8 kB / 0.523 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.4037, allocations: 1.072 MB / 0.5241 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009183/0.4046, allocations: 400.3 kB / 0.5244 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.4049, allocations: 146.8 kB / 0.5246 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.405, allocations: 5.297 kB / 0.5246 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.405, allocations: 44.3 kB / 0.5246 GB, free: 4.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.853e-06/0.405, allocations: 1.25 kB / 0.5246 GB, free: 4.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003403/0.4084, allocations: 1.19 MB / 0.5258 GB, free: 3.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.4084, allocations: 56.7 kB / 0.5258 GB, free: 3.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008693/0.4093, allocations: 436 kB / 0.5263 GB, free: 3.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.4093, allocations: 30.8 kB / 0.5263 GB, free: 3.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4094, allocations: 207.7 kB / 0.5265 GB, free: 3.297 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.4096, allocations: 161.8 kB / 0.5266 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.4097, allocations: 73.59 kB / 0.5267 GB, free: 3.125 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.4098, allocations: 354.2 kB / 0.527 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.41, allocations: 117.8 kB / 0.5272 GB, free: 2.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002673/0.4103, allocations: 176.3 kB / 0.5273 GB, free: 2.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004352/0.4146, allocations: 0.9124 MB / 0.5282 GB, free: 2.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4146, allocations: 1.5 kB / 0.5282 GB, free: 2.391 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.002521/0.4171, allocations: 0.951 MB / 0.5291 GB, free: 1.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.4172, allocations: 6.781 kB / 0.5292 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.4172, allocations: 5 kB / 0.5292 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.4191, allocations: 258.7 kB / 0.5294 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.4195, allocations: 83.25 kB / 0.5295 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.4305, allocations: 8.621 MB / 0.5379 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005863/0.431, allocations: 43.84 kB / 0.5379 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.4311, allocations: 14.62 kB / 0.538 GB, free: 9.484 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.0003112/0.4314, allocations: 159.7 kB / 0.5381 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.4315, allocations: 46.22 kB / 0.5382 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.4333, allocations: 0.5446 MB / 0.5387 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.4333, allocations: 4.5 kB / 0.5387 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.4333, allocations: 0.5156 kB / 0.5387 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4333, allocations: 2.016 kB / 0.5387 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.4358, allocations: 1.042 MB / 0.5397 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.4358, allocations: 4.859 kB / 0.5397 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.4362, allocations: 61.09 kB / 0.5398 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.4373, allocations: 181.4 kB / 0.5399 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.4373, allocations: 13.31 kB / 0.54 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005142/0.4425, allocations: 2.414 MB / 0.5423 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4425, allocations: 3.938 kB / 0.5423 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.4445, allocations: 0.7648 MB / 0.5431 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.4447, allocations: 126.2 kB / 0.5432 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.4448, allocations: 7.922 kB / 0.5432 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.4452, allocations: 38.73 kB / 0.5432 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.4454, allocations: 32.36 kB / 0.5433 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.4454, allocations: 9.062 kB / 0.5433 GB, free: 6.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001007/0.4464, allocations: 327.6 kB / 0.5436 GB, free: 5.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4464, allocations: 4 kB / 0.5436 GB, free: 5.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008285/0.4473, allocations: 92.28 kB / 0.5437 GB, free: 5.98 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.0002202/0.4475, allocations: 123.1 kB / 0.5438 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.4487, allocations: 0.6583 MB / 0.5444 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4487, allocations: 0 / 0.5444 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005288/0.4493, allocations: 296.8 kB / 0.5447 GB, free: 5.242 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005168/0.4498, allocations: 64.95 kB / 0.5448 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.4521, allocations: 1.065 MB / 0.5458 GB, free: 4.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.4528, allocations: 0.8403 MB / 0.5466 GB, free: 3.816 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002624/0.4531, allocations: 50.22 kB / 0.5467 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.4532, allocations: 26.94 kB / 0.5467 GB, free: 3.793 MB / 398.1 MB Notification: Performance of SimCode: time 1.834e-06/0.4532, allocations: 0 / 0.5467 GB, free: 3.793 MB / 398.1 MB Notification: Performance of Templates: time 0.01285/0.466, allocations: 5.239 MB / 0.5518 GB, free: 1.344 MB / 398.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: 5.306930950842798] Failed to read output from testmodel.py, exit status != 0: 0.4763647383078933 0.490492228 0.08974525000000001 Calling exit ...