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.001031/0.001031, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007838/0.007838, allocations: 172.7 kB / 16.26 MB, free: 6.617 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.291/1.291, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1915/0.1915, allocations: 22.35 MB / 313.8 MB, free: 13.01 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 8 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2432, allocations: 55.99 MB / 438.7 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.002441/0.2456, allocations: 3.108 MB / 441.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2469, allocations: 0.941 MB / 442.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.2471, allocations: 9.594 kB / 442.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.2473, allocations: 74.92 kB / 442.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.2476, allocations: 245.3 kB / 443.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.248, allocations: 164.1 kB / 443.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009125/0.2489, allocations: 1.499 MB / 444.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006727/0.2496, allocations: 0.7039 MB / 445.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004387/0.2501, allocations: 366.3 kB / 445.8 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006273/0.2507, allocations: 0.5264 MB / 446.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.396e-05/0.2508, allocations: 52.38 kB / 446.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.2509, allocations: 55.44 kB / 446.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.2511, allocations: 325.1 kB / 446.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.2515, allocations: 473.7 kB / 447.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008149/0.2523, allocations: 1.361 MB / 448.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.2523, allocations: 4 kB / 448.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2523, allocations: 2.219 kB / 448.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.2524, allocations: 0 / 448.6 MB, free: 34.1 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002341/0.2547, allocations: 1.139 MB / 449.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.2548, allocations: 15.28 kB / 449.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.2549, allocations: 122.2 kB / 449.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.2551, allocations: 93.19 kB / 449.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006839/0.2558, allocations: 0.5687 MB / 450.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.2558, allocations: 77.08 kB / 450.6 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.256, allocations: 82.28 kB / 450.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.2573, allocations: 0.9255 MB / 451.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2573, allocations: 2.625 kB / 451.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-05/0.2574, allocations: 33.19 kB / 451.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2574, allocations: 18.38 kB / 451.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.2586, allocations: 0.8054 MB / 452.4 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.2631, allocations: 4.004 MB / 456.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.2657, allocations: 1.028 MB / 457.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.2663, allocations: 414.4 kB / 457.9 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.2664, allocations: 14.77 kB / 457.9 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.2664, allocations: 37.78 kB / 457.9 MB, free: 28.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.514e-06/0.2664, allocations: 0 / 457.9 MB, free: 28.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003904/0.2703, allocations: 2.388 MB / 460.3 MB, free: 27.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.2703, allocations: 57.67 kB / 460.4 MB, free: 27.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004775/0.2708, allocations: 421 kB / 460.8 MB, free: 27.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.281e-05/0.2709, allocations: 37.42 kB / 460.8 MB, free: 27.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.2711, allocations: 327.8 kB / 461.1 MB, free: 26.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.2712, allocations: 227 kB / 461.4 MB, free: 26.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2713, allocations: 61.72 kB / 461.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.334e-05/0.2714, allocations: 368.7 kB / 461.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.2721, allocations: 450.2 kB / 462.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.2728, allocations: 0.5034 MB / 462.7 MB, free: 25.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00735/0.2802, allocations: 2.44 MB / 465.2 MB, free: 25.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.2802, allocations: 4.797 kB / 465.2 MB, free: 25.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002426/0.2826, allocations: 1.354 MB / 466.5 MB, free: 24.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2827, allocations: 9.156 kB / 466.5 MB, free: 24.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.2827, allocations: 1.406 kB / 466.5 MB, free: 24.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.2838, allocations: 345.5 kB / 466.9 MB, free: 24.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008966/0.2847, allocations: 185.9 kB / 467 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007555/0.2922, allocations: 14.09 MB / 481.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006858/0.293, allocations: 81.28 kB / 481.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.2931, allocations: 21.86 kB / 481.2 MB, free: 10.38 MB / 350.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.0005999/0.2937, allocations: 291 kB / 481.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.2939, allocations: 52.09 kB / 481.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/0.296, allocations: 1.135 MB / 482.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.296, allocations: 11.39 kB / 482.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.296, allocations: 2.094 kB / 482.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.296, allocations: 3.719 kB / 482.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003333/0.2994, allocations: 2.132 MB / 484.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2994, allocations: 1.188 kB / 484.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3005, allocations: 166.2 kB / 485 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009731/0.3015, allocations: 306.2 kB / 485.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.3016, allocations: 35.61 kB / 485.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008542/0.3101, allocations: 13.67 MB / 499 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3101, allocations: 1.547 kB / 499 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.313, allocations: 1.595 MB / 0.4889 GB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.3132, allocations: 148.7 kB / 0.489 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.3134, allocations: 33.52 kB / 0.4891 GB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005139/0.3139, allocations: 29.41 kB / 0.4891 GB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.3141, allocations: 63.14 kB / 0.4892 GB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/0.3142, allocations: 13.89 kB / 0.4892 GB, free: 9.766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005758/0.3148, allocations: 295.9 kB / 0.4894 GB, free: 9.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3148, allocations: 0 / 0.4894 GB, free: 9.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001763/0.3165, allocations: 299.3 kB / 0.4897 GB, free: 9.555 MB / 366.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.003136/0.3197, allocations: 2.174 MB / 0.4919 GB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.3224, allocations: 2.051 MB / 0.4939 GB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3224, allocations: 0 / 0.4939 GB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.3242, allocations: 1.549 MB / 0.4954 GB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008863/0.3251, allocations: 167.7 kB / 0.4955 GB, free: 4.348 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.3395, allocations: 9.587 MB / 0.5049 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006681/0.3401, allocations: 1.016 MB / 0.5059 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005011/0.3406, allocations: 168.6 kB / 0.506 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.3411, allocations: 255.3 kB / 0.5063 GB, free: 9.105 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3411, allocations: 0 / 0.5063 GB, free: 9.105 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.615/2.957, allocations: 18.47 MB / 0.5243 GB, free: 6.949 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/2.957, allocations: 237.2 kB / 0.5245 GB, free: 6.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/5.287, allocations: 7.312 kB / 0.5246 GB, free: 6.684 MB / 398.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)