Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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.00182/0.00182, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.00239/0.00239, allocations: 204 kB / 20.11 MB, free: 2.977 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.487/1.487, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1038/0.1038, allocations: 24.04 MB / 333.6 MB, free: 1.559 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.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.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") [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.002029/0.002029, allocations: 65.25 kB / 468.9 MB, free: 31.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.1003, allocations: 59.55 MB / 0.516 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002697/0.103, allocations: 1.408 MB / 0.5174 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.105, allocations: 1.42 MB / 0.5188 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.1052, allocations: 7.938 kB / 0.5188 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.1055, allocations: 83.36 kB / 0.5189 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.1058, allocations: 95.47 kB / 0.519 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.1061, allocations: 167.7 kB / 0.5191 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004383/0.1065, allocations: 359.7 kB / 0.5195 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.1067, allocations: 67.41 kB / 0.5196 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.1069, allocations: 151.4 kB / 0.5197 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.1071, allocations: 175.2 kB / 0.5199 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/0.1072, allocations: 20 kB / 0.5199 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.164e-05/0.1072, allocations: 24 kB / 0.5199 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.93e-05/0.1073, allocations: 75.69 kB / 0.52 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1074, allocations: 123.1 kB / 0.5201 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.1077, allocations: 254.7 kB / 0.5203 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1077, allocations: 0 / 0.5203 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1077, allocations: 0 / 0.5203 GB, free: 7.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1077, allocations: 0 / 0.5203 GB, free: 7.379 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001562/0.1093, allocations: 0.6968 MB / 0.521 GB, free: 6.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1093, allocations: 12.62 kB / 0.521 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.9e-05/0.1094, allocations: 32.75 kB / 0.5211 GB, free: 6.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.1102, allocations: 403.3 kB / 0.5214 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.1103, allocations: 16.38 kB / 0.5215 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.1103, allocations: 20.38 kB / 0.5215 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.1107, allocations: 210.8 kB / 0.5217 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1107, allocations: 7.922 kB / 0.5217 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.1107, allocations: 12 kB / 0.5217 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1107, allocations: 4 kB / 0.5217 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.111, allocations: 148.8 kB / 0.5218 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.1123, allocations: 0.9476 MB / 0.5228 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.1129, allocations: 233.8 kB / 0.523 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.113, allocations: 80.77 kB / 0.5231 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.1131, allocations: 0 / 0.5231 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.1131, allocations: 34.56 kB / 0.5231 GB, free: 4.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.163e-06/0.1131, allocations: 0 / 0.5231 GB, free: 4.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005473/0.1136, allocations: 260 kB / 0.5234 GB, free: 4.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.1137, allocations: 51.41 kB / 0.5234 GB, free: 4.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008455/0.1145, allocations: 372.5 kB / 0.5238 GB, free: 3.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.1145, allocations: 25.7 kB / 0.5238 GB, free: 3.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.1147, allocations: 176.4 kB / 0.524 GB, free: 3.453 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.165e-05/0.1148, allocations: 79.31 kB / 0.524 GB, free: 3.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.371e-05/0.1148, allocations: 49.66 kB / 0.5241 GB, free: 3.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.115, allocations: 350.7 kB / 0.5244 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.1152, allocations: 64.2 kB / 0.5245 GB, free: 2.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1153, allocations: 100.7 kB / 0.5246 GB, free: 2.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.1165, allocations: 374.4 kB / 0.5249 GB, free: 2.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1165, allocations: 3.938 kB / 0.5249 GB, free: 2.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004676/0.1169, allocations: 254.4 kB / 0.5252 GB, free: 2.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.117, allocations: 8 kB / 0.5252 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.117, allocations: 128 / 0.5252 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.117, allocations: 8 kB / 0.5252 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.1172, allocations: 39.92 kB / 0.5252 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.1172, allocations: 7.938 kB / 0.5252 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.1175, allocations: 43.84 kB / 0.5253 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.1175, allocations: 4 kB / 0.5253 GB, free: 2.043 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] g1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002067/0.1177, allocations: 157.9 kB / 0.5254 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.1178, allocations: 31.81 kB / 0.5255 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.997e-05/0.1179, allocations: 38.31 kB / 0.5255 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.1179, allocations: 0 / 0.5255 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.1179, allocations: 7.938 kB / 0.5255 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1179, allocations: 3.984 kB / 0.5255 GB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004447/0.1183, allocations: 325.3 kB / 0.5258 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1183, allocations: 0 / 0.5258 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.1185, allocations: 35.98 kB / 0.5258 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1185, allocations: 0 / 0.5258 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.1186, allocations: 8 kB / 0.5259 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1186, allocations: 0 / 0.5259 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1186, allocations: 3.938 kB / 0.5259 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.1192, allocations: 394.4 kB / 0.5262 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.1193, allocations: 112.9 kB / 0.5263 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.1193, allocations: 4 kB / 0.5263 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.1197, allocations: 39.95 kB / 0.5264 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.1197, allocations: 11.92 kB / 0.5264 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.1197, allocations: 4.094 kB / 0.5264 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006837/0.1204, allocations: 287 kB / 0.5267 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1204, allocations: 0 / 0.5267 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.1207, allocations: 40 kB / 0.5267 GB, free: 492 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001347/0.1208, allocations: 107.2 kB / 0.5268 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.1212, allocations: 169 kB / 0.527 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1212, allocations: 0 / 0.527 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.1214, allocations: 75.89 kB / 0.527 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1218, allocations: 52.52 kB / 0.5271 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009853/0.1228, allocations: 0.5323 MB / 0.5276 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.1233, allocations: 0.7755 MB / 0.5284 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.1234, allocations: 50.2 kB / 0.5284 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.968e-05/0.1234, allocations: 19.44 kB / 0.5284 GB, free: 14.65 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.1234, allocations: 0 / 0.5284 GB, free: 14.65 MB / 398.1 MB Notification: Performance of Templates: time 0.005891/0.1293, allocations: 2.155 MB / 0.5305 GB, free: 12.5 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.539235543459654] Failed to read output from testmodel.py, exit status != 0: 0.1368889231234789 0.15094038 0.040242882 Calling exit ...