Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",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.008092/0.008092, allocations: 102.6 kB / 15.73 MB, free: 5.902 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.001234/0.001234, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2313/0.2313, allocations: 22.35 MB / 312.9 MB, free: 12.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 66 kB / 436.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1153, allocations: 54.96 MB / 491.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004527/0.1198, allocations: 4.397 MB / 495.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.122, allocations: 1.267 MB / 497.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.1223, allocations: 11.94 kB / 497.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.1226, allocations: 170.6 kB / 497.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005916/0.1232, allocations: 421.5 kB / 497.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.1239, allocations: 319.5 kB / 498.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001857/0.1258, allocations: 2.15 MB / 0.4885 GB, free: 9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00166/0.1274, allocations: 1.59 MB / 0.4901 GB, free: 7.367 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008537/0.1283, allocations: 0.8223 MB / 0.4909 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.1294, allocations: 0.9776 MB / 0.4918 GB, free: 5.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002704/0.1297, allocations: 236 kB / 0.492 GB, free: 5.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.13, allocations: 236 kB / 0.4923 GB, free: 5.102 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005575/0.1305, allocations: 0.7015 MB / 0.493 GB, free: 4.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008229/0.1313, allocations: 0.9223 MB / 0.4939 GB, free: 3.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001912/0.1333, allocations: 2.599 MB / 0.4964 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1333, allocations: 4 kB / 0.4964 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1333, allocations: 0 / 0.4964 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.759e-05/0.1333, allocations: 0 / 0.4964 GB, free: 0.8633 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004046/0.1374, allocations: 2.008 MB / 0.4984 GB, free: 14.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1374, allocations: 8.031 kB / 0.4984 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.1377, allocations: 185.7 kB / 0.4985 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.1379, allocations: 143.2 kB / 0.4987 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.1394, allocations: 0.8681 MB / 0.4995 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.877e-05/0.1395, allocations: 116.6 kB / 0.4996 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.1397, allocations: 144.2 kB / 0.4998 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/0.1422, allocations: 1.593 MB / 0.5013 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.1422, allocations: 0 / 0.5013 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.1424, allocations: 52 kB / 0.5014 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.1424, allocations: 28 kB / 0.5014 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.1447, allocations: 1.415 MB / 0.5028 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/0.1556, allocations: 7.127 MB / 0.5098 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004752/0.1603, allocations: 1.894 MB / 0.5116 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/0.1615, allocations: 0.724 MB / 0.5123 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.153e-05/0.1616, allocations: 16.91 kB / 0.5123 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.1617, allocations: 44.12 kB / 0.5124 GB, free: 15.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 3.436e-06/0.1617, allocations: 0 / 0.5124 GB, free: 15.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007238/0.1689, allocations: 3.936 MB / 0.5162 GB, free: 11.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.169, allocations: 60.41 kB / 0.5163 GB, free: 11.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009583/0.17, allocations: 0.6916 MB / 0.5169 GB, free: 10.79 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.655e-05/0.1701, allocations: 41.7 kB / 0.517 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003427/0.1704, allocations: 0.4992 MB / 0.5175 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/0.1708, allocations: 410.2 kB / 0.5179 GB, free: 9.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004219/0.1712, allocations: 239.5 kB / 0.5181 GB, free: 9.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1714, allocations: 418.7 kB / 0.5185 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.1727, allocations: 0.8429 MB / 0.5193 GB, free: 8.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.1741, allocations: 1.004 MB / 0.5203 GB, free: 7.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01284/0.187, allocations: 4.443 MB / 0.5246 GB, free: 2.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.076e-06/0.187, allocations: 0 / 0.5246 GB, free: 2.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004624/0.1916, allocations: 2.468 MB / 0.527 GB, free: 224 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.1917, allocations: 8 kB / 0.5271 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1917, allocations: 7.984 kB / 0.5271 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.1935, allocations: 0.5434 MB / 0.5276 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.1953, allocations: 391.5 kB / 0.528 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01846/0.2137, allocations: 23.05 MB / 0.5505 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00198/0.2158, allocations: 134.8 kB / 0.5506 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00056/0.2164, allocations: 55.92 kB / 0.5506 GB, free: 5.832 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002042/0.2184, allocations: 426.1 kB / 0.5511 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006896/0.2191, allocations: 90.88 kB / 0.5511 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004411/0.2235, allocations: 1.979 MB / 0.5531 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.701e-05/0.2236, allocations: 12 kB / 0.5531 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.2236, allocations: 4 kB / 0.5531 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.2236, allocations: 3.984 kB / 0.5531 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007303/0.2309, allocations: 3.551 MB / 0.5566 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/0.231, allocations: 0 / 0.5566 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.2329, allocations: 335.6 kB / 0.5569 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001422/0.2344, allocations: 480.6 kB / 0.5573 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/0.2346, allocations: 63.97 kB / 0.5574 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/0.2508, allocations: 22.17 MB / 0.579 GB, free: 6.406 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2509, allocations: 0 / 0.579 GB, free: 6.406 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00552/0.2564, allocations: 2.738 MB / 0.5817 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004374/0.2569, allocations: 191.7 kB / 0.5819 GB, free: 3.375 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.2572, allocations: 63.97 kB / 0.582 GB, free: 3.312 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008643/0.258, allocations: 67.86 kB / 0.582 GB, free: 3.246 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.2583, allocations: 92.77 kB / 0.5821 GB, free: 3.156 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.982e-05/0.2584, allocations: 31.98 kB / 0.5821 GB, free: 3.125 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006417/0.2591, allocations: 483 kB / 0.5826 GB, free: 2.656 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2591, allocations: 0 / 0.5826 GB, free: 2.656 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001755/0.2608, allocations: 0.503 MB / 0.5831 GB, free: 2.152 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.wall.wall.T[5,3]) * 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 (89): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2791/0.5399, allocations: 3.34 MB / 0.5864 GB, free: 96.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004294/0.5443, allocations: 3.428 MB / 0.5897 GB, free: 94.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5443, allocations: 0 / 0.5897 GB, free: 94.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/0.5467, allocations: 2.454 MB / 0.5921 GB, free: 93.22 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.5481, allocations: 318.5 kB / 0.5924 GB, free: 93.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0251/0.5732, allocations: 15.45 MB / 0.6075 GB, free: 86.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007991/0.5741, allocations: 1.271 MB / 0.6087 GB, free: 85.55 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009638/0.5751, allocations: 358 kB / 0.6091 GB, free: 85.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005859/0.5757, allocations: 457.2 kB / 0.6095 GB, free: 85.18 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5757, allocations: 0 / 0.6095 GB, free: 85.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07533/0.651, allocations: 33.92 MB / 0.6426 GB, free: 54.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.52, allocations: 11.3 kB / 0.6427 GB, free: 54.93 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)