Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.001201/0.001201, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001506/0.001506, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1158/0.1158, allocations: 22.94 MB / 336.2 MB, free: 12.4 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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="cs",version="2.0",platforms={"static"}) [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.002801/0.002801, allocations: 71.89 kB / 472.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4008, allocations: 59.29 MB / 0.519 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002214/0.403, allocations: 0.9731 MB / 0.52 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.4045, allocations: 1.231 MB / 0.5212 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.148e-05/0.4046, allocations: 9.188 kB / 0.5212 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.4049, allocations: 44.27 kB / 0.5212 GB, free: 9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.405, allocations: 51.25 kB / 0.5213 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.4053, allocations: 89.84 kB / 0.5213 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.4056, allocations: 257 kB / 0.5216 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.4057, allocations: 25.5 kB / 0.5216 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.4058, allocations: 99.38 kB / 0.5217 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.406, allocations: 100.2 kB / 0.5218 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.406, allocations: 10.22 kB / 0.5218 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.323e-05/0.4061, allocations: 10.31 kB / 0.5218 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/0.4061, allocations: 45.98 kB / 0.5219 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.4062, allocations: 44.09 kB / 0.5219 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.4063, allocations: 129.1 kB / 0.522 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4063, allocations: 0.6094 kB / 0.522 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.4063, allocations: 0 / 0.522 GB, free: 8.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.4064, allocations: 0 / 0.522 GB, free: 8.645 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001003/0.4074, allocations: 463.1 kB / 0.5225 GB, free: 8.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.4074, allocations: 10.61 kB / 0.5225 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.332e-05/0.4074, allocations: 7.172 kB / 0.5225 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.485e-05/0.4074, allocations: 43.41 kB / 0.5225 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.668e-05/0.4075, allocations: 15.78 kB / 0.5225 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005202/0.408, allocations: 231.6 kB / 0.5228 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.408, allocations: 10.88 kB / 0.5228 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.408, allocations: 15.22 kB / 0.5228 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.4083, allocations: 122.5 kB / 0.5229 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.4083, allocations: 3.875 kB / 0.5229 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.4083, allocations: 4 kB / 0.5229 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4083, allocations: 0.7031 kB / 0.5229 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.4085, allocations: 85.94 kB / 0.523 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.4091, allocations: 0.5255 MB / 0.5235 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.4095, allocations: 134.7 kB / 0.5236 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-05/0.4096, allocations: 50.2 kB / 0.5237 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.4096, allocations: 1.188 kB / 0.5237 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.283e-05/0.4096, allocations: 36.38 kB / 0.5237 GB, free: 7.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.4096, allocations: 5.219 kB / 0.5237 GB, free: 7.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003538/0.41, allocations: 165 kB / 0.5239 GB, free: 7.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.01e-05/0.41, allocations: 62.3 kB / 0.5239 GB, free: 7.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.4105, allocations: 255.6 kB / 0.5242 GB, free: 7.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.4105, allocations: 29.7 kB / 0.5242 GB, free: 7.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.4105, allocations: 113.8 kB / 0.5243 GB, free: 6.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.4105, allocations: 47.61 kB / 0.5244 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.4106, allocations: 28.7 kB / 0.5244 GB, free: 6.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.368e-05/0.4106, allocations: 326 kB / 0.5247 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.25e-05/0.4107, allocations: 39.78 kB / 0.5247 GB, free: 6.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.33e-05/0.4108, allocations: 62.39 kB / 0.5248 GB, free: 6.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007435/0.4115, allocations: 249.8 kB / 0.525 GB, free: 6.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4115, allocations: 0 / 0.525 GB, free: 6.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002495/0.4118, allocations: 172.3 kB / 0.5252 GB, free: 6.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.4118, allocations: 5.156 kB / 0.5252 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4118, allocations: 1.438 kB / 0.5252 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.4118, allocations: 5.156 kB / 0.5252 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.412, allocations: 25.7 kB / 0.5252 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.412, allocations: 1.375 kB / 0.5252 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.4121, allocations: 27.62 kB / 0.5253 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.4122, allocations: 8.219 kB / 0.5253 GB, free: 6.336 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cps.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001116/0.4123, allocations: 140.7 kB / 0.5254 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.797e-05/0.4123, allocations: 13.53 kB / 0.5254 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.642e-05/0.4124, allocations: 22.91 kB / 0.5255 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4124, allocations: 5.281 kB / 0.5255 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4124, allocations: 3.641 kB / 0.5255 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.4124, allocations: 0 / 0.5255 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.4126, allocations: 187 kB / 0.5256 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4126, allocations: 0 / 0.5256 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.4127, allocations: 28.55 kB / 0.5257 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4127, allocations: 0.8125 kB / 0.5257 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.4127, allocations: 2.375 kB / 0.5257 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4127, allocations: 7.875 kB / 0.5257 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4127, allocations: 1.469 kB / 0.5257 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/0.413, allocations: 284.9 kB / 0.5259 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.4131, allocations: 14.19 kB / 0.526 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.4131, allocations: 7.125 kB / 0.526 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4133, allocations: 27.91 kB / 0.526 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.4133, allocations: 12.69 kB / 0.526 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.4134, allocations: 5.375 kB / 0.526 GB, free: 5.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00035/0.4137, allocations: 196.1 kB / 0.5262 GB, free: 5.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4137, allocations: 1.344 kB / 0.5262 GB, free: 5.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.414, allocations: 21.19 kB / 0.5262 GB, free: 5.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.0004476/0.4144, allocations: 0.8123 MB / 0.527 GB, free: 4.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.4146, allocations: 99.3 kB / 0.5271 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.4146, allocations: 0 / 0.5271 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.398e-05/0.4147, allocations: 49.91 kB / 0.5272 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.4151, allocations: 36 kB / 0.5272 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.4179, allocations: 2.106 MB / 0.5292 GB, free: 3.402 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.418, allocations: 119.2 kB / 0.5294 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.4181, allocations: 27.56 kB / 0.5294 GB, free: 3.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.661e-05/0.4182, allocations: 43.11 kB / 0.5294 GB, free: 3.281 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4182, allocations: 4 kB / 0.5294 GB, free: 3.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.4429, allocations: 3.389 MB / 0.5327 GB, free: 2.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.99, allocations: 4.703 kB / 0.5327 GB, free: 2.699 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --stepSize=0.6 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.783194966963492] Failed to read output from testmodel.py, exit status != 0: 12.15840837394353 12.178325694 11.768366606 Calling exit ...