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.001293/0.001293, allocations: 104.3 kB / 19.72 MB, free: 1.926 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.001617/0.001617, allocations: 210.1 kB / 23.01 MB, free: 4.98 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.109/0.109, allocations: 24.04 MB / 337.2 MB, free: 11.34 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.002162/0.002162, allocations: 75.88 kB / 473.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3755, allocations: 59.58 MB / 0.5209 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002365/0.3778, allocations: 0.9663 MB / 0.5219 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3795, allocations: 1.231 MB / 0.5231 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.3796, allocations: 5.25 kB / 0.5231 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.3799, allocations: 45.08 kB / 0.5231 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.3801, allocations: 46.58 kB / 0.5231 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.3803, allocations: 93.84 kB / 0.5232 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.3807, allocations: 249.5 kB / 0.5235 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.3808, allocations: 28.81 kB / 0.5235 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.381, allocations: 95.12 kB / 0.5236 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001937/0.3812, allocations: 96.91 kB / 0.5237 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.3812, allocations: 9.875 kB / 0.5237 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.657e-05/0.3812, allocations: 10.38 kB / 0.5237 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.537e-05/0.3813, allocations: 46.3 kB / 0.5237 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.733e-05/0.3814, allocations: 43.88 kB / 0.5238 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.3816, allocations: 128.4 kB / 0.5239 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3816, allocations: 1.281 kB / 0.5239 GB, free: 8.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3816, allocations: 0 / 0.5239 GB, free: 8.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3816, allocations: 0 / 0.5239 GB, free: 8.246 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.00106/0.3827, allocations: 462.6 kB / 0.5244 GB, free: 7.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3827, allocations: 10.02 kB / 0.5244 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.496e-05/0.3827, allocations: 44.42 kB / 0.5244 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.3828, allocations: 16.38 kB / 0.5244 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.3833, allocations: 228.1 kB / 0.5246 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3833, allocations: 10.69 kB / 0.5247 GB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.3833, allocations: 10.97 kB / 0.5247 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.3835, allocations: 126.1 kB / 0.5248 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3835, allocations: 1.125 kB / 0.5248 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.3836, allocations: 9.016 kB / 0.5248 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.3836, allocations: 2.25 kB / 0.5248 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.3838, allocations: 87.19 kB / 0.5249 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.3844, allocations: 0.5272 MB / 0.5254 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.3848, allocations: 142 kB / 0.5255 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.359e-05/0.3849, allocations: 46.39 kB / 0.5256 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.3849, allocations: 1.094 kB / 0.5256 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/0.3849, allocations: 31.66 kB / 0.5256 GB, free: 6.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.3849, allocations: 0.9062 kB / 0.5256 GB, free: 6.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003635/0.3853, allocations: 165.8 kB / 0.5258 GB, free: 6.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.3853, allocations: 57.08 kB / 0.5258 GB, free: 6.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004525/0.3858, allocations: 263.4 kB / 0.5261 GB, free: 6.691 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.3858, allocations: 26.83 kB / 0.5261 GB, free: 6.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.3858, allocations: 119.5 kB / 0.5262 GB, free: 6.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.3859, allocations: 40.8 kB / 0.5262 GB, free: 6.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.3859, allocations: 33.23 kB / 0.5263 GB, free: 6.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.386, allocations: 328.5 kB / 0.5266 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.386, allocations: 39.42 kB / 0.5266 GB, free: 6.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.434e-05/0.3861, allocations: 60.84 kB / 0.5267 GB, free: 6.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000777/0.3869, allocations: 245.2 kB / 0.5269 GB, free: 6.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3869, allocations: 1.688 kB / 0.5269 GB, free: 6.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002557/0.3872, allocations: 169.9 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3872, allocations: 5.656 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3872, allocations: 0.75 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.3872, allocations: 1.438 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3873, allocations: 25.41 kB / 0.5271 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3873, allocations: 5.922 kB / 0.5271 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.3875, allocations: 28.3 kB / 0.5271 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3875, allocations: 5.938 kB / 0.5272 GB, free: 5.941 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.0001213/0.3877, allocations: 146.2 kB / 0.5273 GB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.673e-05/0.3877, allocations: 11.27 kB / 0.5273 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.98e-05/0.3877, allocations: 19.31 kB / 0.5273 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3877, allocations: 5.344 kB / 0.5273 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3878, allocations: 5.062 kB / 0.5273 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3878, allocations: 0.8438 kB / 0.5273 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.388, allocations: 191.8 kB / 0.5275 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.388, allocations: 0 / 0.5275 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.3881, allocations: 21.44 kB / 0.5275 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3881, allocations: 0 / 0.5275 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.3881, allocations: 6.281 kB / 0.5275 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3881, allocations: 4.828 kB / 0.5275 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3881, allocations: 5.062 kB / 0.5276 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.3885, allocations: 279.4 kB / 0.5278 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.3885, allocations: 15.92 kB / 0.5278 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.3885, allocations: 5.688 kB / 0.5278 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.3887, allocations: 28.27 kB / 0.5279 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.3888, allocations: 8.188 kB / 0.5279 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.3888, allocations: 3.219 kB / 0.5279 GB, free: 5.379 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003959/0.3892, allocations: 196.2 kB / 0.5281 GB, free: 5.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3892, allocations: 1.062 kB / 0.5281 GB, free: 5.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.3895, allocations: 25.38 kB / 0.5281 GB, free: 5.273 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.0005383/0.39, allocations: 0.8288 MB / 0.5289 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002767/0.3903, allocations: 107 kB / 0.529 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3903, allocations: 0 / 0.529 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.3904, allocations: 48.05 kB / 0.529 GB, free: 4.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.3907, allocations: 36.42 kB / 0.5291 GB, free: 4.484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.3934, allocations: 2.099 MB / 0.5311 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.3935, allocations: 115.1 kB / 0.5312 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.89e-05/0.3936, allocations: 28.23 kB / 0.5313 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.738e-05/0.3937, allocations: 42.78 kB / 0.5313 GB, free: 2.875 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3937, allocations: 4 kB / 0.5313 GB, free: 2.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.4268, allocations: 3.705 MB / 0.5349 GB, free: 1.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.58, allocations: 3.859 kB / 0.5349 GB, free: 1.91 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.37253632163629] Failed to read output from testmodel.py, exit status != 0: 11.695854212157428 11.722213543 11.335078603 Calling exit ...