Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",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.001176/0.001176, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001133/0.001132, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.175/1.175, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1739/0.1739, allocations: 22.36 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 63.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2009, allocations: 54.94 MB / 435.2 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003508/0.2045, allocations: 4.581 MB / 439.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2057, allocations: 1.277 MB / 441 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.2059, allocations: 11.75 kB / 441 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.2062, allocations: 129 kB / 441.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004214/0.2066, allocations: 423.1 kB / 441.6 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.207, allocations: 276.4 kB / 441.8 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.2082, allocations: 2.637 MB / 444.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008794/0.2091, allocations: 1.34 MB / 445.8 MB, free: 33.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004049/0.2095, allocations: 0.6692 MB / 446.5 MB, free: 33.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006938/0.2102, allocations: 0.9781 MB / 447.5 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.2104, allocations: 118.3 kB / 447.6 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.2106, allocations: 117.1 kB / 447.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003011/0.2109, allocations: 0.5838 MB / 448.3 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005096/0.2115, allocations: 0.8116 MB / 449.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.2125, allocations: 2.48 MB / 451.6 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2126, allocations: 0 / 451.6 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2126, allocations: 3.906 kB / 451.6 MB, free: 31.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.2126, allocations: 0 / 451.6 MB, free: 31.36 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.003217/0.2158, allocations: 2.018 MB / 453.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.2158, allocations: 13.19 kB / 453.6 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001724/0.216, allocations: 184.7 kB / 453.8 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.2162, allocations: 155 kB / 453.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009386/0.2172, allocations: 0.8603 MB / 454.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/0.2172, allocations: 118.5 kB / 454.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.2174, allocations: 137 kB / 455 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.2197, allocations: 1.59 MB / 456.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.2197, allocations: 0 / 456.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.2198, allocations: 50.03 kB / 456.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/0.2199, allocations: 28.73 kB / 456.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.2218, allocations: 1.423 MB / 458.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007748/0.2296, allocations: 7.151 MB / 465.3 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004297/0.2339, allocations: 1.884 MB / 467.2 MB, free: 22.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00093/0.2348, allocations: 0.7227 MB / 467.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.731e-05/0.2349, allocations: 10.69 kB / 467.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.2349, allocations: 61.08 kB / 468 MB, free: 22.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.194e-06/0.2349, allocations: 0 / 468 MB, free: 22.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.005793/0.2407, allocations: 3.925 MB / 471.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.2408, allocations: 67.62 kB / 472 MB, free: 19.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006931/0.2415, allocations: 0.6875 MB / 472.6 MB, free: 19.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.385e-05/0.2415, allocations: 46.45 kB / 472.7 MB, free: 19.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.2418, allocations: 0.5033 MB / 473.2 MB, free: 19.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.242, allocations: 409.5 kB / 473.6 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003614/0.2424, allocations: 234.4 kB / 473.8 MB, free: 18.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.2425, allocations: 415.8 kB / 474.2 MB, free: 18.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.2436, allocations: 0.8448 MB / 475.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/0.2448, allocations: 1.002 MB / 476.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/0.2561, allocations: 4.446 MB / 480.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2561, allocations: 2.781 kB / 480.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003448/0.2595, allocations: 2.468 MB / 483 MB, free: 13.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2596, allocations: 9.719 kB / 483 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2596, allocations: 4 kB / 483 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.261, allocations: 0.5434 MB / 483.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.2625, allocations: 391.5 kB / 483.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.2741, allocations: 21.43 MB / 0.4935 GB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008946/0.275, allocations: 150.9 kB / 0.4937 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.2751, allocations: 51.98 kB / 0.4937 GB, free: 4.52 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 (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.0006295/0.2758, allocations: 421.4 kB / 0.4941 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.276, allocations: 90.88 kB / 0.4942 GB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.2792, allocations: 1.983 MB / 0.4961 GB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.2792, allocations: 12 kB / 0.4961 GB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.2792, allocations: 7.938 kB / 0.4961 GB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.2793, allocations: 7.922 kB / 0.4962 GB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.2841, allocations: 3.558 MB / 0.4996 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.2841, allocations: 3.984 kB / 0.4996 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/0.286, allocations: 331.7 kB / 0.4999 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001198/0.2872, allocations: 476.8 kB / 0.5004 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.2873, allocations: 67.95 kB / 0.5005 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/0.3, allocations: 20.58 MB / 0.5206 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3, allocations: 4.031 kB / 0.5206 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004069/0.3041, allocations: 2.729 MB / 0.5232 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.3043, allocations: 191.8 kB / 0.5234 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001987/0.3045, allocations: 67.97 kB / 0.5235 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007112/0.3052, allocations: 71.77 kB / 0.5235 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.3054, allocations: 100.8 kB / 0.5236 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.96e-05/0.3055, allocations: 27.98 kB / 0.5237 GB, free: 3.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005092/0.306, allocations: 483 kB / 0.5241 GB, free: 3.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.306, allocations: 0 / 0.5241 GB, free: 3.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001208/0.3072, allocations: 0.5029 MB / 0.5246 GB, free: 2.5 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 (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.004419/0.3116, allocations: 3.359 MB / 0.5279 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.3154, allocations: 3.41 MB / 0.5312 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3154, allocations: 0 / 0.5312 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.3177, allocations: 2.463 MB / 0.5336 GB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.3188, allocations: 314.2 kB / 0.5339 GB, free: 8.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/0.341, allocations: 16.44 MB / 0.55 GB, free: 7.535 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007978/0.3418, allocations: 1.264 MB / 0.5512 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008764/0.3426, allocations: 359.6 kB / 0.5516 GB, free: 5.883 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006417/0.3433, allocations: 455.3 kB / 0.552 GB, free: 5.438 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3433, allocations: 0 / 0.552 GB, free: 5.438 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0444/0.3877, allocations: 32.92 MB / 0.5842 GB, free: 4.891 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.388, allocations: 239.5 kB / 0.5844 GB, free: 4.637 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.335/2.723, allocations: 0 / 0.5844 GB, free: 4.637 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)