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.001905/0.001905, allocations: 92.42 kB / 20.46 MB, free: 1.246 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.00148/0.00148, allocations: 222.3 kB / 23.77 MB, free: 4.422 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1102/0.1102, allocations: 24.03 MB / 338 MB, free: 11.36 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.002185/0.002185, allocations: 75.89 kB / 475.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3012, allocations: 59.58 MB / 0.5221 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003168/0.3044, allocations: 2.419 MB / 0.5245 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3058, allocations: 0.8033 MB / 0.5253 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.3059, allocations: 5.562 kB / 0.5253 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003763/0.3063, allocations: 98.09 kB / 0.5254 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003307/0.3066, allocations: 143.2 kB / 0.5255 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.307, allocations: 226.7 kB / 0.5257 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.3076, allocations: 0.5915 MB / 0.5263 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.3078, allocations: 97.2 kB / 0.5264 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003535/0.3082, allocations: 243.2 kB / 0.5266 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003322/0.3085, allocations: 244.6 kB / 0.5269 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.3086, allocations: 36.81 kB / 0.5269 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.3086, allocations: 37.22 kB / 0.5269 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.3088, allocations: 115.7 kB / 0.5271 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.3089, allocations: 166.5 kB / 0.5272 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.3093, allocations: 435.5 kB / 0.5276 GB, free: 7.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3093, allocations: 1.375 kB / 0.5276 GB, free: 7.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3093, allocations: 3.938 kB / 0.5276 GB, free: 7.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3093, allocations: 0 / 0.5276 GB, free: 7.121 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.001803/0.3111, allocations: 0.7806 MB / 0.5284 GB, free: 6.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.3111, allocations: 10.48 kB / 0.5284 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.3112, allocations: 51.86 kB / 0.5285 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008365/0.3121, allocations: 381.5 kB / 0.5288 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.3121, allocations: 25.84 kB / 0.5288 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.3122, allocations: 38.41 kB / 0.5289 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.3127, allocations: 316.2 kB / 0.5292 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3127, allocations: 7.922 kB / 0.5292 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.3127, allocations: 10.31 kB / 0.5292 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.3127, allocations: 7.969 kB / 0.5292 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.3131, allocations: 233.2 kB / 0.5294 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3146, allocations: 0.9037 MB / 0.5303 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008171/0.3154, allocations: 395.9 kB / 0.5307 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.3157, allocations: 156.8 kB / 0.5308 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.3157, allocations: 4.828 kB / 0.5308 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3157, allocations: 37.75 kB / 0.5309 GB, free: 5.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.103e-06/0.3157, allocations: 0 / 0.5309 GB, free: 5.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003089/0.3188, allocations: 1.127 MB / 0.532 GB, free: 4.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.3188, allocations: 56.5 kB / 0.532 GB, free: 4.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008396/0.3197, allocations: 435.3 kB / 0.5324 GB, free: 4.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.3197, allocations: 35.55 kB / 0.5325 GB, free: 4.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3198, allocations: 211.8 kB / 0.5327 GB, free: 4.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.884e-05/0.3199, allocations: 153.6 kB / 0.5328 GB, free: 4.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.32, allocations: 74.44 kB / 0.5329 GB, free: 4.066 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.934e-05/0.3201, allocations: 349.9 kB / 0.5332 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.3203, allocations: 118.6 kB / 0.5333 GB, free: 3.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.3206, allocations: 173.6 kB / 0.5335 GB, free: 3.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004238/0.3248, allocations: 0.9138 MB / 0.5344 GB, free: 3.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3248, allocations: 11.88 kB / 0.5344 GB, free: 3.332 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.002202/0.327, allocations: 0.64 MB / 0.535 GB, free: 3.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.327, allocations: 10.23 kB / 0.535 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3271, allocations: 1.656 kB / 0.5351 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/0.3288, allocations: 265.6 kB / 0.5353 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.3291, allocations: 84.36 kB / 0.5354 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008574/0.3377, allocations: 8.204 MB / 0.5434 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004861/0.3382, allocations: 43.66 kB / 0.5434 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.946e-05/0.3382, allocations: 13.81 kB / 0.5435 GB, free: 11.31 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.0002608/0.3385, allocations: 170.2 kB / 0.5436 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/0.3386, allocations: 42.78 kB / 0.5437 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.3402, allocations: 0.5411 MB / 0.5442 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3402, allocations: 4.719 kB / 0.5442 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.3402, allocations: 0.5625 kB / 0.5442 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3402, allocations: 6.984 kB / 0.5442 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.3424, allocations: 0.9061 MB / 0.5451 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3424, allocations: 0 / 0.5451 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.3427, allocations: 64.72 kB / 0.5451 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.3438, allocations: 182.5 kB / 0.5453 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.3438, allocations: 12.67 kB / 0.5453 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004761/0.3486, allocations: 2.259 MB / 0.5475 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3486, allocations: 0 / 0.5475 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.3504, allocations: 0.762 MB / 0.5483 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.3505, allocations: 49.97 kB / 0.5483 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.3506, allocations: 12.12 kB / 0.5483 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.351, allocations: 38.09 kB / 0.5484 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.757e-05/0.3511, allocations: 30.84 kB / 0.5484 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.3511, allocations: 12.09 kB / 0.5484 GB, free: 8.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006923/0.3518, allocations: 331.7 kB / 0.5487 GB, free: 8.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3518, allocations: 0 / 0.5487 GB, free: 8.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005853/0.3524, allocations: 92.31 kB / 0.5488 GB, free: 8.164 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.0001472/0.3525, allocations: 119.2 kB / 0.5489 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3536, allocations: 0.6484 MB / 0.5496 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3536, allocations: 1.125 kB / 0.5496 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.354, allocations: 300.9 kB / 0.5499 GB, free: 7.434 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.3545, allocations: 64.89 kB / 0.5499 GB, free: 7.402 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.3564, allocations: 1.102 MB / 0.551 GB, free: 6.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.3566, allocations: 235.8 kB / 0.5512 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.3567, allocations: 28.19 kB / 0.5512 GB, free: 6.527 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3567, allocations: 0 / 0.5512 GB, free: 6.527 MB / 398.1 MB Notification: Performance of Templates: time 0.01086/0.3676, allocations: 7.824 MB / 0.5589 GB, free: 2.371 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.333392172120512] Failed to read output from testmodel.py, exit status != 0: 0.37684974214062095 0.390897336 0.078468277 Calling exit ...