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.006559/0.006559, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.001506/0.001506, allocations: 194.1 kB / 16.67 MB, free: 5.926 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09667/0.09667, allocations: 22.33 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 436.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1042, allocations: 54.95 MB / 491.5 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004465/0.1087, allocations: 3.349 MB / 494.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.1103, allocations: 0.9275 MB / 495.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.1104, allocations: 7.938 kB / 495.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002322/0.1106, allocations: 99.14 kB / 495.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.1111, allocations: 262.4 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.1116, allocations: 183.7 kB / 496.3 MB, free: 412 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.1128, allocations: 1.229 MB / 497.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001022/0.1138, allocations: 0.898 MB / 498.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000523/0.1143, allocations: 482.8 kB / 498.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000713/0.1151, allocations: 0.5608 MB / 499.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001779/0.1153, allocations: 132 kB / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.1155, allocations: 132 kB / 499.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003728/0.1158, allocations: 403 kB / 0.4884 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005401/0.1164, allocations: 0.5331 MB / 0.4889 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.1178, allocations: 1.464 MB / 0.4904 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1178, allocations: 0 / 0.4904 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1178, allocations: 4 kB / 0.4904 GB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1178, allocations: 0 / 0.4904 GB, free: 10.56 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002612/0.1204, allocations: 1.305 MB / 0.4916 GB, free: 9.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1205, allocations: 8.031 kB / 0.4916 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001603/0.1206, allocations: 118.7 kB / 0.4918 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.1208, allocations: 96.38 kB / 0.4918 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.1217, allocations: 0.5701 MB / 0.4924 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.393e-05/0.1218, allocations: 76.27 kB / 0.4925 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1219, allocations: 88.33 kB / 0.4926 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.1235, allocations: 0.9248 MB / 0.4935 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.1235, allocations: 0 / 0.4935 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.33e-05/0.1236, allocations: 32 kB / 0.4935 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1236, allocations: 16 kB / 0.4935 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.125, allocations: 0.812 MB / 0.4943 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005799/0.1308, allocations: 3.959 MB / 0.4982 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.1335, allocations: 1.029 MB / 0.4992 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006394/0.1342, allocations: 410.4 kB / 0.4996 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.1342, allocations: 8.562 kB / 0.4996 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.1343, allocations: 39.12 kB / 0.4996 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.324e-06/0.1343, allocations: 0 / 0.4996 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.1967/0.331, allocations: 2.364 MB / 0.5019 GB, free: 20.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.3311, allocations: 59.47 kB / 0.502 GB, free: 20.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.3315, allocations: 418.7 kB / 0.5024 GB, free: 20.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.554e-05/0.3316, allocations: 35.52 kB / 0.5024 GB, free: 20.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.3317, allocations: 335.1 kB / 0.5027 GB, free: 20.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.3319, allocations: 239.6 kB / 0.503 GB, free: 20.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.3321, allocations: 126 kB / 0.5031 GB, free: 20.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.3322, allocations: 365.5 kB / 0.5034 GB, free: 20.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000582/0.3328, allocations: 455.3 kB / 0.5039 GB, free: 20.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005876/0.3334, allocations: 0.4924 MB / 0.5043 GB, free: 20.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006621/0.34, allocations: 2.356 MB / 0.5066 GB, free: 20.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.34, allocations: 0.75 kB / 0.5066 GB, free: 20.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002344/0.3424, allocations: 1.341 MB / 0.508 GB, free: 19.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.3424, allocations: 6.812 kB / 0.508 GB, free: 19.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3424, allocations: 4.562 kB / 0.508 GB, free: 19.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.3435, allocations: 343.3 kB / 0.5083 GB, free: 19.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008383/0.3444, allocations: 190 kB / 0.5085 GB, free: 19.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008231/0.3526, allocations: 15.16 MB / 0.5233 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006131/0.3532, allocations: 71.86 kB / 0.5233 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.721e-05/0.3533, allocations: 24.69 kB / 0.5234 GB, free: 6.09 MB / 382.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.0004745/0.3538, allocations: 282.7 kB / 0.5236 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3539, allocations: 60.19 kB / 0.5237 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/0.3561, allocations: 1.137 MB / 0.5248 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3561, allocations: 5.75 kB / 0.5248 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.3561, allocations: 3 kB / 0.5248 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3561, allocations: 3.469 kB / 0.5248 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.3595, allocations: 2.127 MB / 0.5269 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3595, allocations: 1.219 kB / 0.5269 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009639/0.3605, allocations: 166.7 kB / 0.5271 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008807/0.3614, allocations: 308.3 kB / 0.5273 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.3615, allocations: 35.8 kB / 0.5274 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.3727, allocations: 14.72 MB / 0.5418 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3727, allocations: 1.094 kB / 0.5418 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.3758, allocations: 1.603 MB / 0.5433 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002261/0.376, allocations: 147.6 kB / 0.5435 GB, free: 5.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.3762, allocations: 32.67 kB / 0.5435 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000444/0.3766, allocations: 31.97 kB / 0.5435 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.3768, allocations: 52.06 kB / 0.5436 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.3768, allocations: 21.08 kB / 0.5436 GB, free: 5.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003917/0.3772, allocations: 291.7 kB / 0.5439 GB, free: 5.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3772, allocations: 0 / 0.5439 GB, free: 5.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001012/0.3783, allocations: 297.7 kB / 0.5442 GB, free: 5.297 MB / 398.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.00323/0.3815, allocations: 2.186 MB / 0.5463 GB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.3846, allocations: 2.048 MB / 0.5483 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3846, allocations: 0 / 0.5483 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001942/0.3865, allocations: 1.559 MB / 0.5498 GB, free: 1.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000778/0.3873, allocations: 168.7 kB / 0.55 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.401, allocations: 8.851 MB / 0.5586 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.4018, allocations: 1.014 MB / 0.5596 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006259/0.4024, allocations: 166 kB / 0.5598 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004471/0.4029, allocations: 251.6 kB / 0.56 GB, free: 10.48 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4029, allocations: 0 / 0.56 GB, free: 10.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09078/0.4937, allocations: 19.67 MB / 0.5792 GB, free: 7.148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.37, allocations: 3.75 kB / 0.5792 GB, free: 7.145 MB / 430.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)