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.001454/0.001454, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001868/0.001868, allocations: 168.7 kB / 15.95 MB, free: 204 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.398/1.398, allocations: 223.3 MB / 240 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2417/0.2417, allocations: 22.37 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003504, allocations: 12 kB / 382 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3539, allocations: 55.98 MB / 438 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003369/0.3573, allocations: 3.943 MB / 442 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3591, allocations: 1.251 MB / 443.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002775/0.3594, allocations: 16.34 kB / 443.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002704/0.3597, allocations: 114.1 kB / 443.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000548/0.3602, allocations: 409.2 kB / 443.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.3608, allocations: 199.2 kB / 443.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.3625, allocations: 2.251 MB / 446.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.3636, allocations: 1.114 MB / 447.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.3642, allocations: 0.6187 MB / 447.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009364/0.3651, allocations: 0.9039 MB / 448.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.3653, allocations: 93.56 kB / 448.9 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.3655, allocations: 91.72 kB / 449 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004516/0.366, allocations: 0.5546 MB / 449.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.3662, allocations: 310.5 kB / 449.9 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.3675, allocations: 2.055 MB / 451.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3675, allocations: 0 / 451.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3675, allocations: 0 / 451.9 MB, free: 32.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.3675, allocations: 0 / 451.9 MB, free: 32.43 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.003512/0.371, allocations: 1.806 MB / 453.7 MB, free: 31.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3711, allocations: 9.156 kB / 453.7 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.3714, allocations: 184.3 kB / 453.9 MB, free: 31.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.3716, allocations: 145.6 kB / 454.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3728, allocations: 0.835 MB / 454.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.975e-05/0.3729, allocations: 117.3 kB / 455 MB, free: 30.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002119/0.3732, allocations: 142.9 kB / 455.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.3758, allocations: 1.575 MB / 456.7 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.3759, allocations: 0 / 456.7 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.376, allocations: 51.16 kB / 456.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.376, allocations: 27.75 kB / 456.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002333/0.3784, allocations: 1.418 MB / 458.2 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009657/0.388, allocations: 7.2 MB / 465.4 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004579/0.3927, allocations: 1.879 MB / 467.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.3939, allocations: 0.7241 MB / 468 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.15e-05/0.394, allocations: 14.78 kB / 468 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.394, allocations: 48.92 kB / 468.1 MB, free: 23.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 4.028e-06/0.394, allocations: 3.984 kB / 468.1 MB, free: 23.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007582/0.4016, allocations: 3.999 MB / 472.1 MB, free: 21.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.4017, allocations: 61.69 kB / 472.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.4028, allocations: 0.6756 MB / 472.8 MB, free: 20.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001814/0.403, allocations: 41.48 kB / 472.9 MB, free: 20.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.4034, allocations: 0.5107 MB / 473.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005223/0.404, allocations: 409.5 kB / 473.8 MB, free: 20.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.218e-05/0.4041, allocations: 26.44 kB / 473.8 MB, free: 20.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.4043, allocations: 420.7 kB / 474.2 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.4057, allocations: 0.837 MB / 475 MB, free: 19.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.407, allocations: 0.9998 MB / 476 MB, free: 18.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.4085, allocations: 0.9578 MB / 477 MB, free: 18.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.4085, allocations: 1.188 kB / 477 MB, free: 18.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004905/0.4134, allocations: 2.472 MB / 479.5 MB, free: 17.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.4135, allocations: 7.562 kB / 479.5 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.4135, allocations: 9.312 kB / 479.5 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001589/0.4151, allocations: 0.5376 MB / 480 MB, free: 16.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.4167, allocations: 403.4 kB / 480.4 MB, free: 16.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/0.4291, allocations: 21.43 MB / 0.4901 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.4305, allocations: 154.8 kB / 0.4902 GB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.4306, allocations: 47.98 kB / 0.4903 GB, free: 9.926 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 (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.0008204/0.4315, allocations: 421.3 kB / 0.4907 GB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.4317, allocations: 90.88 kB / 0.4908 GB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.4352, allocations: 1.99 MB / 0.4927 GB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4352, allocations: 8 kB / 0.4927 GB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/0.4352, allocations: 4 kB / 0.4927 GB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.4352, allocations: 3.984 kB / 0.4927 GB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00534/0.4406, allocations: 3.554 MB / 0.4962 GB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4406, allocations: 4.25 kB / 0.4962 GB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/0.4424, allocations: 339.6 kB / 0.4965 GB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.4436, allocations: 480.5 kB / 0.497 GB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.4438, allocations: 67.95 kB / 0.4971 GB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/0.4596, allocations: 20.58 MB / 0.5172 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.4597, allocations: 7.938 kB / 0.5172 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.4646, allocations: 2.719 MB / 0.5198 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004373/0.4651, allocations: 195.7 kB / 0.52 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.4654, allocations: 63.97 kB / 0.5201 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007041/0.4661, allocations: 83.7 kB / 0.5201 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/0.4664, allocations: 92.81 kB / 0.5202 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/0.4665, allocations: 31.98 kB / 0.5203 GB, free: 8.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005999/0.4671, allocations: 475 kB / 0.5207 GB, free: 8.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4671, allocations: 0 / 0.5207 GB, free: 8.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001686/0.4688, allocations: 0.503 MB / 0.5212 GB, free: 7.914 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 (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.004818/0.4736, allocations: 3.355 MB / 0.5245 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004447/0.4781, allocations: 3.424 MB / 0.5278 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4781, allocations: 0 / 0.5278 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002719/0.4808, allocations: 2.464 MB / 0.5302 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.4822, allocations: 323 kB / 0.5305 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02064/0.5029, allocations: 12.58 MB / 0.5428 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.5041, allocations: 1.26 MB / 0.5441 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001303/0.5054, allocations: 351.6 kB / 0.5444 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007437/0.5062, allocations: 459.3 kB / 0.5448 GB, free: 14.87 MB / 430.1 MB Notification: Performance of SimCode: time 2.114e-06/0.5062, allocations: 0 / 0.5448 GB, free: 14.87 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05458/0.5608, allocations: 31.97 MB / 0.5761 GB, free: 15.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.5609, allocations: 218.8 kB / 0.5763 GB, free: 15.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.183, allocations: 3.75 kB / 0.5763 GB, free: 15.07 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/linux/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) Environment - environmentSimulation: