Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.BoilerFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_BoilerFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.BoilerFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_BoilerFollows",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1984/0.1984, allocations: 22.35 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 59.91 kB / 380.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2628, allocations: 54.94 MB / 435.9 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.BoilerFollows): time 0.003494/0.2663, allocations: 3.011 MB / 438.9 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.2681, allocations: 1.031 MB / 439.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004/0.2685, allocations: 19.94 kB / 439.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.2688, allocations: 80.03 kB / 440 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.269, allocations: 90.66 kB / 440.1 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.2695, allocations: 319 kB / 440.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.2699, allocations: 0.5533 MB / 441 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002822/0.2702, allocations: 228.1 kB / 441.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.2704, allocations: 192 kB / 441.4 MB, free: 36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.2705, allocations: 212.5 kB / 441.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.2706, allocations: 43.25 kB / 441.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.857e-05/0.2706, allocations: 49.5 kB / 441.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.2707, allocations: 105.1 kB / 441.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2708, allocations: 235.1 kB / 442 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.2711, allocations: 0.5139 MB / 442.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2711, allocations: 4 kB / 442.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2712, allocations: 0 / 442.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2712, allocations: 0 / 442.5 MB, free: 35.37 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.000905/0.2721, allocations: 0.8146 MB / 443.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2721, allocations: 11.81 kB / 443.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.168e-05/0.2722, allocations: 71.97 kB / 443.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.2723, allocations: 61.31 kB / 443.5 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.2726, allocations: 416.1 kB / 443.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.2727, allocations: 27.59 kB / 443.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/0.2727, allocations: 36.09 kB / 444 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.2733, allocations: 427 kB / 444.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.2733, allocations: 0 / 444.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.2733, allocations: 18.5 kB / 444.4 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2733, allocations: 8.781 kB / 444.4 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004968/0.2738, allocations: 284.1 kB / 444.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.2752, allocations: 1.535 MB / 446.2 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.2759, allocations: 355 kB / 446.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.2761, allocations: 144 kB / 446.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.2761, allocations: 3.359 kB / 446.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.2761, allocations: 30.8 kB / 446.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.2762, allocations: 0 / 446.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007457/0.2769, allocations: 412.3 kB / 447.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.277, allocations: 108.9 kB / 447.2 MB, free: 32.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.2773, allocations: 407 kB / 447.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.2773, allocations: 36.55 kB / 447.7 MB, free: 32.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2774, allocations: 270.3 kB / 447.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.046e-05/0.2775, allocations: 92.3 kB / 448 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.508e-05/0.2776, allocations: 65.25 kB / 448.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.2776, allocations: 362.9 kB / 448.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.2779, allocations: 116.9 kB / 448.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.2781, allocations: 197 kB / 448.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.2794, allocations: 0.5297 MB / 449.3 MB, free: 30.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2794, allocations: 0 / 449.3 MB, free: 30.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000568/0.28, allocations: 392.6 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.28, allocations: 5.312 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.28, allocations: 2.719 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.28, allocations: 3 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.2803, allocations: 67.39 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.2803, allocations: 2.938 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.2805, allocations: 45.84 kB / 449.8 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.2805, allocations: 13 kB / 449.8 MB, free: 30.75 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003191/0.2809, allocations: 214.2 kB / 450 MB, free: 30.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001549/0.281, allocations: 161.7 kB / 450.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009176/0.2819, allocations: 473 kB / 450.6 MB, free: 30.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.372e-06/0.282, allocations: 0 / 450.6 MB, free: 30.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0003991/0.2824, allocations: 335.3 kB / 451 MB, free: 30.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/0.2824, allocations: 5.188 kB / 451 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.2824, allocations: 2.656 kB / 451 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-06/0.2824, allocations: 2.344 kB / 451 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.2826, allocations: 68.25 kB / 451 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2826, allocations: 2.625 kB / 451 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.2828, allocations: 28.67 kB / 451.1 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.2828, allocations: 11.88 kB / 451.1 MB, free: 30.05 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,Gs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001038/0.2829, allocations: 211.9 kB / 451.3 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.283, allocations: 46.22 kB / 451.3 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.354e-05/0.2831, allocations: 54.16 kB / 451.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2831, allocations: 2.625 kB / 451.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2831, allocations: 0 / 451.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2831, allocations: 2.656 kB / 451.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.2835, allocations: 463.8 kB / 451.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2835, allocations: 3.938 kB / 451.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.2838, allocations: 56.53 kB / 451.9 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2838, allocations: 4 kB / 451.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.2838, allocations: 6.625 kB / 451.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2838, allocations: 0 / 451.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2838, allocations: 0 / 451.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007517/0.2846, allocations: 0.5503 MB / 452.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.2847, allocations: 148.8 kB / 452.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.2848, allocations: 10.56 kB / 452.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.285, allocations: 25.23 kB / 452.6 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.285, allocations: 8.984 kB / 452.6 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.285, allocations: 9.25 kB / 452.7 MB, free: 29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002098/0.2853, allocations: 283 kB / 452.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2853, allocations: 0 / 452.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004438/0.2857, allocations: 145.2 kB / 453.1 MB, free: 28.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,Gs.y,T.y,PIp.I.y,PIe.I.y) * 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 (28): * Single equations (assignments): 28 * 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.0009253/0.2866, allocations: 1.097 MB / 454.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000709/0.2874, allocations: 428 kB / 454.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2874, allocations: 4.188 kB / 454.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.2876, allocations: 137 kB / 454.7 MB, free: 27.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.2882, allocations: 118.4 kB / 454.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004225/0.2925, allocations: 3.842 MB / 458.7 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.2927, allocations: 0.8307 MB / 459.5 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002035/0.2929, allocations: 45.38 kB / 459.6 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.2931, allocations: 161.9 kB / 459.7 MB, free: 24.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2931, allocations: 0 / 459.7 MB, free: 24.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3211, allocations: 8.834 MB / 468.6 MB, free: 23.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.487/7.808, allocations: 8.562 kB / 468.6 MB, free: 23.72 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.BoilerFollows_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ElecSys_generator_models_BoilerFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.BoilerFollows.pipe 2>&1)