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.001008/0.001008, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.001638/0.001638, allocations: 173.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.915/0.915, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.06238/0.06238, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 1.156 kB / 415 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.911e-05/3.17e-05, allocations: 2.281 kB / 415 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001824/0.001855, allocations: 0.976 MB / 416 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.003301, allocations: 1.237 MB / 417.3 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.453e-05/0.003396, allocations: 5.312 kB / 417.3 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.003763, allocations: 39.78 kB / 417.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.003928, allocations: 55.42 kB / 417.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.004193, allocations: 123.3 kB / 417.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002168/0.00441, allocations: 154.7 kB / 417.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.004526, allocations: 20.91 kB / 417.7 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.004634, allocations: 64.56 kB / 417.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.004805, allocations: 76.44 kB / 417.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.004842, allocations: 9.719 kB / 417.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.004863, allocations: 10.41 kB / 417.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/0.004936, allocations: 50.05 kB / 417.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.928e-05/0.004985, allocations: 31.06 kB / 417.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.005231, allocations: 131.5 kB / 418 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.005235, allocations: 0 / 418 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.696e-06/0.005237, allocations: 1.344 kB / 418 MB, free: 10.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.005244, allocations: 0.7031 kB / 418 MB, free: 10.91 MB / 330.7 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.0008694/0.006113, allocations: 447.9 kB / 418.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.006161, allocations: 11.14 kB / 418.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.006196, allocations: 39.72 kB / 418.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.006237, allocations: 20.36 kB / 418.5 MB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.006603, allocations: 233.5 kB / 418.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.006619, allocations: 12.59 kB / 418.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.006646, allocations: 5.953 kB / 418.8 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.006836, allocations: 125.2 kB / 418.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.006844, allocations: 0.9375 kB / 418.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.006857, allocations: 9.844 kB / 418.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.006864, allocations: 1.969 kB / 418.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.007013, allocations: 88.28 kB / 419 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005273/0.00754, allocations: 0.5281 MB / 419.5 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.007852, allocations: 132.9 kB / 419.7 MB, free: 9.723 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.31e-05/0.007925, allocations: 55.73 kB / 419.7 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.007939, allocations: 1.219 kB / 419.7 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.007957, allocations: 33.89 kB / 419.7 MB, free: 9.656 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.414e-06/0.007959, allocations: 4 kB / 419.7 MB, free: 9.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003072/0.008266, allocations: 168.8 kB / 419.9 MB, free: 9.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.008296, allocations: 53.86 kB / 420 MB, free: 9.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.008611, allocations: 255.6 kB / 420.2 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.008623, allocations: 30.3 kB / 420.2 MB, free: 9.332 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.00868, allocations: 116 kB / 420.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.008706, allocations: 38.52 kB / 420.4 MB, free: 9.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.008746, allocations: 30.92 kB / 420.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.715e-05/0.008793, allocations: 331.9 kB / 420.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.937e-05/0.008862, allocations: 39.56 kB / 420.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.335e-05/0.008936, allocations: 64.42 kB / 420.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005187/0.009454, allocations: 253.9 kB / 421.1 MB, free: 8.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.009457, allocations: 0.7031 kB / 421.1 MB, free: 8.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002007/0.009658, allocations: 166.4 kB / 421.3 MB, free: 8.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.009672, allocations: 5.75 kB / 421.3 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.009679, allocations: 1.406 kB / 421.3 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.009695, allocations: 7.734 kB / 421.3 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.954e-05/0.009775, allocations: 24.84 kB / 421.3 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.009782, allocations: 1.734 kB / 421.3 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.965e-05/0.009882, allocations: 25.02 kB / 421.3 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.009891, allocations: 12.28 kB / 421.3 MB, free: 8.609 MB / 330.7 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.0001083/0.009999, allocations: 133.8 kB / 421.5 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.01002, allocations: 15.17 kB / 421.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.01005, allocations: 23.64 kB / 421.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01006, allocations: 1.125 kB / 421.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.01006, allocations: 1.953 kB / 421.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.01007, allocations: 0.7031 kB / 421.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.01024, allocations: 199 kB / 421.7 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.01024, allocations: 2.234 kB / 421.7 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.826e-05/0.01032, allocations: 19.38 kB / 421.7 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.01032, allocations: 0 / 421.7 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01033, allocations: 3.453 kB / 421.7 MB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.01034, allocations: 3.938 kB / 421.7 MB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01034, allocations: 5.219 kB / 421.7 MB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.01065, allocations: 291.4 kB / 422 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.019e-05/0.01068, allocations: 19.16 kB / 422 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.0107, allocations: 3.406 kB / 422 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.01081, allocations: 25.77 kB / 422.1 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.01086, allocations: 6.422 kB / 422.1 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.01086, allocations: 2.75 kB / 422.1 MB, free: 8.055 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002246/0.01109, allocations: 197 kB / 422.3 MB, free: 7.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01109, allocations: 0 / 422.3 MB, free: 7.957 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001838/0.01127, allocations: 26.28 kB / 422.3 MB, free: 7.949 MB / 330.7 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.0004032/0.01168, allocations: 0.8103 MB / 423.1 MB, free: 7.234 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002026/0.01188, allocations: 104.4 kB / 423.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01188, allocations: 4.125 kB / 423.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.25e-05/0.01194, allocations: 50.06 kB / 423.3 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.0122, allocations: 28.25 kB / 423.3 MB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.01407, allocations: 2.101 MB / 425.4 MB, free: 5.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.452e-05/0.01416, allocations: 114.3 kB / 425.5 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.668e-05/0.01423, allocations: 28.5 kB / 425.5 MB, free: 5.598 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.0143, allocations: 48.62 kB / 425.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.0143, allocations: 0 / 425.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.03505, allocations: 3.848 MB / 429.4 MB, free: 4.527 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.064/7.099, allocations: 1.5 kB / 429.4 MB, free: 4.527 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.160543436184525] Failed to read output from testmodel.py, exit status != 0: 7.184805523604155 7.196369872 7.189152534 Calling exit ...