Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",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.001001/0.001001, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001001/0.001001, allocations: 191 kB / 16.25 MB, free: 6.637 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.173/1.173, allocations: 222.9 MB / 239.9 MB, free: 4.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1672/0.1672, allocations: 22.37 MB / 312.5 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 67.84 kB / 380.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.211, allocations: 54.93 MB / 435.4 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002997/0.214, allocations: 3.495 MB / 438.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009988/0.215, allocations: 0.9578 MB / 439.8 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.2151, allocations: 9.594 kB / 439.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2153, allocations: 75.91 kB / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.2156, allocations: 233.9 kB / 440.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.216, allocations: 165 kB / 440.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.2166, allocations: 1.232 MB / 441.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005872/0.2172, allocations: 0.8717 MB / 442.4 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.2175, allocations: 484.2 kB / 442.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004344/0.2179, allocations: 0.6068 MB / 443.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.2181, allocations: 136.8 kB / 443.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.2182, allocations: 134.7 kB / 443.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.2184, allocations: 400.1 kB / 444.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.2187, allocations: 0.5308 MB / 444.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006836/0.2194, allocations: 1.452 MB / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2194, allocations: 0 / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2194, allocations: 0 / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.2194, allocations: 0 / 446.1 MB, free: 33.62 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.001926/0.2213, allocations: 1.291 MB / 447.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.2214, allocations: 9.469 kB / 447.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.2215, allocations: 119.1 kB / 447.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.2216, allocations: 89.12 kB / 447.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005405/0.2222, allocations: 0.5627 MB / 448.2 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.073e-05/0.2222, allocations: 84.78 kB / 448.3 MB, free: 32.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2224, allocations: 89.16 kB / 448.3 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.2235, allocations: 0.924 MB / 449.3 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2236, allocations: 2.625 kB / 449.3 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/0.2236, allocations: 29.25 kB / 449.3 MB, free: 31.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2237, allocations: 16.06 kB / 449.3 MB, free: 31.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009722/0.2246, allocations: 0.8077 MB / 450.1 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003959/0.2286, allocations: 3.974 MB / 454.1 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.231, allocations: 1.034 MB / 455.1 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.2315, allocations: 415.7 kB / 455.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.2315, allocations: 5.625 kB / 455.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.2316, allocations: 40.88 kB / 455.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.533e-06/0.2316, allocations: 0 / 455.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003311/0.2349, allocations: 2.356 MB / 457.9 MB, free: 26.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.996e-05/0.2349, allocations: 62.16 kB / 458 MB, free: 26.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.2353, allocations: 413.8 kB / 458.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.2353, allocations: 36.14 kB / 458.4 MB, free: 26.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2355, allocations: 330.7 kB / 458.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.2356, allocations: 235 kB / 459 MB, free: 26.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.2358, allocations: 120.4 kB / 459.1 MB, free: 25.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.2359, allocations: 369 kB / 459.5 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.2364, allocations: 449.7 kB / 459.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005816/0.237, allocations: 0.4963 MB / 460.4 MB, free: 25.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006263/0.2433, allocations: 2.365 MB / 462.8 MB, free: 24.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2433, allocations: 0 / 462.8 MB, free: 24.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002022/0.2453, allocations: 1.345 MB / 464.1 MB, free: 23.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.2453, allocations: 9.719 kB / 464.1 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.2454, allocations: 1.969 kB / 464.1 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009195/0.2463, allocations: 344.5 kB / 464.5 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.2471, allocations: 182.1 kB / 464.6 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006838/0.2539, allocations: 15.15 MB / 479.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/0.2544, allocations: 80.83 kB / 479.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.392e-05/0.2545, allocations: 23.81 kB / 479.9 MB, free: 8.758 MB / 350.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000364/0.2548, allocations: 287.2 kB / 480.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2549, allocations: 56.89 kB / 480.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.2567, allocations: 1.139 MB / 481.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.2567, allocations: 5.562 kB / 481.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2567, allocations: 3.281 kB / 481.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.2567, allocations: 3.703 kB / 481.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.2596, allocations: 2.119 MB / 483.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2597, allocations: 1.891 kB / 483.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009364/0.2606, allocations: 166.6 kB / 483.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007111/0.2613, allocations: 314.5 kB / 484 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.279e-05/0.2614, allocations: 36.09 kB / 484 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007864/0.2693, allocations: 14.72 MB / 498.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2693, allocations: 0.9062 kB / 498.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.2718, allocations: 1.591 MB / 0.4886 GB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.272, allocations: 145.6 kB / 0.4887 GB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.2721, allocations: 38.67 kB / 0.4888 GB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.2725, allocations: 36.7 kB / 0.4888 GB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2727, allocations: 57.45 kB / 0.4889 GB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.2727, allocations: 23.05 kB / 0.4889 GB, free: 7.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.2731, allocations: 295.2 kB / 0.4892 GB, free: 6.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2731, allocations: 0 / 0.4892 GB, free: 6.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009158/0.274, allocations: 294.8 kB / 0.4894 GB, free: 6.898 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002712/0.2767, allocations: 2.181 MB / 0.4916 GB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.2794, allocations: 2.211 MB / 0.4937 GB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2794, allocations: 320 / 0.4937 GB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.281, allocations: 1.553 MB / 0.4952 GB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.2817, allocations: 167.5 kB / 0.4954 GB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.2943, allocations: 9.262 MB / 0.5044 GB, free: 8.492 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.2949, allocations: 1.005 MB / 0.5054 GB, free: 7.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004561/0.2954, allocations: 168.6 kB / 0.5056 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.2958, allocations: 251.4 kB / 0.5058 GB, free: 7.047 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2958, allocations: 0 / 0.5058 GB, free: 7.047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04998/0.3457, allocations: 19.4 MB / 0.5248 GB, free: 3.953 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.346, allocations: 234.6 kB / 0.525 GB, free: 3.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.004/2.35, allocations: 7.938 kB / 0.525 GB, free: 3.688 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)