Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.0009992/0.0009992, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001029/0.001029, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.166/1.166, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1675/0.1675, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.88 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1993, allocations: 54.93 MB / 435.3 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003491/0.2029, allocations: 4.607 MB / 439.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.2042, allocations: 1.293 MB / 441.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.2044, allocations: 18.69 kB / 441.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.2046, allocations: 127.8 kB / 441.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004508/0.2051, allocations: 398.9 kB / 441.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.2055, allocations: 281.4 kB / 442 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2066, allocations: 2.177 MB / 444.2 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009988/0.2076, allocations: 1.599 MB / 445.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000508/0.2081, allocations: 0.8487 MB / 446.7 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007471/0.2089, allocations: 1.05 MB / 447.7 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.2091, allocations: 231.8 kB / 447.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.2093, allocations: 229.7 kB / 448.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.2096, allocations: 0.6983 MB / 448.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005219/0.2102, allocations: 0.9146 MB / 449.8 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.2113, allocations: 2.55 MB / 452.3 MB, free: 30.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2113, allocations: 4 kB / 452.3 MB, free: 30.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2113, allocations: 0 / 452.3 MB, free: 30.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.2113, allocations: 0 / 452.3 MB, free: 30.37 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003232/0.2146, allocations: 2.014 MB / 454.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2146, allocations: 9.156 kB / 454.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.2148, allocations: 183.7 kB / 454.5 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.215, allocations: 147.1 kB / 454.7 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000908/0.2159, allocations: 0.8676 MB / 455.6 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.327e-05/0.216, allocations: 122.7 kB / 455.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002002/0.2162, allocations: 136.3 kB / 455.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.2185, allocations: 1.586 MB / 457.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.2185, allocations: 1.312 kB / 457.4 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.2187, allocations: 49.44 kB / 457.4 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.2187, allocations: 28.28 kB / 457.5 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.2206, allocations: 1.411 MB / 458.9 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007663/0.2283, allocations: 7.119 MB / 466 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004347/0.2327, allocations: 1.874 MB / 467.9 MB, free: 21.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009314/0.2336, allocations: 0.7335 MB / 468.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.045e-05/0.2337, allocations: 11.47 kB / 468.6 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.2337, allocations: 43.69 kB / 468.7 MB, free: 21.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.324e-06/0.2337, allocations: 0 / 468.7 MB, free: 21.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.005751/0.2395, allocations: 3.93 MB / 472.6 MB, free: 19.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.2395, allocations: 66.02 kB / 472.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006733/0.2402, allocations: 0.6793 MB / 473.3 MB, free: 18.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-05/0.2403, allocations: 46.27 kB / 473.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.2405, allocations: 0.5104 MB / 473.9 MB, free: 18.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002609/0.2408, allocations: 418.9 kB / 474.3 MB, free: 17.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003813/0.2412, allocations: 240.2 kB / 474.5 MB, free: 17.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.2413, allocations: 411.4 kB / 474.9 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.2424, allocations: 0.8467 MB / 475.8 MB, free: 17.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001138/0.2435, allocations: 1.003 MB / 476.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/0.255, allocations: 4.486 MB / 481.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.255, allocations: 2.5 kB / 481.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003354/0.2583, allocations: 2.465 MB / 483.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2584, allocations: 8 kB / 483.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.2584, allocations: 8 kB / 483.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.2598, allocations: 0.5434 MB / 484.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.2613, allocations: 407.4 kB / 484.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.274, allocations: 23.05 MB / 0.4958 GB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.275, allocations: 162.7 kB / 0.496 GB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.2751, allocations: 47.98 kB / 0.496 GB, free: 1.875 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.0006846/0.2758, allocations: 437.2 kB / 0.4965 GB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.276, allocations: 90.88 kB / 0.4965 GB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.2792, allocations: 1.983 MB / 0.4985 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2793, allocations: 8 kB / 0.4985 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2793, allocations: 8 kB / 0.4985 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.2793, allocations: 3.984 kB / 0.4985 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005204/0.2845, allocations: 3.715 MB / 0.5021 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.2845, allocations: 4 kB / 0.5021 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/0.2865, allocations: 347.6 kB / 0.5025 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.2876, allocations: 476.8 kB / 0.5029 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.2878, allocations: 67.97 kB / 0.503 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01343/0.3012, allocations: 22.17 MB / 0.5246 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3012, allocations: 7.938 kB / 0.5246 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004121/0.3053, allocations: 2.719 MB / 0.5273 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.3056, allocations: 199.6 kB / 0.5275 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.3058, allocations: 59.97 kB / 0.5275 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007681/0.3066, allocations: 71.92 kB / 0.5276 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.3068, allocations: 100.8 kB / 0.5277 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.644e-05/0.3069, allocations: 31.98 kB / 0.5277 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005153/0.3074, allocations: 475 kB / 0.5282 GB, free: 14.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3074, allocations: 0 / 0.5282 GB, free: 14.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001296/0.3087, allocations: 0.5029 MB / 0.5287 GB, free: 13.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.004443/0.3132, allocations: 3.356 MB / 0.532 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00484/0.318, allocations: 3.998 MB / 0.5359 GB, free: 6.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.318, allocations: 1.312 kB / 0.5359 GB, free: 6.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.3204, allocations: 2.459 MB / 0.5383 GB, free: 3.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.3214, allocations: 323.2 kB / 0.5386 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02293/0.3444, allocations: 16.48 MB / 0.5547 GB, free: 2.391 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008457/0.3452, allocations: 1.264 MB / 0.5559 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009877/0.3462, allocations: 375.8 kB / 0.5563 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006477/0.3469, allocations: 463.3 kB / 0.5567 GB, free: 276 kB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3469, allocations: 4 kB / 0.5567 GB, free: 272 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2045/0.5514, allocations: 34.16 MB / 0.5901 GB, free: 133.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.5516, allocations: 232.4 kB / 0.5903 GB, free: 133.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.402/2.954, allocations: 0.8438 kB / 0.5903 GB, free: 133.2 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)