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.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001331/0.001331, allocations: 192.8 kB / 16.13 MB, free: 6.66 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.197/1.197, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1667/0.1667, allocations: 22.36 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 59.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.214, allocations: 54.95 MB / 435.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003611/0.2176, allocations: 4.57 MB / 439.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.219, allocations: 1.278 MB / 441 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.2192, allocations: 15.97 kB / 441 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002271/0.2195, allocations: 129.5 kB / 441.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004489/0.2199, allocations: 416.1 kB / 441.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.2204, allocations: 278.9 kB / 441.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.2217, allocations: 2.64 MB / 444.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009602/0.2227, allocations: 1.337 MB / 445.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005143/0.2232, allocations: 0.6769 MB / 446.5 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008052/0.224, allocations: 0.9791 MB / 447.5 MB, free: 32.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.2242, allocations: 116.6 kB / 447.6 MB, free: 32.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.2244, allocations: 118.5 kB / 447.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003366/0.2248, allocations: 0.5802 MB / 448.3 MB, free: 32.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005621/0.2253, allocations: 0.8036 MB / 449.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.2265, allocations: 2.486 MB / 451.6 MB, free: 31.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.2265, allocations: 0 / 451.6 MB, free: 31.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.9e-07/0.2266, allocations: 0 / 451.6 MB, free: 31.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.2266, allocations: 0 / 451.6 MB, free: 31.03 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003289/0.2299, allocations: 2.021 MB / 453.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2299, allocations: 13.91 kB / 453.6 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001821/0.2301, allocations: 189.5 kB / 453.8 MB, free: 29.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.2303, allocations: 146.1 kB / 453.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009834/0.2313, allocations: 0.8609 MB / 454.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.781e-05/0.2314, allocations: 117.2 kB / 454.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.2316, allocations: 143.4 kB / 455 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.234, allocations: 1.585 MB / 456.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.234, allocations: 0 / 456.6 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.2341, allocations: 50.03 kB / 456.7 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.2342, allocations: 28.22 kB / 456.7 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.2362, allocations: 1.429 MB / 458.1 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00796/0.2442, allocations: 7.149 MB / 465.3 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004349/0.2485, allocations: 1.88 MB / 467.2 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009416/0.2495, allocations: 0.7264 MB / 467.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.165e-05/0.2496, allocations: 14.77 kB / 467.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.2496, allocations: 49.25 kB / 468 MB, free: 22.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.415e-06/0.2496, allocations: 0 / 468 MB, free: 22.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.005872/0.2555, allocations: 3.93 MB / 471.9 MB, free: 19.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.2555, allocations: 63.86 kB / 471.9 MB, free: 19.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007572/0.2563, allocations: 0.6915 MB / 472.6 MB, free: 19.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.458e-05/0.2564, allocations: 45.95 kB / 472.7 MB, free: 19.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.2566, allocations: 0.5057 MB / 473.2 MB, free: 18.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.2569, allocations: 410.6 kB / 473.6 MB, free: 18.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/0.2573, allocations: 234 kB / 473.8 MB, free: 18.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2574, allocations: 416.5 kB / 474.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.2585, allocations: 0.8406 MB / 475.1 MB, free: 17.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.2597, allocations: 1.006 MB / 476.1 MB, free: 17.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.271, allocations: 4.45 MB / 480.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.271, allocations: 1.25 kB / 480.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00342/0.2745, allocations: 2.469 MB / 483 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2745, allocations: 8 kB / 483 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.2745, allocations: 4 kB / 483 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.2759, allocations: 0.5395 MB / 483.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.2774, allocations: 391.5 kB / 483.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.2885, allocations: 21.43 MB / 0.4935 GB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009709/0.2895, allocations: 150.9 kB / 0.4936 GB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.2896, allocations: 51.98 kB / 0.4937 GB, free: 4.281 MB / 366.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.000643/0.2903, allocations: 420 kB / 0.4941 GB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.2904, allocations: 98.86 kB / 0.4942 GB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003211/0.2937, allocations: 1.979 MB / 0.4961 GB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.2937, allocations: 12.09 kB / 0.4961 GB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2937, allocations: 7.938 kB / 0.4961 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2937, allocations: 7.969 kB / 0.4962 GB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.2984, allocations: 3.558 MB / 0.4996 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2985, allocations: 0 / 0.4996 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/0.3002, allocations: 335.6 kB / 0.4999 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.3014, allocations: 484.7 kB / 0.5004 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.3016, allocations: 63.97 kB / 0.5005 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.3131, allocations: 20.57 MB / 0.5206 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3132, allocations: 4.031 kB / 0.5206 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003998/0.3172, allocations: 2.729 MB / 0.5232 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.3174, allocations: 199.8 kB / 0.5234 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.3176, allocations: 59.98 kB / 0.5235 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007091/0.3183, allocations: 83.7 kB / 0.5236 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.3185, allocations: 96.75 kB / 0.5236 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.9e-05/0.3186, allocations: 31.98 kB / 0.5237 GB, free: 3.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005055/0.3191, allocations: 479 kB / 0.5241 GB, free: 2.758 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3191, allocations: 0 / 0.5241 GB, free: 2.758 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001271/0.3204, allocations: 0.5029 MB / 0.5246 GB, free: 2.254 MB / 398.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.004251/0.3247, allocations: 3.351 MB / 0.5279 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00362/0.3283, allocations: 3.418 MB / 0.5312 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3283, allocations: 0 / 0.5312 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.3305, allocations: 2.459 MB / 0.5336 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.3316, allocations: 307.3 kB / 0.5339 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02196/0.3536, allocations: 16.44 MB / 0.55 GB, free: 7.297 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007693/0.3544, allocations: 1.264 MB / 0.5512 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000872/0.3552, allocations: 355.6 kB / 0.5516 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/0.3559, allocations: 455.3 kB / 0.552 GB, free: 5.203 MB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3559, allocations: 0 / 0.552 GB, free: 5.203 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.856/6.212, allocations: 32.9 MB / 0.5841 GB, free: 4.641 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002903/6.212, allocations: 212.9 kB / 0.5843 GB, free: 4.391 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.503/8.716, allocations: 5.734 kB / 0.5843 GB, free: 4.391 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)