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.004774/0.004774, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.001155/0.001155, allocations: 186.1 kB / 16.67 MB, free: 5.949 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2042/0.2042, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 62.56 kB / 436.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09304/0.09421, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004819/0.09907, allocations: 4.429 MB / 496 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1019, allocations: 1.271 MB / 497.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003181/0.1023, allocations: 15.88 kB / 497.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.1027, allocations: 170.6 kB / 497.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000751/0.1035, allocations: 449.5 kB / 497.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008031/0.1043, allocations: 311.5 kB / 498.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002005/0.1063, allocations: 2.181 MB / 0.4886 GB, free: 8.871 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002048/0.1083, allocations: 1.595 MB / 0.4902 GB, free: 7.234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.1094, allocations: 0.8379 MB / 0.491 GB, free: 6.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.1106, allocations: 0.9776 MB / 0.492 GB, free: 5.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002789/0.1109, allocations: 231.9 kB / 0.4922 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.1112, allocations: 232 kB / 0.4924 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00061/0.1119, allocations: 0.6898 MB / 0.4931 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000995/0.1129, allocations: 0.9261 MB / 0.494 GB, free: 3.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002361/0.1152, allocations: 2.563 MB / 0.4965 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1152, allocations: 0 / 0.4965 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1153, allocations: 4 kB / 0.4965 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.1153, allocations: 0 / 0.4965 GB, free: 0.7656 MB / 366.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.004575/0.1199, allocations: 2.008 MB / 0.4984 GB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.1199, allocations: 15.97 kB / 0.4985 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002319/0.1202, allocations: 181.7 kB / 0.4986 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.1205, allocations: 151.2 kB / 0.4988 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.1218, allocations: 0.8757 MB / 0.4996 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.1219, allocations: 116.6 kB / 0.4997 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.1222, allocations: 136.3 kB / 0.4999 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/0.1247, allocations: 1.585 MB / 0.5014 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.1248, allocations: 0 / 0.5014 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.1249, allocations: 52 kB / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.1249, allocations: 28 kB / 0.5015 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002296/0.1272, allocations: 1.407 MB / 0.5029 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.1375, allocations: 7.095 MB / 0.5098 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004625/0.1422, allocations: 1.882 MB / 0.5116 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.1433, allocations: 0.7344 MB / 0.5124 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.671e-05/0.1434, allocations: 16.98 kB / 0.5124 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.1435, allocations: 43.56 kB / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 2.785e-06/0.1435, allocations: 0 / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.006842/0.1503, allocations: 3.924 MB / 0.5162 GB, free: 11.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.1504, allocations: 72.34 kB / 0.5163 GB, free: 11.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009291/0.1513, allocations: 0.6722 MB / 0.517 GB, free: 10.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.1515, allocations: 41.7 kB / 0.517 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003606/0.1518, allocations: 0.5187 MB / 0.5175 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003894/0.1522, allocations: 414.1 kB / 0.5179 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/0.1526, allocations: 239.5 kB / 0.5181 GB, free: 9.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1528, allocations: 414.7 kB / 0.5185 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.1541, allocations: 0.8429 MB / 0.5194 GB, free: 8.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.1554, allocations: 1.007 MB / 0.5203 GB, free: 7.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/0.1685, allocations: 4.459 MB / 0.5247 GB, free: 2.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/0.1686, allocations: 4 kB / 0.5247 GB, free: 2.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004779/0.1734, allocations: 2.464 MB / 0.5271 GB, free: 144 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.1734, allocations: 8 kB / 0.5271 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.1734, allocations: 4 kB / 0.5271 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.1753, allocations: 0.5396 MB / 0.5276 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/0.1772, allocations: 399.5 kB / 0.528 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01857/0.1958, allocations: 23.05 MB / 0.5505 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.1972, allocations: 150.6 kB / 0.5507 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.1974, allocations: 48 kB / 0.5507 GB, free: 5.746 MB / 430.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.0008414/0.1982, allocations: 445.9 kB / 0.5511 GB, free: 5.301 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002255/0.1985, allocations: 90.88 kB / 0.5512 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003634/0.2021, allocations: 1.99 MB / 0.5532 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.2021, allocations: 8 kB / 0.5532 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.2022, allocations: 4 kB / 0.5532 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.2022, allocations: 3.984 kB / 0.5532 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006035/0.2082, allocations: 3.712 MB / 0.5568 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.2082, allocations: 4 kB / 0.5568 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/0.2102, allocations: 343.9 kB / 0.5571 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.2115, allocations: 484.5 kB / 0.5576 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.2117, allocations: 67.95 kB / 0.5577 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/0.2264, allocations: 22.16 MB / 0.5793 GB, free: 6.121 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.2265, allocations: 3.938 kB / 0.5793 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004807/0.2313, allocations: 2.732 MB / 0.582 GB, free: 3.297 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.2317, allocations: 191.7 kB / 0.5822 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.2319, allocations: 59.98 kB / 0.5822 GB, free: 3.031 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007156/0.2326, allocations: 55.92 kB / 0.5823 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003226/0.2329, allocations: 104.7 kB / 0.5824 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.233, allocations: 31.98 kB / 0.5824 GB, free: 2.844 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006055/0.2336, allocations: 479 kB / 0.5829 GB, free: 2.375 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2336, allocations: 0 / 0.5829 GB, free: 2.375 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001436/0.2351, allocations: 0.5029 MB / 0.5834 GB, free: 1.871 MB / 462.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.2355/0.4706, allocations: 3.338 MB / 0.5866 GB, free: 96.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003705/0.4743, allocations: 3.428 MB / 0.59 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.4744, allocations: 2.906 kB / 0.59 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.4764, allocations: 2.455 MB / 0.5924 GB, free: 93.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.4776, allocations: 314.5 kB / 0.5927 GB, free: 93.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/0.4994, allocations: 15.45 MB / 0.6078 GB, free: 86.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007178/0.5002, allocations: 1.279 MB / 0.609 GB, free: 85.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009353/0.5011, allocations: 364.7 kB / 0.6094 GB, free: 85.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/0.5017, allocations: 469.7 kB / 0.6098 GB, free: 85.08 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5017, allocations: 0 / 0.6098 GB, free: 85.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0707/0.5724, allocations: 34.62 MB / 0.6436 GB, free: 53.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.61, allocations: 11.5 kB / 0.6436 GB, free: 53.94 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)