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.000746/0.0007459, allocations: 91.3 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.0008003/0.0008004, 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.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2382/0.2382, allocations: 22.35 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003262, allocations: 12 kB / 382 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3451, allocations: 55.98 MB / 438 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003403/0.3486, allocations: 2.966 MB / 441 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.3505, allocations: 0.9155 MB / 441.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004504/0.351, allocations: 9.562 kB / 441.9 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.3513, allocations: 75.5 kB / 442 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006406/0.352, allocations: 233.9 kB / 442.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00068/0.3527, allocations: 130.9 kB / 442.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.3543, allocations: 1.289 MB / 443.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.3554, allocations: 0.6277 MB / 444.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008397/0.3563, allocations: 368.5 kB / 444.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3574, allocations: 0.5245 MB / 445.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002657/0.3576, allocations: 55.81 kB / 445.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003341/0.358, allocations: 52.91 kB / 445.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.3583, allocations: 322.2 kB / 445.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002466/0.3585, allocations: 194.8 kB / 445.8 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008879/0.3594, allocations: 1.145 MB / 446.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3594, allocations: 6.875 kB / 446.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3594, allocations: 0 / 446.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.3595, allocations: 0 / 446.9 MB, free: 34.68 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.002103/0.3616, allocations: 1.152 MB / 448.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.3616, allocations: 9.094 kB / 448.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.3618, allocations: 118.5 kB / 448.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.362, allocations: 88.34 kB / 448.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007322/0.3627, allocations: 0.5525 MB / 448.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.862e-05/0.3628, allocations: 88.88 kB / 448.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3629, allocations: 89.45 kB / 449 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3644, allocations: 0.9166 MB / 449.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.3644, allocations: 0 / 449.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.086e-05/0.3645, allocations: 29.25 kB / 449.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.3645, allocations: 21.75 kB / 450 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.3658, allocations: 0.7974 MB / 450.8 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00537/0.3712, allocations: 3.992 MB / 454.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.3736, allocations: 1.029 MB / 455.8 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006622/0.3743, allocations: 420.5 kB / 456.2 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.605e-05/0.3743, allocations: 9.984 kB / 456.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3744, allocations: 38.72 kB / 456.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.487e-06/0.3744, allocations: 0 / 456.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003972/0.3783, allocations: 2.394 MB / 458.6 MB, free: 27.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.3784, allocations: 57.42 kB / 458.7 MB, free: 27.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005603/0.379, allocations: 410.3 kB / 459.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.379, allocations: 36.11 kB / 459.1 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.3792, allocations: 328.4 kB / 459.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.3795, allocations: 232.1 kB / 459.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.3795, allocations: 10.72 kB / 459.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3796, allocations: 371.2 kB / 460.1 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007104/0.3804, allocations: 447.8 kB / 460.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/0.3811, allocations: 0.4885 MB / 461 MB, free: 26.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.3819, allocations: 0.4963 MB / 461.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3819, allocations: 0 / 461.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002548/0.3845, allocations: 1.338 MB / 462.8 MB, free: 25.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3845, allocations: 5.25 kB / 462.8 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3845, allocations: 6 kB / 462.8 MB, free: 25.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.3856, allocations: 348.2 kB / 463.2 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008677/0.3864, allocations: 189.1 kB / 463.3 MB, free: 25.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008134/0.3946, allocations: 14.08 MB / 477.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007384/0.3954, allocations: 74.02 kB / 477.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/0.3954, allocations: 21.91 kB / 477.5 MB, free: 11.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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.000583/0.396, allocations: 292.1 kB / 477.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.3962, allocations: 52.28 kB / 477.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002201/0.3984, allocations: 1.14 MB / 479 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3984, allocations: 9.281 kB / 479 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3984, allocations: 3.75 kB / 479 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3984, allocations: 3.812 kB / 479 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.4019, allocations: 2.116 MB / 481.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4019, allocations: 5.328 kB / 481.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009501/0.4028, allocations: 167.4 kB / 481.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007908/0.4036, allocations: 309.1 kB / 481.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.743e-05/0.4037, allocations: 39.67 kB / 481.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008369/0.4121, allocations: 13.65 MB / 495.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.4121, allocations: 5.906 kB / 495.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.4151, allocations: 1.587 MB / 496.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002751/0.4154, allocations: 149.2 kB / 497 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.4155, allocations: 34.08 kB / 497.1 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.416, allocations: 33.39 kB / 497.1 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.4162, allocations: 63.31 kB / 497.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.659e-05/0.4163, allocations: 21.8 kB / 497.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004726/0.4168, allocations: 288.1 kB / 497.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4168, allocations: 0 / 497.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4184, allocations: 299.7 kB / 497.8 MB, free: 10.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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.003451/0.4219, allocations: 2.175 MB / 499.9 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.4249, allocations: 2.047 MB / 0.4902 GB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.425, allocations: 0 / 0.4902 GB, free: 7.887 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/0.4271, allocations: 1.545 MB / 0.4917 GB, free: 6.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.4284, allocations: 163.5 kB / 0.4919 GB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.4415, allocations: 6.931 MB / 0.4986 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008021/0.4423, allocations: 1.016 MB / 0.4996 GB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006493/0.443, allocations: 168.6 kB / 0.4998 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.4434, allocations: 251.4 kB / 0.5 GB, free: 15.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4434, allocations: 0 / 0.5 GB, free: 15.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.4774, allocations: 18.24 MB / 0.5178 GB, free: 13.22 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.4777, allocations: 228.2 kB / 0.5181 GB, free: 12.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.198/2.676, allocations: 0 / 0.5181 GB, free: 12.97 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/linux/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) Environment - environmentSimulation: