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.001428/0.001428, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009722/0.0009722, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1743/0.1743, allocations: 22.34 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002256/0.002256, allocations: 67.89 kB / 380.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.245, allocations: 54.94 MB / 435.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003298/0.2484, allocations: 3.338 MB / 439.2 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.2495, allocations: 0.9434 MB / 440.2 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.2496, allocations: 13.75 kB / 440.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.2498, allocations: 100.7 kB / 440.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003028/0.2501, allocations: 245.1 kB / 440.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.2505, allocations: 195.6 kB / 440.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006497/0.2512, allocations: 1.224 MB / 441.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006263/0.2518, allocations: 0.883 MB / 442.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.2521, allocations: 487.3 kB / 443.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004504/0.2526, allocations: 0.5634 MB / 443.8 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.2527, allocations: 131.5 kB / 444 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.2529, allocations: 137.5 kB / 444.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.2531, allocations: 403.9 kB / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.2534, allocations: 0.5329 MB / 445 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.2542, allocations: 1.444 MB / 446.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2542, allocations: 3.938 kB / 446.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2542, allocations: 0 / 446.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.2542, allocations: 0 / 446.5 MB, free: 33.73 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.002052/0.2562, allocations: 1.289 MB / 447.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.2563, allocations: 13.22 kB / 447.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.2564, allocations: 119.6 kB / 447.9 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.2566, allocations: 93.03 kB / 448 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.2571, allocations: 0.5602 MB / 448.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.2572, allocations: 85.14 kB / 448.6 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2573, allocations: 79.09 kB / 448.7 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2585, allocations: 0.9308 MB / 449.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.2585, allocations: 0 / 449.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.2586, allocations: 29.16 kB / 449.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.2586, allocations: 17.94 kB / 449.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.2597, allocations: 0.8097 MB / 450.5 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004386/0.2641, allocations: 3.978 MB / 454.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002479/0.2666, allocations: 1.03 MB / 455.5 MB, free: 28.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.2671, allocations: 412.6 kB / 455.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.2672, allocations: 6.969 kB / 455.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2672, allocations: 42.34 kB / 456 MB, free: 28.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.783e-06/0.2672, allocations: 0 / 456 MB, free: 28.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003621/0.2708, allocations: 2.358 MB / 458.3 MB, free: 26.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.2709, allocations: 61.97 kB / 458.4 MB, free: 26.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.2713, allocations: 413.9 kB / 458.8 MB, free: 26.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.2713, allocations: 36.45 kB / 458.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.2715, allocations: 327.8 kB / 459.1 MB, free: 26.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.2716, allocations: 228 kB / 459.4 MB, free: 26.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002083/0.2718, allocations: 124 kB / 459.5 MB, free: 26.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.006e-05/0.2719, allocations: 370.1 kB / 459.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006174/0.2725, allocations: 450.7 kB / 460.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006392/0.2732, allocations: 0.4977 MB / 460.8 MB, free: 25.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006858/0.28, allocations: 2.367 MB / 463.1 MB, free: 24.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2801, allocations: 0 / 463.1 MB, free: 24.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002187/0.2822, allocations: 1.345 MB / 464.5 MB, free: 23.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2823, allocations: 6.531 kB / 464.5 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2823, allocations: 1.859 kB / 464.5 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.2833, allocations: 344.6 kB / 464.8 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008664/0.2842, allocations: 190.5 kB / 465 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007782/0.292, allocations: 15.15 MB / 480.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.2925, allocations: 69.38 kB / 480.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.544e-05/0.2926, allocations: 25.91 kB / 480.3 MB, free: 8.871 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.0003797/0.293, allocations: 294.9 kB / 480.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.2931, allocations: 52.09 kB / 480.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.295, allocations: 1.139 MB / 481.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.295, allocations: 6.25 kB / 481.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.295, allocations: 3.531 kB / 481.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.2951, allocations: 3.234 kB / 481.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/0.298, allocations: 2.124 MB / 483.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-06/0.298, allocations: 1.062 kB / 483.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009605/0.299, allocations: 167.2 kB / 484 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007839/0.2998, allocations: 306.2 kB / 484.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.158e-05/0.2999, allocations: 36.61 kB / 484.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008511/0.3084, allocations: 14.73 MB / 499.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3084, allocations: 5.344 kB / 499.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.311, allocations: 1.588 MB / 0.489 GB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.3112, allocations: 145.2 kB / 0.4891 GB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.3113, allocations: 37.27 kB / 0.4891 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000422/0.3118, allocations: 29.14 kB / 0.4892 GB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3119, allocations: 57.19 kB / 0.4892 GB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.811e-05/0.312, allocations: 13.84 kB / 0.4892 GB, free: 7.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003366/0.3123, allocations: 295.4 kB / 0.4895 GB, free: 7.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3123, allocations: 1.406 kB / 0.4895 GB, free: 7.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009437/0.3133, allocations: 302.2 kB / 0.4898 GB, free: 7.016 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.002922/0.3162, allocations: 2.176 MB / 0.4919 GB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.3189, allocations: 2.211 MB / 0.4941 GB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.319, allocations: 0 / 0.4941 GB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.3206, allocations: 1.55 MB / 0.4956 GB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007237/0.3213, allocations: 171.4 kB / 0.4958 GB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.3342, allocations: 8.971 MB / 0.5045 GB, free: 8.758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.3348, allocations: 1.013 MB / 0.5055 GB, free: 7.715 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004568/0.3353, allocations: 164.6 kB / 0.5057 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.3357, allocations: 259.3 kB / 0.5059 GB, free: 7.297 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3357, allocations: 0 / 0.5059 GB, free: 7.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08328/0.419, allocations: 19.36 MB / 0.5248 GB, free: 4.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.59, allocations: 9.75 kB / 0.5248 GB, free: 4.188 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)