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.001473/0.001473, allocations: 103.2 kB / 16.45 MB, free: 6.449 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.001323/0.001323, allocations: 187.8 kB / 19.4 MB, free: 3.66 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.499/1.499, allocations: 225.6 MB / 247.8 MB, free: 13.97 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.1047/0.1047, allocations: 22.7 MB / 325.4 MB, free: 3.555 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.002269/0.002269, allocations: 75.88 kB / 457.7 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1271, allocations: 58.02 MB / 0.5036 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.004924/0.132, allocations: 2.614 MB / 0.5061 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.1345, allocations: 0.7951 MB / 0.5069 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.1347, allocations: 7.938 kB / 0.5069 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005641/0.1353, allocations: 91.28 kB / 0.507 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003808/0.1357, allocations: 155.1 kB / 0.5072 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.1362, allocations: 195.6 kB / 0.5074 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006592/0.1369, allocations: 0.5499 MB / 0.5079 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.1371, allocations: 96.47 kB / 0.508 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003491/0.1374, allocations: 239.1 kB / 0.5082 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004598/0.1379, allocations: 270.8 kB / 0.5085 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.712e-05/0.138, allocations: 36 kB / 0.5085 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-05/0.138, allocations: 40 kB / 0.5085 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.1383, allocations: 119.5 kB / 0.5087 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.1385, allocations: 194.9 kB / 0.5088 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.1391, allocations: 429.9 kB / 0.5093 GB, free: 1.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1391, allocations: 0 / 0.5093 GB, free: 1.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1391, allocations: 0 / 0.5093 GB, free: 1.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1392, allocations: 0 / 0.5093 GB, free: 1.324 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.002191/0.1413, allocations: 0.8529 MB / 0.5101 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.806e-05/0.1414, allocations: 12.02 kB / 0.5101 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.879e-05/0.1415, allocations: 56.55 kB / 0.5102 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2715/0.413, allocations: 436.8 kB / 0.5106 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.413, allocations: 28.94 kB / 0.5106 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.4131, allocations: 36.11 kB / 0.5106 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.4137, allocations: 313.5 kB / 0.5109 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4137, allocations: 4.312 kB / 0.5109 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.4137, allocations: 12.06 kB / 0.5109 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.4137, allocations: 9.219 kB / 0.511 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.4142, allocations: 232.6 kB / 0.5112 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.4157, allocations: 1.064 MB / 0.5122 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007933/0.4165, allocations: 398.2 kB / 0.5126 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.4167, allocations: 150.9 kB / 0.5127 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.4167, allocations: 11.67 kB / 0.5127 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.4167, allocations: 39.58 kB / 0.5128 GB, free: 15.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.074e-06/0.4167, allocations: 0 / 0.5128 GB, free: 15.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003031/0.4198, allocations: 1.193 MB / 0.514 GB, free: 15.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.4198, allocations: 57.44 kB / 0.514 GB, free: 14.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007249/0.4205, allocations: 433 kB / 0.5144 GB, free: 14.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.4205, allocations: 34.02 kB / 0.5145 GB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.4206, allocations: 210.7 kB / 0.5147 GB, free: 14.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.4207, allocations: 161.9 kB / 0.5148 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.4208, allocations: 75.97 kB / 0.5149 GB, free: 14.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.123e-05/0.4209, allocations: 354.7 kB / 0.5152 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.4211, allocations: 116.5 kB / 0.5153 GB, free: 14.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/0.4214, allocations: 178.5 kB / 0.5155 GB, free: 14.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/0.4258, allocations: 0.9161 MB / 0.5164 GB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4258, allocations: 0 / 0.5164 GB, free: 13.99 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.002279/0.428, allocations: 0.9474 MB / 0.5173 GB, free: 13.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.4281, allocations: 5.719 kB / 0.5173 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4281, allocations: 1.094 kB / 0.5173 GB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.4299, allocations: 267.5 kB / 0.5176 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.4303, allocations: 83.09 kB / 0.5177 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008218/0.4385, allocations: 8.607 MB / 0.5261 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005968/0.4391, allocations: 43.45 kB / 0.5261 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.4391, allocations: 15.88 kB / 0.5261 GB, free: 5.184 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.0003197/0.4395, allocations: 162.5 kB / 0.5263 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.4396, allocations: 48 kB / 0.5263 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.4413, allocations: 0.5388 MB / 0.5268 GB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4413, allocations: 8.688 kB / 0.5269 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.4413, allocations: 0 / 0.5269 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.4413, allocations: 4.078 kB / 0.5269 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.4434, allocations: 1.03 MB / 0.5279 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.4434, allocations: 0 / 0.5279 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.4437, allocations: 65.44 kB / 0.5279 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.4448, allocations: 188.2 kB / 0.5281 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.4448, allocations: 12.89 kB / 0.5281 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004566/0.4494, allocations: 2.412 MB / 0.5305 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4494, allocations: 4.062 kB / 0.5305 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.4512, allocations: 0.7624 MB / 0.5312 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/0.4513, allocations: 122.6 kB / 0.5313 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.4514, allocations: 11.91 kB / 0.5314 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.4518, allocations: 43.31 kB / 0.5314 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4519, allocations: 31.86 kB / 0.5314 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.452, allocations: 13.42 kB / 0.5314 GB, free: 1.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007607/0.4527, allocations: 328.1 kB / 0.5317 GB, free: 1.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4527, allocations: 112 / 0.5317 GB, free: 1.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007065/0.4534, allocations: 104.7 kB / 0.5318 GB, free: 1.688 MB / 382.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.0001271/0.4536, allocations: 107.2 kB / 0.532 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.4546, allocations: 0.658 MB / 0.5326 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4547, allocations: 0 / 0.5326 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004944/0.4551, allocations: 305.6 kB / 0.5329 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.4557, allocations: 64.17 kB / 0.5329 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.4577, allocations: 1.055 MB / 0.534 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.4583, allocations: 0.8374 MB / 0.5348 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002039/0.4585, allocations: 48.05 kB / 0.5348 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.4586, allocations: 29.17 kB / 0.5349 GB, free: 15.57 MB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4586, allocations: 0 / 0.5349 GB, free: 15.57 MB / 398.1 MB Notification: Performance of Templates: time 0.01399/0.4726, allocations: 5.277 MB / 0.54 GB, free: 14.34 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.2303068386390805] Failed to read output from testmodel.py, exit status != 0: 0.48165357392281294 0.494981759 0.35289360000000003 Calling exit ...