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.001712/0.001712, allocations: 104.3 kB / 19.72 MB, free: 1.77 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.002086/0.002086, allocations: 209.9 kB / 23 MB, free: 4.633 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.548/1.548, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1074/0.1074, allocations: 24.03 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.002197/0.002197, allocations: 67.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3447, allocations: 59.57 MB / 0.5209 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002415/0.3472, allocations: 0.9698 MB / 0.5219 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.3488, allocations: 1.235 MB / 0.5231 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.66e-05/0.3489, allocations: 6.281 kB / 0.5231 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.3492, allocations: 39.78 kB / 0.5231 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.3494, allocations: 55.36 kB / 0.5232 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.3497, allocations: 89.11 kB / 0.5232 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006263/0.3503, allocations: 257.7 kB / 0.5235 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.3505, allocations: 21.86 kB / 0.5235 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.3508, allocations: 98.8 kB / 0.5236 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002932/0.351, allocations: 88.25 kB / 0.5237 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/0.3511, allocations: 10.56 kB / 0.5237 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.66e-05/0.3511, allocations: 14.59 kB / 0.5237 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.3513, allocations: 46.36 kB / 0.5238 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.065e-05/0.3513, allocations: 51.45 kB / 0.5238 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003562/0.3517, allocations: 124.5 kB / 0.5239 GB, free: 8.273 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3517, allocations: 0 / 0.5239 GB, free: 8.273 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3517, allocations: 1.219 kB / 0.5239 GB, free: 8.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.3517, allocations: 0 / 0.5239 GB, free: 8.273 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.001207/0.3529, allocations: 460.2 kB / 0.5244 GB, free: 7.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.353, allocations: 10.48 kB / 0.5244 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.149e-05/0.353, allocations: 36.97 kB / 0.5244 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.3531, allocations: 21.25 kB / 0.5244 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000555/0.3536, allocations: 233.3 kB / 0.5246 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3537, allocations: 7.438 kB / 0.5247 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.3537, allocations: 10.88 kB / 0.5247 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.3539, allocations: 127.9 kB / 0.5248 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.354, allocations: 1.125 kB / 0.5248 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.354, allocations: 5.094 kB / 0.5248 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.354, allocations: 2.062 kB / 0.5248 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.3542, allocations: 83.53 kB / 0.5249 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007588/0.3549, allocations: 0.5335 MB / 0.5254 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.3554, allocations: 135 kB / 0.5255 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.91e-05/0.3555, allocations: 45.44 kB / 0.5256 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.3555, allocations: 1.125 kB / 0.5256 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.3555, allocations: 33.69 kB / 0.5256 GB, free: 7.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3555, allocations: 0 / 0.5256 GB, free: 7.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004081/0.3559, allocations: 173.8 kB / 0.5258 GB, free: 6.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.3559, allocations: 52.78 kB / 0.5258 GB, free: 6.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004682/0.3564, allocations: 260.7 kB / 0.5261 GB, free: 6.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.3564, allocations: 33.64 kB / 0.5261 GB, free: 6.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.3565, allocations: 112.4 kB / 0.5262 GB, free: 6.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.3565, allocations: 43.28 kB / 0.5262 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.3566, allocations: 33.83 kB / 0.5263 GB, free: 6.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.065e-05/0.3566, allocations: 328.2 kB / 0.5266 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.037e-05/0.3567, allocations: 39.91 kB / 0.5266 GB, free: 6.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.289e-05/0.3568, allocations: 62.61 kB / 0.5267 GB, free: 6.156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007693/0.3576, allocations: 246.8 kB / 0.5269 GB, free: 6.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3576, allocations: 1.312 kB / 0.5269 GB, free: 6.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002727/0.3579, allocations: 165.2 kB / 0.5271 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3579, allocations: 5.094 kB / 0.5271 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3579, allocations: 1.188 kB / 0.5271 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3579, allocations: 6.234 kB / 0.5271 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.358, allocations: 28.47 kB / 0.5271 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.358, allocations: 5.875 kB / 0.5271 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.3582, allocations: 28.55 kB / 0.5272 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.3582, allocations: 3.688 kB / 0.5272 GB, free: 5.969 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.0001728/0.3584, allocations: 143.7 kB / 0.5273 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.3585, allocations: 11.17 kB / 0.5273 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.338e-05/0.3585, allocations: 24.16 kB / 0.5273 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.3585, allocations: 5.094 kB / 0.5273 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3585, allocations: 4.969 kB / 0.5273 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3585, allocations: 0.6562 kB / 0.5273 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.3588, allocations: 192.4 kB / 0.5275 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3588, allocations: 1.125 kB / 0.5275 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.3589, allocations: 15.8 kB / 0.5275 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3589, allocations: 0 / 0.5275 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3589, allocations: 7.078 kB / 0.5275 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3589, allocations: 4 kB / 0.5276 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3589, allocations: 5 kB / 0.5276 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000394/0.3593, allocations: 287.4 kB / 0.5278 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-05/0.3593, allocations: 19.89 kB / 0.5278 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.3594, allocations: 6.625 kB / 0.5279 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.3596, allocations: 23.08 kB / 0.5279 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.3596, allocations: 9.766 kB / 0.5279 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.3596, allocations: 2.156 kB / 0.5279 GB, free: 5.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003858/0.36, allocations: 205.6 kB / 0.5281 GB, free: 5.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.36, allocations: 0 / 0.5281 GB, free: 5.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3603, allocations: 22.16 kB / 0.5281 GB, free: 5.293 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.0004745/0.3608, allocations: 0.8219 MB / 0.5289 GB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002261/0.361, allocations: 100.4 kB / 0.529 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.361, allocations: 0 / 0.529 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.315e-05/0.3611, allocations: 52.8 kB / 0.5291 GB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.3614, allocations: 31.48 kB / 0.5291 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.3641, allocations: 2.089 MB / 0.5311 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.3642, allocations: 118.2 kB / 0.5312 GB, free: 2.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.337e-05/0.3643, allocations: 29.78 kB / 0.5313 GB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.002e-05/0.3643, allocations: 42.47 kB / 0.5313 GB, free: 2.914 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3643, allocations: 0 / 0.5313 GB, free: 2.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.4001, allocations: 3.713 MB / 0.5349 GB, free: 1.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.72, allocations: 4.656 kB / 0.5349 GB, free: 1.945 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 & 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.635025519877672] Failed to read output from testmodel.py, exit status != 0: 11.830241117160767 11.858817449 11.501731166 Calling exit ...