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.001341/0.001341, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001652/0.001652, allocations: 216.5 kB / 22.26 MB, free: 5.121 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.984 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.1114/0.1114, allocations: 24.14 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.00219/0.00219, allocations: 67.89 kB / 473.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4136, allocations: 59.59 MB / 0.5204 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.002156/0.4158, allocations: 1.026 MB / 0.5214 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.4173, allocations: 1.274 MB / 0.5227 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.94e-05/0.4174, allocations: 5.812 kB / 0.5227 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.4178, allocations: 40.62 kB / 0.5227 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.4179, allocations: 55.27 kB / 0.5227 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.4182, allocations: 92.59 kB / 0.5228 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.4186, allocations: 259 kB / 0.5231 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.4187, allocations: 24.77 kB / 0.5231 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.4189, allocations: 96.12 kB / 0.5232 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.4191, allocations: 99 kB / 0.5233 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.4192, allocations: 11.16 kB / 0.5233 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.627e-05/0.4192, allocations: 13 kB / 0.5233 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.015e-05/0.4193, allocations: 51.03 kB / 0.5234 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.66e-05/0.4193, allocations: 50.72 kB / 0.5234 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.4196, allocations: 128.8 kB / 0.5235 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4196, allocations: 0 / 0.5235 GB, free: 8.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4196, allocations: 0 / 0.5235 GB, free: 8.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.4196, allocations: 1.344 kB / 0.5235 GB, free: 8.133 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.00114/0.4207, allocations: 460.3 kB / 0.524 GB, free: 7.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.4208, allocations: 9.859 kB / 0.524 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.4208, allocations: 42.09 kB / 0.524 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.4208, allocations: 15.53 kB / 0.524 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005568/0.4214, allocations: 232 kB / 0.5243 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.4214, allocations: 8.219 kB / 0.5243 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.4215, allocations: 6.156 kB / 0.5243 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.4217, allocations: 131.2 kB / 0.5244 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.4217, allocations: 0 / 0.5244 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.4217, allocations: 4.969 kB / 0.5244 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4217, allocations: 2.25 kB / 0.5244 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.4219, allocations: 83.98 kB / 0.5245 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007609/0.4227, allocations: 0.5518 MB / 0.525 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/0.4231, allocations: 134.5 kB / 0.5252 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.4232, allocations: 49.77 kB / 0.5252 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.4232, allocations: 1.25 kB / 0.5252 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.4232, allocations: 40.64 kB / 0.5252 GB, free: 6.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.4233, allocations: 0 / 0.5252 GB, free: 6.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004036/0.4237, allocations: 162 kB / 0.5254 GB, free: 6.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.486e-05/0.4237, allocations: 52.59 kB / 0.5254 GB, free: 6.723 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004748/0.4242, allocations: 259.2 kB / 0.5257 GB, free: 6.582 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.4242, allocations: 30.89 kB / 0.5257 GB, free: 6.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.242e-05/0.4242, allocations: 120.3 kB / 0.5258 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.4243, allocations: 43.77 kB / 0.5259 GB, free: 6.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.4243, allocations: 29.73 kB / 0.5259 GB, free: 6.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.676e-05/0.4244, allocations: 323.2 kB / 0.5262 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.934e-05/0.4245, allocations: 39.52 kB / 0.5263 GB, free: 6.051 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.4246, allocations: 65.97 kB / 0.5263 GB, free: 6.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.4254, allocations: 253.2 kB / 0.5266 GB, free: 5.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4254, allocations: 0 / 0.5266 GB, free: 5.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002771/0.4256, allocations: 163.6 kB / 0.5267 GB, free: 5.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.4257, allocations: 5.406 kB / 0.5267 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4257, allocations: 0.6094 kB / 0.5267 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.4257, allocations: 2.719 kB / 0.5267 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.4258, allocations: 21.73 kB / 0.5267 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.4258, allocations: 5.344 kB / 0.5267 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.426, allocations: 31.75 kB / 0.5268 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.426, allocations: 7.156 kB / 0.5268 GB, free: 5.824 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.000149/0.4262, allocations: 137 kB / 0.5269 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.4262, allocations: 14.41 kB / 0.5269 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.4263, allocations: 28.66 kB / 0.527 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.4263, allocations: 1.25 kB / 0.527 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4263, allocations: 7.938 kB / 0.527 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.4263, allocations: 1.125 kB / 0.527 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002634/0.4265, allocations: 203.3 kB / 0.5272 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4265, allocations: 0 / 0.5272 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.4267, allocations: 19.12 kB / 0.5272 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4267, allocations: 1.031 kB / 0.5272 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.4267, allocations: 7.406 kB / 0.5272 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4267, allocations: 0 / 0.5272 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.4267, allocations: 8.938 kB / 0.5272 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004194/0.4271, allocations: 286 kB / 0.5275 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.4272, allocations: 15.06 kB / 0.5275 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.4272, allocations: 7.078 kB / 0.5275 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.4274, allocations: 22.34 kB / 0.5275 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.032e-05/0.4275, allocations: 9.672 kB / 0.5275 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.4275, allocations: 3.219 kB / 0.5275 GB, free: 5.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004467/0.4279, allocations: 203.7 kB / 0.5277 GB, free: 5.156 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4279, allocations: 1.5 kB / 0.5277 GB, free: 5.156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.4282, allocations: 21.41 kB / 0.5277 GB, free: 5.152 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.0005441/0.4288, allocations: 0.8145 MB / 0.5285 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002593/0.429, allocations: 103 kB / 0.5286 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.429, allocations: 1.594 kB / 0.5286 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.921e-05/0.4291, allocations: 49.25 kB / 0.5287 GB, free: 4.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.4295, allocations: 39.97 kB / 0.5287 GB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.4323, allocations: 2.102 MB / 0.5308 GB, free: 2.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.4325, allocations: 0.7265 MB / 0.5315 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.998e-05/0.4326, allocations: 32.45 kB / 0.5315 GB, free: 2.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.442e-05/0.4327, allocations: 42.44 kB / 0.5316 GB, free: 2.133 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4327, allocations: 0 / 0.5316 GB, free: 2.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.4645, allocations: 3.305 MB / 0.5348 GB, free: 1.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.69, allocations: 7.234 kB / 0.5348 GB, free: 1.621 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.392116339877248] Failed to read output from testmodel.py, exit status != 0: 11.793317819014192 11.817852351 11.392839649 Calling exit ...