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.001677/0.001677, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002223/0.002223, allocations: 214.6 kB / 22.25 MB, free: 5.078 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.558/1.558, allocations: 230.6 MB / 256 MB, free: 8.012 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.1085/0.1085, allocations: 24.12 MB / 336.6 MB, free: 11.44 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="me",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="me",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.002316/0.002316, allocations: 66.09 kB / 473.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.36, allocations: 59.6 MB / 0.5204 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002191/0.3621, allocations: 1.025 MB / 0.5214 GB, free: 9.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.3636, allocations: 1.282 MB / 0.5227 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.571e-05/0.3637, allocations: 6.406 kB / 0.5227 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.364, allocations: 40.91 kB / 0.5227 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.3641, allocations: 46.03 kB / 0.5227 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.3644, allocations: 97.58 kB / 0.5228 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.3648, allocations: 254.5 kB / 0.5231 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.3649, allocations: 29.42 kB / 0.5231 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.365, allocations: 95.06 kB / 0.5232 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.3652, allocations: 100.7 kB / 0.5233 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.302e-05/0.3652, allocations: 10.03 kB / 0.5233 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.27e-05/0.3652, allocations: 10 kB / 0.5233 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.905e-05/0.3653, allocations: 49.91 kB / 0.5234 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.3654, allocations: 50.97 kB / 0.5234 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.3655, allocations: 128.5 kB / 0.5235 GB, free: 8.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3655, allocations: 4 kB / 0.5235 GB, free: 8.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3655, allocations: 1.312 kB / 0.5235 GB, free: 8.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3656, allocations: 0 / 0.5235 GB, free: 8.141 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.001038/0.3666, allocations: 458.7 kB / 0.524 GB, free: 7.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3666, allocations: 9.859 kB / 0.524 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.3667, allocations: 38.92 kB / 0.524 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.3667, allocations: 16.66 kB / 0.524 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/0.3672, allocations: 237 kB / 0.5243 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3672, allocations: 11.94 kB / 0.5243 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.3673, allocations: 5.531 kB / 0.5243 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.3675, allocations: 124.6 kB / 0.5244 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3675, allocations: 0 / 0.5244 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3675, allocations: 5.969 kB / 0.5244 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3675, allocations: 1.062 kB / 0.5244 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.3677, allocations: 89.89 kB / 0.5245 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006714/0.3684, allocations: 0.5475 MB / 0.525 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.3687, allocations: 137.1 kB / 0.5252 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.19e-05/0.3688, allocations: 50.38 kB / 0.5252 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3688, allocations: 6.531 kB / 0.5252 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.3688, allocations: 31.5 kB / 0.5252 GB, free: 6.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.3688, allocations: 0 / 0.5252 GB, free: 6.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003487/0.3692, allocations: 166.1 kB / 0.5254 GB, free: 6.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.3692, allocations: 60.44 kB / 0.5255 GB, free: 6.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.3696, allocations: 256.9 kB / 0.5257 GB, free: 6.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.3696, allocations: 29.7 kB / 0.5257 GB, free: 6.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.053e-05/0.3697, allocations: 112.3 kB / 0.5258 GB, free: 6.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.3697, allocations: 42.47 kB / 0.5259 GB, free: 6.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.3698, allocations: 30.88 kB / 0.5259 GB, free: 6.391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.3698, allocations: 328 kB / 0.5262 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.3699, allocations: 39.22 kB / 0.5263 GB, free: 6.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.649e-05/0.37, allocations: 64.66 kB / 0.5263 GB, free: 6.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007684/0.3708, allocations: 248.2 kB / 0.5266 GB, free: 5.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3708, allocations: 0 / 0.5266 GB, free: 5.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002551/0.371, allocations: 162.5 kB / 0.5267 GB, free: 5.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.371, allocations: 9.781 kB / 0.5267 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.371, allocations: 1.219 kB / 0.5267 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.371, allocations: 2.078 kB / 0.5267 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3712, allocations: 24.42 kB / 0.5267 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3712, allocations: 9.562 kB / 0.5268 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.3714, allocations: 31.61 kB / 0.5268 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3714, allocations: 4.375 kB / 0.5268 GB, free: 5.832 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.0001255/0.3715, allocations: 138.5 kB / 0.5269 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.3715, allocations: 14.81 kB / 0.5269 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.716e-05/0.3716, allocations: 22.5 kB / 0.527 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3716, allocations: 1.125 kB / 0.527 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3716, allocations: 3.938 kB / 0.527 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3716, allocations: 8.281 kB / 0.527 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.3718, allocations: 204.2 kB / 0.5272 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3718, allocations: 0.8906 kB / 0.5272 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.3719, allocations: 21.14 kB / 0.5272 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3719, allocations: 3.938 kB / 0.5272 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.372, allocations: 6.25 kB / 0.5272 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.372, allocations: 0 / 0.5272 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.372, allocations: 4.906 kB / 0.5272 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.3723, allocations: 281.5 kB / 0.5275 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.3723, allocations: 16.59 kB / 0.5275 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.3724, allocations: 6.219 kB / 0.5275 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.3726, allocations: 26.59 kB / 0.5275 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.3726, allocations: 9.219 kB / 0.5275 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.3726, allocations: 3.172 kB / 0.5275 GB, free: 5.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.373, allocations: 201.2 kB / 0.5277 GB, free: 5.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.373, allocations: 4 kB / 0.5277 GB, free: 5.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.3733, allocations: 17.59 kB / 0.5277 GB, free: 5.16 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.0004565/0.3737, allocations: 0.8124 MB / 0.5285 GB, free: 4.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.374, allocations: 110.2 kB / 0.5286 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.374, allocations: 0 / 0.5286 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.939e-05/0.3741, allocations: 50.75 kB / 0.5287 GB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.3744, allocations: 34.95 kB / 0.5287 GB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.377, allocations: 2.101 MB / 0.5308 GB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.3772, allocations: 0.7268 MB / 0.5315 GB, free: 2.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.66e-05/0.3773, allocations: 31.88 kB / 0.5315 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.65e-05/0.3773, allocations: 47.45 kB / 0.5316 GB, free: 2.137 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3773, allocations: 0 / 0.5316 GB, free: 2.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03053/0.4079, allocations: 3.308 MB / 0.5348 GB, free: 1.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.32, allocations: 5.516 kB / 0.5348 GB, free: 1.625 MB / 382.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 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.221812838994083] Failed to read output from testmodel.py, exit status != 0: 11.433976458996767 11.450081961 11.081333761 Calling exit ...