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.008594/0.008594, allocations: 102 kB / 15.73 MB, free: 6.039 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.001194/0.001194, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1119/0.1119, allocations: 22.33 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 60.09 kB / 436.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1112, allocations: 54.95 MB / 491.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.006188/0.1174, allocations: 4.427 MB / 495.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.1212, allocations: 1.267 MB / 497.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.1224, allocations: 15.88 kB / 497.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000723/0.1232, allocations: 162.6 kB / 497.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001438/0.1247, allocations: 437.4 kB / 497.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.1259, allocations: 315.5 kB / 498.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003046/0.1289, allocations: 2.169 MB / 0.4885 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002377/0.1313, allocations: 1.606 MB / 0.4901 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.133, allocations: 0.8495 MB / 0.4909 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002058/0.1351, allocations: 0.9698 MB / 0.4919 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008377/0.1359, allocations: 232 kB / 0.4921 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009062/0.1369, allocations: 232 kB / 0.4923 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007636/0.1376, allocations: 0.6859 MB / 0.493 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001029/0.1387, allocations: 0.9183 MB / 0.4939 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002018/0.1407, allocations: 2.567 MB / 0.4964 GB, free: 4.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.1407, allocations: 0 / 0.4964 GB, free: 4.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1407, allocations: 4 kB / 0.4964 GB, free: 4.316 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.1408, allocations: 0 / 0.4964 GB, free: 4.316 MB / 382.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.004594/0.1454, allocations: 2.012 MB / 0.4984 GB, free: 2.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1454, allocations: 8.031 kB / 0.4984 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/0.1457, allocations: 185.7 kB / 0.4986 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.1459, allocations: 147.2 kB / 0.4987 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.1475, allocations: 0.868 MB / 0.4995 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.1476, allocations: 124.6 kB / 0.4997 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002887/0.1479, allocations: 140.2 kB / 0.4998 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2505/0.3984, allocations: 1.584 MB / 0.5013 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.3984, allocations: 1.531 kB / 0.5013 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.3986, allocations: 47.12 kB / 0.5014 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.3986, allocations: 27.97 kB / 0.5014 GB, free: 20.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002185/0.4008, allocations: 1.411 MB / 0.5028 GB, free: 20.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.4113, allocations: 7.078 MB / 0.5097 GB, free: 18.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005244/0.4166, allocations: 1.882 MB / 0.5115 GB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.4178, allocations: 0.7389 MB / 0.5123 GB, free: 18.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.477e-05/0.4179, allocations: 19.55 kB / 0.5123 GB, free: 18.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.418, allocations: 42.91 kB / 0.5123 GB, free: 18.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 3.246e-06/0.418, allocations: 0 / 0.5123 GB, free: 18.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.007382/0.4254, allocations: 3.932 MB / 0.5162 GB, free: 16.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.4254, allocations: 62.59 kB / 0.5162 GB, free: 16.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.4267, allocations: 0.675 MB / 0.5169 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.4268, allocations: 40.58 kB / 0.5169 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.4272, allocations: 0.5147 MB / 0.5174 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/0.4277, allocations: 417.5 kB / 0.5178 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006187/0.4283, allocations: 243.9 kB / 0.5181 GB, free: 15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.4286, allocations: 410.8 kB / 0.5184 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.4305, allocations: 0.8495 MB / 0.5193 GB, free: 14.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.4321, allocations: 0.9981 MB / 0.5202 GB, free: 13.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/0.4458, allocations: 4.464 MB / 0.5246 GB, free: 12.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/0.4458, allocations: 1.562 kB / 0.5246 GB, free: 12.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004709/0.4505, allocations: 2.462 MB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.4506, allocations: 7.438 kB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.4506, allocations: 5.156 kB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.4523, allocations: 0.5509 MB / 0.5276 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.4542, allocations: 396.9 kB / 0.5279 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/0.4697, allocations: 23.05 MB / 0.5505 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4711, allocations: 145.5 kB / 0.5506 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003462/0.4715, allocations: 56.77 kB / 0.5506 GB, free: 2.992 MB / 398.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.001241/0.4728, allocations: 420 kB / 0.551 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003348/0.4731, allocations: 99.45 kB / 0.5511 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003762/0.4769, allocations: 1.99 MB / 0.5531 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4769, allocations: 8 kB / 0.5531 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/0.4769, allocations: 4 kB / 0.5531 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.4769, allocations: 3.984 kB / 0.5531 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006662/0.4836, allocations: 3.712 MB / 0.5567 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4836, allocations: 0.5469 kB / 0.5567 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/0.4856, allocations: 347.6 kB / 0.5571 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/0.487, allocations: 476.6 kB / 0.5575 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.4872, allocations: 67.89 kB / 0.5576 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/0.5031, allocations: 22.16 MB / 0.5792 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5032, allocations: 7.703 kB / 0.5792 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006127/0.5093, allocations: 2.724 MB / 0.5819 GB, free: 1.555 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004677/0.5098, allocations: 195.7 kB / 0.5821 GB, free: 1.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003449/0.5102, allocations: 59.98 kB / 0.5821 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000942/0.5111, allocations: 59.86 kB / 0.5822 GB, free: 1.227 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.5115, allocations: 100.8 kB / 0.5823 GB, free: 1.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5116, allocations: 31.98 kB / 0.5823 GB, free: 1.094 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007396/0.5123, allocations: 471 kB / 0.5828 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5124, allocations: 4 kB / 0.5828 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002387/0.5147, allocations: 0.4991 MB / 0.5833 GB, free: 132 kB / 430.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.005102/0.5199, allocations: 3.343 MB / 0.5865 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004679/0.5246, allocations: 3.435 MB / 0.5899 GB, free: 9.062 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5246, allocations: 0 / 0.5899 GB, free: 9.062 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.5273, allocations: 2.463 MB / 0.5923 GB, free: 6.406 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/0.5288, allocations: 320.4 kB / 0.5926 GB, free: 6.102 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02569/0.5545, allocations: 15.46 MB / 0.6077 GB, free: 6.316 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.5557, allocations: 1.267 MB / 0.6089 GB, free: 5.023 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001119/0.5569, allocations: 363.8 kB / 0.6093 GB, free: 4.664 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007858/0.5577, allocations: 471.3 kB / 0.6097 GB, free: 4.207 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5577, allocations: 0 / 0.6097 GB, free: 4.207 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1178/0.6755, allocations: 35.19 MB / 0.6441 GB, free: 1.387 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.36, allocations: 12.3 kB / 0.6441 GB, free: 1.379 MB / 494.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)