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.0009357/0.0009356, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.007505/0.007505, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.333/1.333, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1911/0.1911, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.000291, allocations: 8 kB / 382.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.233, allocations: 55.99 MB / 438.7 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003201/0.2362, allocations: 4.157 MB / 442.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2378, allocations: 1.267 MB / 444.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.238, allocations: 12.25 kB / 444.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.2383, allocations: 130.6 kB / 444.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004983/0.2388, allocations: 417.2 kB / 444.7 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.2393, allocations: 273.9 kB / 444.9 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.2408, allocations: 2.636 MB / 447.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001044/0.2419, allocations: 1.279 MB / 448.8 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.2424, allocations: 0.6149 MB / 449.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008139/0.2432, allocations: 0.9147 MB / 450.4 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.2433, allocations: 91.12 kB / 450.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001889/0.2435, allocations: 92.28 kB / 450.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000318/0.2439, allocations: 0.5469 MB / 451.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000524/0.2444, allocations: 0.7773 MB / 451.9 MB, free: 32.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.2456, allocations: 2.417 MB / 454.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2456, allocations: 3.938 kB / 454.3 MB, free: 31.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2457, allocations: 0 / 454.3 MB, free: 31.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.2457, allocations: 0 / 454.3 MB, free: 31.66 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.003393/0.2491, allocations: 1.778 MB / 456.1 MB, free: 30.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2491, allocations: 13.66 kB / 456.1 MB, free: 30.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002304/0.2494, allocations: 187.6 kB / 456.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.2496, allocations: 147.5 kB / 456.4 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.2507, allocations: 0.8601 MB / 457.3 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-05/0.2508, allocations: 117.6 kB / 457.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.2511, allocations: 134.4 kB / 457.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.2536, allocations: 1.594 MB / 459.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.2536, allocations: 1.375 kB / 459.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.2538, allocations: 44.69 kB / 459.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.2538, allocations: 29.48 kB / 459.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/0.256, allocations: 1.422 MB / 460.6 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008905/0.2649, allocations: 7.204 MB / 467.8 MB, free: 24.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004719/0.2697, allocations: 1.891 MB / 469.7 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.2707, allocations: 0.7225 MB / 470.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.699e-05/0.2708, allocations: 15.17 kB / 470.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.2708, allocations: 49.09 kB / 470.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.975e-06/0.2708, allocations: 0 / 470.5 MB, free: 23.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006812/0.2776, allocations: 3.999 MB / 474.5 MB, free: 20.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.2777, allocations: 66.28 kB / 474.6 MB, free: 20.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008049/0.2785, allocations: 0.684 MB / 475.2 MB, free: 20.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.204e-05/0.2786, allocations: 45.83 kB / 475.3 MB, free: 20.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.2789, allocations: 0.5066 MB / 475.8 MB, free: 19.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003038/0.2792, allocations: 410.5 kB / 476.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.2794, allocations: 115.5 kB / 476.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2795, allocations: 412.9 kB / 476.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.2808, allocations: 0.8456 MB / 477.5 MB, free: 18.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001315/0.2821, allocations: 1.006 MB / 478.6 MB, free: 18.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01267/0.2947, allocations: 4.612 MB / 483.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.2948, allocations: 0 / 483.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003797/0.2986, allocations: 2.492 MB / 485.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.2986, allocations: 4 kB / 485.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2986, allocations: 8 kB / 485.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.3002, allocations: 0.5473 MB / 486.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.3019, allocations: 391.5 kB / 486.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.3146, allocations: 21.45 MB / 0.4961 GB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.3158, allocations: 158.8 kB / 0.4963 GB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.3159, allocations: 48 kB / 0.4963 GB, free: 4.242 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.000752/0.3166, allocations: 425.4 kB / 0.4967 GB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3168, allocations: 98.86 kB / 0.4968 GB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/0.3205, allocations: 1.983 MB / 0.4988 GB, free: 1.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3206, allocations: 8 kB / 0.4988 GB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.3206, allocations: 7.938 kB / 0.4988 GB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.3206, allocations: 7.969 kB / 0.4988 GB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005463/0.3261, allocations: 3.554 MB / 0.5023 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3261, allocations: 4 kB / 0.5023 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/0.3281, allocations: 335.6 kB / 0.5026 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.3294, allocations: 476.8 kB / 0.503 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.3296, allocations: 63.97 kB / 0.5031 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.3432, allocations: 20.59 MB / 0.5232 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3432, allocations: 4.031 kB / 0.5232 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/0.3478, allocations: 2.73 MB / 0.5259 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002411/0.348, allocations: 195.8 kB / 0.5261 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.3482, allocations: 59.97 kB / 0.5261 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008212/0.3491, allocations: 83.77 kB / 0.5262 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.3493, allocations: 92.75 kB / 0.5263 GB, free: 3.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.685e-05/0.3494, allocations: 35.98 kB / 0.5263 GB, free: 3.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005916/0.35, allocations: 479 kB / 0.5268 GB, free: 2.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.35, allocations: 0 / 0.5268 GB, free: 2.699 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00143/0.3514, allocations: 0.5029 MB / 0.5273 GB, free: 2.195 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.004866/0.3563, allocations: 3.357 MB / 0.5306 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.3605, allocations: 3.422 MB / 0.5339 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3605, allocations: 320 / 0.5339 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.3632, allocations: 2.475 MB / 0.5363 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.3646, allocations: 306.6 kB / 0.5366 GB, free: 8.164 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02537/0.39, allocations: 17.05 MB / 0.5533 GB, free: 6.602 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009443/0.3909, allocations: 1.266 MB / 0.5545 GB, free: 5.309 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001032/0.392, allocations: 359.6 kB / 0.5548 GB, free: 4.953 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007093/0.3927, allocations: 451.3 kB / 0.5553 GB, free: 4.512 MB / 430.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3927, allocations: 0 / 0.5553 GB, free: 4.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8185/1.211, allocations: 32.42 MB / 0.5869 GB, free: 4.453 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003108/1.212, allocations: 219 kB / 0.5871 GB, free: 4.199 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.991, allocations: 0 / 0.5871 GB, free: 4.199 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)