Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.001317/0.001317, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001577/0.001577, allocations: 177.3 kB / 15.95 MB, free: 208 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.358/1.358, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2165/0.2165, allocations: 22.33 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004167, allocations: 12 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3523, allocations: 55.98 MB / 437.9 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003252/0.3556, allocations: 3.633 MB / 441.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.3577, allocations: 1.315 MB / 442.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.3581, allocations: 16.31 kB / 442.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.3583, allocations: 128.1 kB / 443 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004648/0.3588, allocations: 289.2 kB / 443.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006186/0.3594, allocations: 200.5 kB / 443.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.3606, allocations: 1.13 MB / 444.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.3617, allocations: 1.123 MB / 445.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006202/0.3624, allocations: 0.5855 MB / 446.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007025/0.3631, allocations: 0.6604 MB / 447 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.3632, allocations: 95.09 kB / 447.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.3634, allocations: 89.69 kB / 447.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003268/0.3637, allocations: 485.2 kB / 447.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.364, allocations: 311.3 kB / 447.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.3652, allocations: 2.026 MB / 450 MB, free: 32.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3652, allocations: 0 / 450 MB, free: 32.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3652, allocations: 0 / 450 MB, free: 32.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.136e-05/0.3652, allocations: 3.938 kB / 450 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003393/0.3686, allocations: 1.786 MB / 451.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3687, allocations: 11.88 kB / 451.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002407/0.3689, allocations: 185 kB / 451.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.3692, allocations: 147.8 kB / 452.1 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001232/0.3704, allocations: 0.8457 MB / 452.9 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.433e-05/0.3705, allocations: 123.8 kB / 453 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/0.3708, allocations: 129.8 kB / 453.2 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.3731, allocations: 1.566 MB / 454.7 MB, free: 30.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.3731, allocations: 0 / 454.7 MB, free: 30.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.3733, allocations: 48.12 kB / 454.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.3733, allocations: 29.91 kB / 454.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/0.3755, allocations: 1.407 MB / 456.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/0.3878, allocations: 7.176 MB / 463.4 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.3929, allocations: 1.867 MB / 465.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.408e-05/0.393, allocations: 19.17 kB / 465.3 MB, free: 24.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.393, allocations: 44.06 kB / 465.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.885e-06/0.393, allocations: 1.219 kB / 465.3 MB, free: 24.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006689/0.3997, allocations: 3.989 MB / 469.3 MB, free: 22.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.3998, allocations: 64.31 kB / 469.4 MB, free: 22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009528/0.4007, allocations: 0.6687 MB / 470 MB, free: 21.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.943e-05/0.4008, allocations: 44.17 kB / 470.1 MB, free: 21.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/0.4012, allocations: 0.5199 MB / 470.6 MB, free: 21.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.4015, allocations: 415 kB / 471 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.492e-05/0.4016, allocations: 25.88 kB / 471 MB, free: 20.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4018, allocations: 422.9 kB / 471.5 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.403, allocations: 0.8366 MB / 472.3 MB, free: 20.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.4044, allocations: 0.9953 MB / 473.3 MB, free: 19.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.4058, allocations: 0.9541 MB / 474.2 MB, free: 19.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.4059, allocations: 2.281 kB / 474.2 MB, free: 19.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004476/0.4103, allocations: 2.47 MB / 476.7 MB, free: 18.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.4104, allocations: 12.3 kB / 476.7 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.4104, allocations: 9 kB / 476.7 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/0.4122, allocations: 0.5477 MB / 477.3 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.4141, allocations: 403.3 kB / 477.7 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/0.4274, allocations: 21.59 MB / 499.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.4293, allocations: 164.9 kB / 499.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/0.4295, allocations: 52.33 kB / 499.5 MB, free: 12.32 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = 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 (160): * Single equations (assignments): 145 * 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.001192/0.4307, allocations: 429.9 kB / 499.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.4311, allocations: 92.75 kB / 500 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003825/0.4349, allocations: 1.987 MB / 0.4902 GB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.435, allocations: 15.95 kB / 0.4902 GB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.435, allocations: 8 kB / 0.4902 GB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.435, allocations: 3.984 kB / 0.4902 GB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007376/0.4424, allocations: 3.704 MB / 0.4939 GB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.4425, allocations: 4 kB / 0.4939 GB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002026/0.4445, allocations: 343.6 kB / 0.4942 GB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/0.446, allocations: 480.7 kB / 0.4946 GB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002117/0.4463, allocations: 71.95 kB / 0.4947 GB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01673/0.463, allocations: 20.72 MB / 0.5149 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4631, allocations: 7.938 kB / 0.515 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005035/0.4681, allocations: 2.818 MB / 0.5177 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.4686, allocations: 191.8 kB / 0.5179 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.4688, allocations: 59.98 kB / 0.5179 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007922/0.4696, allocations: 71.77 kB / 0.518 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/0.4699, allocations: 100.8 kB / 0.5181 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.78e-05/0.47, allocations: 35.98 kB / 0.5181 GB, free: 10.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006347/0.4706, allocations: 471 kB / 0.5186 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4706, allocations: 0 / 0.5186 GB, free: 10.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001739/0.4724, allocations: 0.5107 MB / 0.5191 GB, free: 9.988 MB / 398.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 (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.004955/0.4773, allocations: 3.992 MB / 0.523 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004645/0.482, allocations: 3.425 MB / 0.5263 GB, free: 2.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.482, allocations: 0 / 0.5263 GB, free: 2.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.4847, allocations: 2.46 MB / 0.5287 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4858, allocations: 298.8 kB / 0.529 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.4995, allocations: 10.77 MB / 0.5395 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.5007, allocations: 1.301 MB / 0.5408 GB, free: 3.047 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001298/0.502, allocations: 367.8 kB / 0.5412 GB, free: 2.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006968/0.5027, allocations: 467.3 kB / 0.5416 GB, free: 2.227 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5027, allocations: 0 / 0.5416 GB, free: 2.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/0.6218, allocations: 31.48 MB / 0.5723 GB, free: 3.148 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.622, allocations: 215 kB / 0.5726 GB, free: 2.906 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.175, allocations: 3.938 kB / 0.5726 GB, free: 2.902 MB / 446.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1) Environment - environmentSimulation: