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.007536/0.007536, allocations: 102.1 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 193.3 kB / 16.68 MB, free: 5.973 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09335/0.09335, allocations: 22.32 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 55.91 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 54.96 MB / 491.5 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.BoilerFollows): time 0.004276/0.1111, allocations: 3.012 MB / 494.5 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.113, allocations: 1.025 MB / 495.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.1135, allocations: 19.88 kB / 495.6 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003009/0.1138, allocations: 83.06 kB / 495.6 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003594/0.1142, allocations: 95.12 kB / 495.7 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008468/0.115, allocations: 315 kB / 496 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007754/0.1158, allocations: 0.5583 MB / 496.6 MB, free: 152 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004375/0.1163, allocations: 235 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.1166, allocations: 195.1 kB / 497 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.1168, allocations: 210.7 kB / 497.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.117, allocations: 47.98 kB / 497.3 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.387e-05/0.117, allocations: 48 kB / 497.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.494e-05/0.1171, allocations: 99.62 kB / 497.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.1174, allocations: 234.5 kB / 497.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006139/0.118, allocations: 0.5443 MB / 498.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.118, allocations: 0 / 498.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.118, allocations: 0 / 498.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.118, allocations: 7.938 kB / 498.2 MB, free: 14.54 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001341/0.1194, allocations: 0.8293 MB / 499 MB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1194, allocations: 8.031 kB / 499 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.384e-05/0.1195, allocations: 78.66 kB / 499.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1196, allocations: 68.52 kB / 499.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.1203, allocations: 438.1 kB / 499.6 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.1204, allocations: 25.38 kB / 499.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-05/0.1204, allocations: 36.38 kB / 499.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.1212, allocations: 427.6 kB / 0.4884 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1212, allocations: 0 / 0.4884 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.1213, allocations: 12 kB / 0.4884 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.1213, allocations: 12 kB / 0.4884 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006197/0.1219, allocations: 290.4 kB / 0.4887 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.1239, allocations: 1.527 MB / 0.4902 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000743/0.1246, allocations: 347.3 kB / 0.4905 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.1249, allocations: 133.2 kB / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.125, allocations: 240 / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.125, allocations: 38.8 kB / 0.4906 GB, free: 10.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.152e-06/0.125, allocations: 4 kB / 0.4907 GB, free: 10.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008969/0.1259, allocations: 405.4 kB / 0.491 GB, free: 9.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.226e-05/0.126, allocations: 106.8 kB / 0.4911 GB, free: 9.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.1264, allocations: 410 kB / 0.4915 GB, free: 9.141 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1265, allocations: 29.7 kB / 0.4916 GB, free: 9.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.1267, allocations: 273 kB / 0.4918 GB, free: 8.836 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.1268, allocations: 103.1 kB / 0.4919 GB, free: 8.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.1269, allocations: 66.02 kB / 0.492 GB, free: 8.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.127, allocations: 358.8 kB / 0.4923 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.1273, allocations: 114.1 kB / 0.4924 GB, free: 8.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.1276, allocations: 197.7 kB / 0.4926 GB, free: 7.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.129, allocations: 0.5332 MB / 0.4931 GB, free: 7.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.1291, allocations: 3.984 kB / 0.4931 GB, free: 7.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000715/0.1298, allocations: 394.6 kB / 0.4935 GB, free: 7.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1298, allocations: 10.12 kB / 0.4935 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.1298, allocations: 4 kB / 0.4935 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.1298, allocations: 4 kB / 0.4935 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003076/0.1302, allocations: 68.12 kB / 0.4936 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.1302, allocations: 7.984 kB / 0.4936 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.1304, allocations: 39.77 kB / 0.4936 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1305, allocations: 12 kB / 0.4937 GB, free: 6.875 MB / 382.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.0003421/0.1308, allocations: 208.8 kB / 0.4939 GB, free: 6.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002228/0.1311, allocations: 164.5 kB / 0.494 GB, free: 6.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001061/0.1321, allocations: 471 kB / 0.4945 GB, free: 5.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.943e-06/0.1321, allocations: 0 / 0.4945 GB, free: 5.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.0005263/0.1327, allocations: 337.3 kB / 0.4948 GB, free: 5.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.1327, allocations: 8 kB / 0.4948 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.1327, allocations: 0 / 0.4948 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.973e-06/0.1327, allocations: 4 kB / 0.4948 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.133, allocations: 56.14 kB / 0.4949 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.133, allocations: 11.98 kB / 0.4949 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.1332, allocations: 31.72 kB / 0.4949 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.1332, allocations: 16 kB / 0.4949 GB, free: 5.531 MB / 382.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.0001588/0.1334, allocations: 205.4 kB / 0.4951 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.113e-05/0.1335, allocations: 51.67 kB / 0.4952 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.1336, allocations: 56.67 kB / 0.4952 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1336, allocations: 4 kB / 0.4952 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1336, allocations: 4 kB / 0.4952 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1336, allocations: 3.984 kB / 0.4952 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005194/0.1341, allocations: 461.2 kB / 0.4957 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1341, allocations: 0 / 0.4957 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.1345, allocations: 55.91 kB / 0.4957 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1345, allocations: 3.984 kB / 0.4957 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.1345, allocations: 8 kB / 0.4957 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1345, allocations: 0 / 0.4957 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1345, allocations: 0 / 0.4957 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009267/0.1355, allocations: 0.5508 MB / 0.4963 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.1356, allocations: 140.8 kB / 0.4964 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.634e-05/0.1357, allocations: 15.98 kB / 0.4964 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.1359, allocations: 15.98 kB / 0.4964 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.136, allocations: 23.86 kB / 0.4965 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.136, allocations: 8 kB / 0.4965 GB, free: 3.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003067/0.1363, allocations: 283.1 kB / 0.4967 GB, free: 3.574 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1363, allocations: 0 / 0.4967 GB, free: 3.574 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00048/0.1368, allocations: 143.6 kB / 0.4969 GB, free: 3.434 MB / 382.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.00126/0.1381, allocations: 1.099 MB / 0.4979 GB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009332/0.139, allocations: 420.9 kB / 0.4983 GB, free: 1.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.139, allocations: 0 / 0.4983 GB, free: 1.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.1393, allocations: 131.9 kB / 0.4985 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.1401, allocations: 121.6 kB / 0.4986 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1949/0.335, allocations: 3.769 MB / 0.5023 GB, free: 20.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.3353, allocations: 0.8312 MB / 0.5031 GB, free: 20.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002532/0.3355, allocations: 45.83 kB / 0.5031 GB, free: 20.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.3357, allocations: 157.9 kB / 0.5033 GB, free: 20.17 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3357, allocations: 0 / 0.5033 GB, free: 20.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.3623, allocations: 8.984 MB / 0.512 GB, free: 19.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/8.4, allocations: 9.141 kB / 0.512 GB, free: 19.18 MB / 382.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)