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.001303/0.001303, allocations: 108.4 kB / 16.46 MB, free: 6.453 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.001471/0.001471, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.43/1.43, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.1063/0.1063, allocations: 24.11 MB / 333 MB, free: 12.61 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.003046/0.003046, allocations: 70.09 kB / 467.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3408, allocations: 59.56 MB / 0.5151 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002096/0.3429, allocations: 1.013 MB / 0.516 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.3444, allocations: 1.274 MB / 0.5173 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.78e-05/0.3445, allocations: 5.312 kB / 0.5173 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.3448, allocations: 38.12 kB / 0.5173 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.3449, allocations: 53.56 kB / 0.5174 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.3451, allocations: 82 kB / 0.5175 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.3454, allocations: 210.9 kB / 0.5177 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.3455, allocations: 25.14 kB / 0.5177 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.3456, allocations: 90.52 kB / 0.5178 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.3457, allocations: 100.5 kB / 0.5179 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.3458, allocations: 9.562 kB / 0.5179 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.998e-05/0.3458, allocations: 11.59 kB / 0.5179 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.3459, allocations: 49.33 kB / 0.5179 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.31e-05/0.3459, allocations: 52.12 kB / 0.518 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.3461, allocations: 132.1 kB / 0.5181 GB, free: 7.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3461, allocations: 0 / 0.5181 GB, free: 7.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3461, allocations: 1.062 kB / 0.5181 GB, free: 7.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.3461, allocations: 0 / 0.5181 GB, free: 7.766 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.0009485/0.3471, allocations: 0.5179 MB / 0.5186 GB, free: 7.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.3471, allocations: 10.12 kB / 0.5186 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.426e-05/0.3471, allocations: 44.38 kB / 0.5187 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.599e-05/0.3472, allocations: 15.5 kB / 0.5187 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.3477, allocations: 293.5 kB / 0.519 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3477, allocations: 3.125 kB / 0.519 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.3477, allocations: 14.41 kB / 0.519 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.3479, allocations: 124.5 kB / 0.5191 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3479, allocations: 1.312 kB / 0.5191 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.3479, allocations: 0 / 0.5191 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3479, allocations: 6.656 kB / 0.5191 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.3481, allocations: 92.23 kB / 0.5192 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.3487, allocations: 0.582 MB / 0.5198 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.3491, allocations: 133.5 kB / 0.5199 GB, free: 6.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.007e-05/0.3492, allocations: 48.3 kB / 0.5199 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.3492, allocations: 5.25 kB / 0.5199 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.12e-05/0.3492, allocations: 31.81 kB / 0.52 GB, free: 6.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.3492, allocations: 0 / 0.52 GB, free: 6.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003834/0.3496, allocations: 170.1 kB / 0.5201 GB, free: 6.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.3496, allocations: 52.44 kB / 0.5202 GB, free: 6.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.35, allocations: 259 kB / 0.5204 GB, free: 6.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.35, allocations: 26.69 kB / 0.5205 GB, free: 5.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.222e-05/0.3501, allocations: 116.2 kB / 0.5206 GB, free: 5.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.3501, allocations: 34.97 kB / 0.5206 GB, free: 5.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.3502, allocations: 34.5 kB / 0.5206 GB, free: 5.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.171e-05/0.3502, allocations: 332.4 kB / 0.5209 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.397e-05/0.3503, allocations: 39.42 kB / 0.521 GB, free: 5.492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.492e-05/0.3504, allocations: 63.7 kB / 0.521 GB, free: 5.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007372/0.3511, allocations: 255.7 kB / 0.5213 GB, free: 5.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3511, allocations: 1.094 kB / 0.5213 GB, free: 5.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002535/0.3514, allocations: 169.9 kB / 0.5214 GB, free: 5.273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3514, allocations: 5.719 kB / 0.5215 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3514, allocations: 1.531 kB / 0.5215 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3514, allocations: 2.219 kB / 0.5215 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3515, allocations: 20.7 kB / 0.5215 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.3515, allocations: 5.188 kB / 0.5215 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.3517, allocations: 28.78 kB / 0.5215 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3517, allocations: 11.97 kB / 0.5215 GB, free: 5.258 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.0001121/0.3518, allocations: 136.3 kB / 0.5217 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.3519, allocations: 14.09 kB / 0.5217 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.3519, allocations: 20.25 kB / 0.5217 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3519, allocations: 1.188 kB / 0.5217 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3519, allocations: 5.75 kB / 0.5217 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3519, allocations: 4.688 kB / 0.5217 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.3522, allocations: 239.7 kB / 0.5219 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3522, allocations: 4 kB / 0.5219 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3523, allocations: 16.31 kB / 0.5219 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3523, allocations: 0 / 0.5219 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.3523, allocations: 2.906 kB / 0.5219 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3523, allocations: 0.5625 kB / 0.5219 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3523, allocations: 9.219 kB / 0.522 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.3526, allocations: 286.9 kB / 0.5222 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.3527, allocations: 95.98 kB / 0.5223 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.3527, allocations: 1.875 kB / 0.5223 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3529, allocations: 27.2 kB / 0.5223 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.3529, allocations: 8.969 kB / 0.5224 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.3529, allocations: 2.688 kB / 0.5224 GB, free: 4.562 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003806/0.3533, allocations: 206.4 kB / 0.5226 GB, free: 4.457 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3533, allocations: 3.938 kB / 0.5226 GB, free: 4.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.3536, allocations: 22.09 kB / 0.5226 GB, free: 4.449 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.0004389/0.354, allocations: 0.8098 MB / 0.5234 GB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.3542, allocations: 105.9 kB / 0.5235 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3542, allocations: 0 / 0.5235 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.518e-05/0.3543, allocations: 45.48 kB / 0.5235 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.3546, allocations: 31.81 kB / 0.5235 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.3572, allocations: 2.103 MB / 0.5256 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.3574, allocations: 0.7225 MB / 0.5263 GB, free: 1.488 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.53e-05/0.3575, allocations: 34.14 kB / 0.5263 GB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.3575, allocations: 50.53 kB / 0.5264 GB, free: 1.441 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3575, allocations: 0 / 0.5264 GB, free: 1.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.3895, allocations: 3.152 MB / 0.5295 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.549, allocations: 8.469 kB / 0.5295 GB, free: 0.9766 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.223976676119491] Failed to read output from testmodel.py, exit status != 0: 8.623249453958124 8.646532668 8.295844412 Calling exit ...