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.0008704/0.0008704, allocations: 92 kB / 15.06 MB, free: 1.098 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.0009073/0.0009074, allocations: 172.7 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.407/1.407, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2064/0.2064, allocations: 22.36 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003089, allocations: 8 kB / 382 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2858, allocations: 55.98 MB / 438 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003063/0.2889, allocations: 3.966 MB / 442 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.2905, allocations: 1.257 MB / 443.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.2907, allocations: 17.19 kB / 443.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.291, allocations: 117.5 kB / 443.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005206/0.2915, allocations: 415.1 kB / 443.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.2921, allocations: 213.6 kB / 444 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.2936, allocations: 2.265 MB / 446.3 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.2946, allocations: 1.115 MB / 447.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006658/0.2953, allocations: 0.6388 MB / 448 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009502/0.2963, allocations: 0.9042 MB / 448.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.2964, allocations: 90.62 kB / 449 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.2966, allocations: 88.94 kB / 449.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003563/0.297, allocations: 0.5479 MB / 449.6 MB, free: 33.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.2972, allocations: 309.9 kB / 449.9 MB, free: 33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.2984, allocations: 2.035 MB / 452 MB, free: 32.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2985, allocations: 0 / 452 MB, free: 32.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2985, allocations: 0 / 452 MB, free: 32.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.765e-05/0.2985, allocations: 0 / 452 MB, free: 32.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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003312/0.3018, allocations: 1.789 MB / 453.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3019, allocations: 7.812 kB / 453.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000244/0.3021, allocations: 187.9 kB / 454 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.3023, allocations: 154.2 kB / 454.1 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3035, allocations: 0.8437 MB / 454.9 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-05/0.3036, allocations: 121.6 kB / 455.1 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.3038, allocations: 137.3 kB / 455.2 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.3067, allocations: 1.569 MB / 456.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.3068, allocations: 0 / 456.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.3069, allocations: 49.77 kB / 456.8 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.3069, allocations: 28.94 kB / 456.8 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002414/0.3093, allocations: 1.41 MB / 458.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.3198, allocations: 7.171 MB / 465.4 MB, free: 25.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00463/0.3245, allocations: 1.874 MB / 467.3 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.3257, allocations: 0.7303 MB / 468 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.031e-05/0.3257, allocations: 19.31 kB / 468.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.3258, allocations: 39.38 kB / 468.1 MB, free: 24.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.467e-06/0.3258, allocations: 0 / 468.1 MB, free: 24.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006677/0.3325, allocations: 3.994 MB / 472.1 MB, free: 21.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.3325, allocations: 62.97 kB / 472.1 MB, free: 21.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009625/0.3335, allocations: 0.6732 MB / 472.8 MB, free: 21.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3336, allocations: 45.98 kB / 472.9 MB, free: 21.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.3339, allocations: 0.5115 MB / 473.4 MB, free: 20.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.3343, allocations: 414.4 kB / 473.8 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.159e-05/0.3344, allocations: 26.03 kB / 473.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3346, allocations: 418.8 kB / 474.2 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.3359, allocations: 0.8359 MB / 475.1 MB, free: 19.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.3372, allocations: 0.998 MB / 476 MB, free: 19.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.3386, allocations: 0.957 MB / 477 MB, free: 18.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3386, allocations: 1.062 kB / 477 MB, free: 18.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00425/0.3429, allocations: 2.478 MB / 479.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.3429, allocations: 9.156 kB / 479.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.3429, allocations: 4.688 kB / 479.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.3446, allocations: 0.5498 MB / 480 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/0.3465, allocations: 401.6 kB / 480.4 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/0.3592, allocations: 21.44 MB / 0.4901 GB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.3607, allocations: 162.6 kB / 0.4903 GB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.3608, allocations: 48.06 kB / 0.4903 GB, free: 9.957 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.0008824/0.3617, allocations: 433.2 kB / 0.4907 GB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.362, allocations: 90.88 kB / 0.4908 GB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.3656, allocations: 1.987 MB / 0.4928 GB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.3656, allocations: 8 kB / 0.4928 GB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3656, allocations: 4 kB / 0.4928 GB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.3657, allocations: 11.97 kB / 0.4928 GB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006289/0.372, allocations: 3.704 MB / 0.4964 GB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.372, allocations: 4 kB / 0.4964 GB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/0.374, allocations: 347.9 kB / 0.4967 GB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.3753, allocations: 476.5 kB / 0.4972 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.3754, allocations: 67.97 kB / 0.4973 GB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/0.3902, allocations: 20.58 MB / 0.5173 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3903, allocations: 4.062 kB / 0.5174 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004908/0.3952, allocations: 2.722 MB / 0.52 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004159/0.3957, allocations: 187.8 kB / 0.5202 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.3959, allocations: 59.98 kB / 0.5202 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007608/0.3966, allocations: 79.66 kB / 0.5203 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.3969, allocations: 104.8 kB / 0.5204 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.688e-05/0.397, allocations: 31.98 kB / 0.5205 GB, free: 8.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006419/0.3977, allocations: 467 kB / 0.5209 GB, free: 8.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3977, allocations: 4 kB / 0.5209 GB, free: 8.285 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001961/0.3996, allocations: 0.499 MB / 0.5214 GB, free: 7.785 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.004726/0.4044, allocations: 3.347 MB / 0.5247 GB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004493/0.4089, allocations: 3.424 MB / 0.528 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4089, allocations: 0 / 0.528 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.4116, allocations: 2.468 MB / 0.5304 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.4129, allocations: 316.3 kB / 0.5307 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02001/0.4329, allocations: 12.59 MB / 0.543 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.4339, allocations: 1.276 MB / 0.5443 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.4351, allocations: 367.8 kB / 0.5446 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/0.4359, allocations: 471 kB / 0.5451 GB, free: 14.69 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4359, allocations: 0 / 0.5451 GB, free: 14.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05035/0.4863, allocations: 32.15 MB / 0.5765 GB, free: 14.93 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/0.4865, allocations: 219.8 kB / 0.5767 GB, free: 14.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.165, allocations: 0 / 0.5767 GB, free: 14.69 MB / 462.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: