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.0009998/0.0009997, allocations: 100.4 kB / 15.05 MB, free: 1.105 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.0009218/0.0009217, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2393/0.2393, allocations: 22.33 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 11.98 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3343, allocations: 55.97 MB / 437.9 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003249/0.3376, allocations: 3.602 MB / 441.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3394, allocations: 1.297 MB / 442.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.3397, allocations: 12.25 kB / 442.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.3399, allocations: 135 kB / 442.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.3403, allocations: 286.5 kB / 443.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.3409, allocations: 197.2 kB / 443.4 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.342, allocations: 1.124 MB / 444.5 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.3432, allocations: 1.104 MB / 445.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006048/0.3438, allocations: 0.5645 MB / 446.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007554/0.3445, allocations: 0.6585 MB / 446.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.3447, allocations: 96.97 kB / 447 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.345, allocations: 93.25 kB / 447 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003591/0.3453, allocations: 490.1 kB / 447.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002833/0.3456, allocations: 308.3 kB / 447.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.3471, allocations: 2.053 MB / 449.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3471, allocations: 0 / 449.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3471, allocations: 3.938 kB / 449.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.643e-05/0.3471, allocations: 0 / 449.9 MB, free: 32.87 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.003694/0.3508, allocations: 1.792 MB / 451.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.3509, allocations: 8.75 kB / 451.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002493/0.3511, allocations: 186.2 kB / 451.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.3514, allocations: 145.7 kB / 452 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.3527, allocations: 0.8392 MB / 452.8 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.587e-05/0.3528, allocations: 114.3 kB / 453 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.3531, allocations: 140.5 kB / 453.1 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.3557, allocations: 1.569 MB / 454.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.3557, allocations: 0 / 454.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.3559, allocations: 52.19 kB / 454.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.3559, allocations: 31.84 kB / 454.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002171/0.3581, allocations: 1.411 MB / 456.2 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.3686, allocations: 7.198 MB / 463.4 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004931/0.3736, allocations: 1.88 MB / 465.2 MB, free: 24.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-05/0.3737, allocations: 15.05 kB / 465.3 MB, free: 24.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.3737, allocations: 48.5 kB / 465.3 MB, free: 24.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.156e-06/0.3738, allocations: 0 / 465.3 MB, free: 24.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007023/0.3808, allocations: 3.999 MB / 469.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3808, allocations: 62.66 kB / 469.4 MB, free: 21.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3819, allocations: 0.6745 MB / 470 MB, free: 21.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-05/0.382, allocations: 42.2 kB / 470.1 MB, free: 21.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/0.3823, allocations: 0.5103 MB / 470.6 MB, free: 21.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003239/0.3826, allocations: 410.9 kB / 471 MB, free: 20.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.16e-05/0.3827, allocations: 31.12 kB / 471 MB, free: 20.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3828, allocations: 421.3 kB / 471.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.3841, allocations: 0.8339 MB / 472.3 MB, free: 20.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.3857, allocations: 0.9962 MB / 473.3 MB, free: 19.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.3872, allocations: 0.9563 MB / 474.2 MB, free: 19.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-06/0.3872, allocations: 2.625 kB / 474.2 MB, free: 19.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00439/0.3916, allocations: 2.466 MB / 476.7 MB, free: 18.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.3916, allocations: 13.81 kB / 476.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.3917, allocations: 5.469 kB / 476.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.3935, allocations: 0.5473 MB / 477.3 MB, free: 17.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.3953, allocations: 398.8 kB / 477.6 MB, free: 17.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.4078, allocations: 21.6 MB / 499.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.4094, allocations: 160.7 kB / 499.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.4096, allocations: 47.91 kB / 499.4 MB, free: 12.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008872/0.4105, allocations: 416.4 kB / 499.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.4107, allocations: 92.5 kB / 499.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.4142, allocations: 1.979 MB / 0.4902 GB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.4142, allocations: 19.95 kB / 0.4902 GB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.4142, allocations: 4 kB / 0.4902 GB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/0.4142, allocations: 7.969 kB / 0.4902 GB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005302/0.4195, allocations: 3.547 MB / 0.4937 GB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.4196, allocations: 4 kB / 0.4937 GB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/0.4215, allocations: 339.9 kB / 0.494 GB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.4228, allocations: 476.5 kB / 0.4944 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.423, allocations: 67.92 kB / 0.4945 GB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.4363, allocations: 20.74 MB / 0.5147 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4363, allocations: 8.062 kB / 0.5148 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/0.4413, allocations: 2.82 MB / 0.5175 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003867/0.4417, allocations: 199.6 kB / 0.5177 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/0.4419, allocations: 59.98 kB / 0.5178 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007953/0.4427, allocations: 75.77 kB / 0.5178 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003078/0.443, allocations: 100.8 kB / 0.5179 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.4431, allocations: 27.98 kB / 0.518 GB, free: 11.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006666/0.4438, allocations: 479 kB / 0.5184 GB, free: 10.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4438, allocations: 0 / 0.5184 GB, free: 10.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002001/0.4458, allocations: 0.5029 MB / 0.5189 GB, free: 10.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004767/0.4506, allocations: 4.001 MB / 0.5228 GB, free: 5.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004838/0.4555, allocations: 3.418 MB / 0.5261 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.4555, allocations: 0 / 0.5261 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003038/0.4586, allocations: 2.467 MB / 0.5286 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.4601, allocations: 289.6 kB / 0.5288 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.4763, allocations: 10.72 MB / 0.5393 GB, free: 4.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.4778, allocations: 1.287 MB / 0.5406 GB, free: 3.203 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001863/0.4796, allocations: 359.6 kB / 0.5409 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/0.4807, allocations: 455.3 kB / 0.5413 GB, free: 2.402 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4808, allocations: 0 / 0.5413 GB, free: 2.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9073/1.388, allocations: 31.28 MB / 0.5719 GB, free: 3.504 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002827/1.388, allocations: 206.5 kB / 0.5721 GB, free: 3.258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.052/4.44, allocations: 0 / 0.5721 GB, free: 3.258 MB / 446.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/linux/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) Environment - environmentSimulation: