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.001356/0.001356, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001627/0.001627, allocations: 220.2 kB / 23.01 MB, free: 4.609 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 8.031 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.109/0.109, allocations: 24.12 MB / 337.3 MB, free: 11.46 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.002083/0.002083, allocations: 59.91 kB / 474.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3266, allocations: 59.59 MB / 0.5216 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003571/0.3302, allocations: 2.643 MB / 0.5242 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.3318, allocations: 0.8466 MB / 0.525 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002232/0.3321, allocations: 9.312 kB / 0.525 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004466/0.3325, allocations: 99.91 kB / 0.5251 GB, free: 7.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003644/0.3329, allocations: 136.8 kB / 0.5253 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.3334, allocations: 233.4 kB / 0.5255 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007/0.3341, allocations: 0.5906 MB / 0.5261 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.3343, allocations: 100.3 kB / 0.5262 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.3348, allocations: 251.2 kB / 0.5264 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003948/0.3352, allocations: 269.7 kB / 0.5267 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.3352, allocations: 36.56 kB / 0.5267 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.3353, allocations: 36.5 kB / 0.5267 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.3354, allocations: 111.6 kB / 0.5268 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.3356, allocations: 202.6 kB / 0.527 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005343/0.3361, allocations: 431.1 kB / 0.5274 GB, free: 6.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3362, allocations: 0 / 0.5274 GB, free: 6.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3362, allocations: 1.062 kB / 0.5274 GB, free: 6.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3362, allocations: 0 / 0.5274 GB, free: 6.832 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.001896/0.3381, allocations: 0.784 MB / 0.5282 GB, free: 6.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3381, allocations: 11.02 kB / 0.5282 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3382, allocations: 52.36 kB / 0.5283 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.339, allocations: 381.5 kB / 0.5286 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.067e-05/0.3391, allocations: 24.56 kB / 0.5287 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.3391, allocations: 38.94 kB / 0.5287 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.3397, allocations: 309.6 kB / 0.529 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.3397, allocations: 5.406 kB / 0.529 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.3397, allocations: 11.45 kB / 0.529 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.3397, allocations: 6.625 kB / 0.529 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.3402, allocations: 234.2 kB / 0.5292 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.3418, allocations: 1.03 MB / 0.5302 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.3427, allocations: 404.3 kB / 0.5306 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.3429, allocations: 153 kB / 0.5308 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/0.343, allocations: 4.109 kB / 0.5308 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.343, allocations: 37.92 kB / 0.5308 GB, free: 4.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.074e-06/0.343, allocations: 4 kB / 0.5308 GB, free: 4.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003179/0.3462, allocations: 1.122 MB / 0.5319 GB, free: 4.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.797e-05/0.3462, allocations: 59.97 kB / 0.532 GB, free: 4.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009143/0.3471, allocations: 431.2 kB / 0.5324 GB, free: 4.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.3472, allocations: 35.73 kB / 0.5324 GB, free: 4.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.3473, allocations: 210.8 kB / 0.5326 GB, free: 3.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3474, allocations: 153.5 kB / 0.5328 GB, free: 3.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.3475, allocations: 77.22 kB / 0.5328 GB, free: 3.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.137e-05/0.3476, allocations: 356.5 kB / 0.5332 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.3479, allocations: 116.8 kB / 0.5333 GB, free: 3.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.3481, allocations: 173.5 kB / 0.5335 GB, free: 3.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004535/0.3526, allocations: 0.9161 MB / 0.5344 GB, free: 2.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3526, allocations: 1.188 kB / 0.5344 GB, free: 2.98 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.002426/0.3551, allocations: 0.6457 MB / 0.535 GB, free: 2.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3551, allocations: 10.48 kB / 0.535 GB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3551, allocations: 4.969 kB / 0.535 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.3568, allocations: 254.3 kB / 0.5352 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.3572, allocations: 83.61 kB / 0.5353 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009274/0.3665, allocations: 8.289 MB / 0.5434 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.3671, allocations: 42.5 kB / 0.5435 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.3671, allocations: 15.44 kB / 0.5435 GB, free: 10.84 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.0003066/0.3674, allocations: 169.4 kB / 0.5436 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.012e-05/0.3675, allocations: 45.66 kB / 0.5437 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.3692, allocations: 0.5379 MB / 0.5442 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3692, allocations: 4.062 kB / 0.5442 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.3692, allocations: 1.531 kB / 0.5442 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.3692, allocations: 2.359 kB / 0.5442 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002417/0.3716, allocations: 1.017 MB / 0.5452 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3716, allocations: 0 / 0.5452 GB, free: 9.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.372, allocations: 61.38 kB / 0.5453 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.373, allocations: 185.7 kB / 0.5454 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.3731, allocations: 8.688 kB / 0.5454 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.3781, allocations: 2.327 MB / 0.5477 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3781, allocations: 3.938 kB / 0.5477 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.3802, allocations: 0.7603 MB / 0.5485 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/0.3804, allocations: 53.77 kB / 0.5485 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.517e-05/0.3805, allocations: 12.06 kB / 0.5485 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004479/0.3809, allocations: 34.84 kB / 0.5486 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.381, allocations: 30.38 kB / 0.5486 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.381, allocations: 12.44 kB / 0.5486 GB, free: 7.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008754/0.3819, allocations: 330.7 kB / 0.5489 GB, free: 7.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3819, allocations: 1.156 kB / 0.5489 GB, free: 7.586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008212/0.3827, allocations: 91.41 kB / 0.549 GB, free: 7.574 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.0002159/0.3829, allocations: 113.6 kB / 0.5491 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001378/0.3843, allocations: 0.6472 MB / 0.5497 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3843, allocations: 1.625 kB / 0.5497 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005639/0.3849, allocations: 308.3 kB / 0.55 GB, free: 6.766 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.3855, allocations: 63.72 kB / 0.5501 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.3877, allocations: 1.101 MB / 0.5512 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/0.3883, allocations: 0.8358 MB / 0.552 GB, free: 5.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3885, allocations: 33.12 kB / 0.552 GB, free: 5.164 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3885, allocations: 0 / 0.552 GB, free: 5.164 MB / 398.1 MB Notification: Performance of Templates: time 0.01313/0.4016, allocations: 7.664 MB / 0.5595 GB, free: 1.094 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: 8.477237755898386] Failed to read output from testmodel.py, exit status != 0: 0.4114432209171355 0.42801214800000004 0.088110824 Calling exit ...