Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",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.005989/0.005989, allocations: 100.5 kB / 15.73 MB, free: 6.453 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.001321/0.001321, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.267/0.267, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 71.81 kB / 436.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1364, allocations: 54.96 MB / 491.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.006039/0.1425, allocations: 4.419 MB / 496 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0028/0.1453, allocations: 1.267 MB / 497.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007635/0.1461, allocations: 19.88 kB / 497.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.1467, allocations: 162.6 kB / 497.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.1477, allocations: 437.5 kB / 497.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1488, allocations: 311.5 kB / 498.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002674/0.1515, allocations: 2.177 MB / 0.4886 GB, free: 8.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002418/0.1539, allocations: 1.598 MB / 0.4901 GB, free: 7.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00135/0.1553, allocations: 0.8301 MB / 0.491 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.1569, allocations: 0.9815 MB / 0.4919 GB, free: 5.473 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005007/0.1574, allocations: 232 kB / 0.4921 GB, free: 5.246 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006057/0.1581, allocations: 228 kB / 0.4924 GB, free: 5.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007515/0.1588, allocations: 0.6859 MB / 0.493 GB, free: 4.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.1603, allocations: 0.93 MB / 0.4939 GB, free: 3.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002453/0.1628, allocations: 2.564 MB / 0.4964 GB, free: 0.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.1628, allocations: 4 kB / 0.4964 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1628, allocations: 4 kB / 0.4964 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.758e-05/0.1628, allocations: 0 / 0.4964 GB, free: 0.8242 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004555/0.1674, allocations: 2.012 MB / 0.4984 GB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1675, allocations: 8.031 kB / 0.4984 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002254/0.1677, allocations: 185.7 kB / 0.4986 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002615/0.168, allocations: 147.2 kB / 0.4987 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.1695, allocations: 0.8757 MB / 0.4996 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.1696, allocations: 116.6 kB / 0.4997 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002562/0.1699, allocations: 136.3 kB / 0.4998 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.1723, allocations: 1.589 MB / 0.5014 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.1724, allocations: 0 / 0.5014 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.1725, allocations: 44 kB / 0.5014 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.1725, allocations: 28 kB / 0.5014 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.1749, allocations: 1.407 MB / 0.5028 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01101/0.1859, allocations: 7.103 MB / 0.5098 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005019/0.1909, allocations: 1.882 MB / 0.5116 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.1922, allocations: 0.7384 MB / 0.5123 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.1923, allocations: 12.91 kB / 0.5123 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.325e-05/0.1924, allocations: 43.56 kB / 0.5124 GB, free: 15.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 4.318e-06/0.1924, allocations: 0 / 0.5124 GB, free: 15.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.008482/0.2009, allocations: 3.928 MB / 0.5162 GB, free: 11.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.201, allocations: 68.34 kB / 0.5163 GB, free: 11.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.2025, allocations: 0.6761 MB / 0.5169 GB, free: 10.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002418/0.2027, allocations: 41.7 kB / 0.517 GB, free: 10.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005089/0.2032, allocations: 0.5109 MB / 0.5175 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007217/0.204, allocations: 418.1 kB / 0.5179 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005946/0.2046, allocations: 239.5 kB / 0.5181 GB, free: 9.586 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.2048, allocations: 410.7 kB / 0.5185 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.2062, allocations: 0.8507 MB / 0.5193 GB, free: 8.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.2077, allocations: 1.001 MB / 0.5203 GB, free: 7.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01411/0.2218, allocations: 4.459 MB / 0.5247 GB, free: 2.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.2219, allocations: 0 / 0.5247 GB, free: 2.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005146/0.227, allocations: 2.472 MB / 0.5271 GB, free: 200 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.2271, allocations: 4 kB / 0.5271 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.2271, allocations: 8 kB / 0.5271 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.229, allocations: 0.5317 MB / 0.5276 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00189/0.2309, allocations: 403.5 kB / 0.528 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01765/0.2486, allocations: 23.04 MB / 0.5505 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.2501, allocations: 142.6 kB / 0.5506 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/0.2504, allocations: 59.92 kB / 0.5507 GB, free: 5.805 MB / 430.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.001237/0.2517, allocations: 445.8 kB / 0.5511 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003828/0.252, allocations: 90.97 kB / 0.5512 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.2563, allocations: 1.987 MB / 0.5531 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.2563, allocations: 8 kB / 0.5531 GB, free: 3.219 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.2563, allocations: 11.94 kB / 0.5531 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2564, allocations: 3.984 kB / 0.5531 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006683/0.2631, allocations: 3.709 MB / 0.5568 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/0.2631, allocations: 4 kB / 0.5568 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/0.2651, allocations: 347.9 kB / 0.5571 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/0.2665, allocations: 480.5 kB / 0.5576 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001999/0.2667, allocations: 67.97 kB / 0.5576 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/0.2827, allocations: 22.15 MB / 0.5793 GB, free: 6.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.2828, allocations: 11.94 kB / 0.5793 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005523/0.2883, allocations: 2.728 MB / 0.5819 GB, free: 3.355 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.2888, allocations: 191.7 kB / 0.5821 GB, free: 3.148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003491/0.2892, allocations: 63.97 kB / 0.5822 GB, free: 3.086 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009828/0.2902, allocations: 59.88 kB / 0.5822 GB, free: 3.027 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/0.2907, allocations: 96.75 kB / 0.5823 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.2908, allocations: 31.98 kB / 0.5824 GB, free: 2.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009144/0.2917, allocations: 487 kB / 0.5828 GB, free: 2.426 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2917, allocations: 0 / 0.5828 GB, free: 2.426 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002227/0.294, allocations: 0.4951 MB / 0.5833 GB, free: 1.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.2872/0.5812, allocations: 3.337 MB / 0.5866 GB, free: 96.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004055/0.5853, allocations: 3.426 MB / 0.5899 GB, free: 94.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.5853, allocations: 2.906 kB / 0.5899 GB, free: 94.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002354/0.5877, allocations: 2.459 MB / 0.5923 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.5891, allocations: 307.9 kB / 0.5926 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/0.6127, allocations: 15.47 MB / 0.6077 GB, free: 86.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008341/0.6136, allocations: 1.27 MB / 0.609 GB, free: 85.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.6147, allocations: 366.6 kB / 0.6093 GB, free: 85.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006111/0.6153, allocations: 470.6 kB / 0.6098 GB, free: 85.07 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6153, allocations: 0 / 0.6098 GB, free: 85.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07334/0.6886, allocations: 34.11 MB / 0.6431 GB, free: 54.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.71, allocations: 7.734 kB / 0.6431 GB, free: 54.43 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)