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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002119/0.002119, allocations: 113.9 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 186 kB / 22.23 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 225.6 MB / 251 MB, free: 13.02 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.101/0.101, allocations: 22.7 MB / 329 MB, free: 2.371 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.003163/0.003163, allocations: 63.89 kB / 463.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1902, allocations: 58.06 MB / 0.5089 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.005255/0.1955, allocations: 2.634 MB / 0.5115 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.1977, allocations: 0.8028 MB / 0.5123 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.1982, allocations: 7.938 kB / 0.5123 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006451/0.1989, allocations: 95.27 kB / 0.5124 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007549/0.1996, allocations: 147.1 kB / 0.5125 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.2005, allocations: 235.6 kB / 0.5128 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3414/0.5419, allocations: 0.5891 MB / 0.5133 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005677/0.5424, allocations: 96.02 kB / 0.5134 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009347/0.5434, allocations: 251.1 kB / 0.5137 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005911/0.544, allocations: 261.9 kB / 0.5139 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.5441, allocations: 35.28 kB / 0.5139 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.5442, allocations: 37.56 kB / 0.514 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.5444, allocations: 118 kB / 0.5141 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.5446, allocations: 201.6 kB / 0.5143 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.5453, allocations: 430.3 kB / 0.5147 GB, free: 11.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5453, allocations: 0 / 0.5147 GB, free: 11.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5453, allocations: 0 / 0.5147 GB, free: 11.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.5454, allocations: 2.25 kB / 0.5147 GB, free: 11.79 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.002276/0.5476, allocations: 0.7847 MB / 0.5155 GB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.5477, allocations: 9.938 kB / 0.5155 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.5478, allocations: 53.8 kB / 0.5155 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008903/0.5487, allocations: 377.7 kB / 0.5159 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.5487, allocations: 25.5 kB / 0.5159 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.182e-05/0.5488, allocations: 36.33 kB / 0.5159 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005959/0.5494, allocations: 313.6 kB / 0.5162 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.5494, allocations: 3.375 kB / 0.5163 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.5495, allocations: 19.77 kB / 0.5163 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.5495, allocations: 7.312 kB / 0.5163 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.5499, allocations: 228.6 kB / 0.5165 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.5516, allocations: 1.032 MB / 0.5175 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007975/0.5524, allocations: 389 kB / 0.5179 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.5527, allocations: 152.8 kB / 0.518 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.5527, allocations: 6.547 kB / 0.518 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.5527, allocations: 38 kB / 0.5181 GB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.854e-06/0.5527, allocations: 0 / 0.5181 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003264/0.556, allocations: 1.12 MB / 0.5192 GB, free: 10.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.556, allocations: 56.42 kB / 0.5192 GB, free: 10.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008423/0.5569, allocations: 438.6 kB / 0.5196 GB, free: 10.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.5569, allocations: 31.98 kB / 0.5197 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.557, allocations: 206.6 kB / 0.5199 GB, free: 9.961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.5571, allocations: 160 kB / 0.52 GB, free: 9.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.5573, allocations: 73.05 kB / 0.5201 GB, free: 9.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.358e-05/0.5574, allocations: 356.5 kB / 0.5204 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.5576, allocations: 117.5 kB / 0.5205 GB, free: 9.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.5578, allocations: 175.8 kB / 0.5207 GB, free: 9.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004588/0.5624, allocations: 0.9131 MB / 0.5216 GB, free: 9.402 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5624, allocations: 3.188 kB / 0.5216 GB, free: 9.402 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.002547/0.565, allocations: 0.6471 MB / 0.5222 GB, free: 9.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.565, allocations: 5.594 kB / 0.5222 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.565, allocations: 5.781 kB / 0.5222 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001869/0.5669, allocations: 264 kB / 0.5225 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.5673, allocations: 91.08 kB / 0.5226 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00762/0.5749, allocations: 8.294 MB / 0.5307 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.5755, allocations: 41.72 kB / 0.5307 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.5756, allocations: 13.53 kB / 0.5307 GB, free: 1.414 MB / 382.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.0002668/0.5758, allocations: 173.8 kB / 0.5309 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.5759, allocations: 37.08 kB / 0.5309 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.5776, allocations: 0.547 MB / 0.5315 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.5776, allocations: 7.688 kB / 0.5315 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.5776, allocations: 9.25 kB / 0.5315 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.5776, allocations: 2.016 kB / 0.5315 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.58, allocations: 1.005 MB / 0.5325 GB, free: 16.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.58, allocations: 1.094 kB / 0.5325 GB, free: 16.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.5803, allocations: 60.95 kB / 0.5325 GB, free: 16.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.5814, allocations: 183.9 kB / 0.5327 GB, free: 16.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.5814, allocations: 12.89 kB / 0.5327 GB, free: 16.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004892/0.5863, allocations: 2.307 MB / 0.535 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5863, allocations: 0 / 0.535 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002006/0.5883, allocations: 0.7669 MB / 0.5357 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.5885, allocations: 48.66 kB / 0.5358 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-05/0.5885, allocations: 9.516 kB / 0.5358 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.5889, allocations: 50.61 kB / 0.5358 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.589, allocations: 27.22 kB / 0.5358 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.5891, allocations: 10.83 kB / 0.5359 GB, free: 14.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007393/0.5898, allocations: 331.7 kB / 0.5362 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5898, allocations: 0 / 0.5362 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.5904, allocations: 91.81 kB / 0.5363 GB, free: 14.22 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.0001641/0.5906, allocations: 109.4 kB / 0.5364 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.5918, allocations: 0.6557 MB / 0.537 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5918, allocations: 1.125 kB / 0.537 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.5923, allocations: 307.8 kB / 0.5373 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.5928, allocations: 60.66 kB / 0.5374 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.595, allocations: 1.06 MB / 0.5384 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000698/0.5957, allocations: 0.8361 MB / 0.5392 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.5959, allocations: 50.98 kB / 0.5393 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.596, allocations: 28.05 kB / 0.5393 GB, free: 12.1 MB / 398.1 MB Notification: Performance of SimCode: time 1.273e-06/0.596, allocations: 0 / 0.5393 GB, free: 12.1 MB / 398.1 MB Notification: Performance of Templates: time 0.01488/0.6109, allocations: 5.526 MB / 0.5447 GB, free: 10.66 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.601598503999412] Failed to read output from testmodel.py, exit status != 0: 0.6245502205565572 0.637348511 0.088478418 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f89159097b0>