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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005962/0.005962, allocations: 100.9 kB / 15.73 MB, free: 6.445 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.001096/0.001096, allocations: 194.1 kB / 16.68 MB, free: 6.355 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2334/0.2334, allocations: 22.37 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 60.59 kB / 437.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 54.96 MB / 492.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004918/0.1186, allocations: 4.424 MB / 496.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.1211, allocations: 1.271 MB / 497.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.1215, allocations: 19.88 kB / 497.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00034/0.1219, allocations: 158.6 kB / 497.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006734/0.1226, allocations: 437.4 kB / 498.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008206/0.1234, allocations: 315.5 kB / 498.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001961/0.1254, allocations: 2.169 MB / 0.4891 GB, free: 8.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.1271, allocations: 1.602 MB / 0.4907 GB, free: 6.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009825/0.1281, allocations: 0.8418 MB / 0.4915 GB, free: 5.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.1293, allocations: 0.9815 MB / 0.4924 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002926/0.1296, allocations: 232 kB / 0.4927 GB, free: 4.707 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.13, allocations: 232 kB / 0.4929 GB, free: 4.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006401/0.1306, allocations: 0.6937 MB / 0.4936 GB, free: 3.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009691/0.1316, allocations: 0.9184 MB / 0.4945 GB, free: 2.863 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.1339, allocations: 2.563 MB / 0.497 GB, free: 300 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.134, allocations: 7.938 kB / 0.497 GB, free: 292 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.134, allocations: 0 / 0.497 GB, free: 292 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.745e-05/0.134, allocations: 0 / 0.497 GB, free: 292 kB / 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.004479/0.1385, allocations: 2.012 MB / 0.4989 GB, free: 14.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.1385, allocations: 8.031 kB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.1389, allocations: 151.2 kB / 0.4991 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.1402, allocations: 0.8719 MB / 0.4999 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.1404, allocations: 116.6 kB / 0.5 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.1406, allocations: 132.3 kB / 0.5002 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.1433, allocations: 1.593 MB / 0.5017 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.1433, allocations: 0 / 0.5017 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.1434, allocations: 48 kB / 0.5018 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/0.1435, allocations: 28 kB / 0.5018 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002233/0.1457, allocations: 1.411 MB / 0.5032 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009759/0.1555, allocations: 7.089 MB / 0.5101 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004664/0.1602, allocations: 1.874 MB / 0.5119 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.1613, allocations: 0.7383 MB / 0.5126 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.562e-05/0.1614, allocations: 16.98 kB / 0.5127 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.1615, allocations: 43.56 kB / 0.5127 GB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 2.886e-06/0.1615, allocations: 480 / 0.5127 GB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.006995/0.1685, allocations: 3.928 MB / 0.5165 GB, free: 11.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.1686, allocations: 60.41 kB / 0.5166 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009295/0.1695, allocations: 0.6839 MB / 0.5173 GB, free: 10.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.1697, allocations: 41.7 kB / 0.5173 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/0.17, allocations: 0.507 MB / 0.5178 GB, free: 9.906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000408/0.1704, allocations: 418.1 kB / 0.5182 GB, free: 9.492 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004627/0.1709, allocations: 243.5 kB / 0.5184 GB, free: 9.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.1711, allocations: 410.7 kB / 0.5188 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.1723, allocations: 0.8468 MB / 0.5197 GB, free: 7.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.1737, allocations: 1.006 MB / 0.5206 GB, free: 6.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01309/0.1868, allocations: 4.463 MB / 0.525 GB, free: 2.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.1869, allocations: 0 / 0.525 GB, free: 2.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004662/0.1916, allocations: 2.472 MB / 0.5274 GB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.1916, allocations: 10.81 kB / 0.5274 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.1916, allocations: 4 kB / 0.5274 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001747/0.1934, allocations: 0.5395 MB / 0.5279 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.1951, allocations: 399.5 kB / 0.5283 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/0.2131, allocations: 23.05 MB / 0.5508 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.2146, allocations: 154.6 kB / 0.551 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.2147, allocations: 47.94 kB / 0.551 GB, free: 5.457 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.0007762/0.2155, allocations: 433.2 kB / 0.5514 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.2156, allocations: 90.95 kB / 0.5515 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.2192, allocations: 1.986 MB / 0.5535 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.2192, allocations: 12 kB / 0.5535 GB, free: 2.879 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/0.2192, allocations: 4 kB / 0.5535 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.2193, allocations: 7.969 kB / 0.5535 GB, free: 2.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005657/0.2249, allocations: 3.708 MB / 0.5571 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2249, allocations: 4 kB / 0.5571 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.2269, allocations: 343.6 kB / 0.5574 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.2282, allocations: 480.8 kB / 0.5579 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/0.2283, allocations: 67.97 kB / 0.558 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/0.2436, allocations: 22.15 MB / 0.5796 GB, free: 5.852 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.2436, allocations: 8.156 kB / 0.5796 GB, free: 5.844 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005162/0.2488, allocations: 2.732 MB / 0.5823 GB, free: 3.023 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003282/0.2491, allocations: 195.7 kB / 0.5825 GB, free: 2.812 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001786/0.2493, allocations: 59.97 kB / 0.5825 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006819/0.25, allocations: 59.92 kB / 0.5826 GB, free: 2.695 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/0.2503, allocations: 96.75 kB / 0.5827 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/0.2504, allocations: 28 kB / 0.5827 GB, free: 2.574 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005667/0.251, allocations: 483 kB / 0.5832 GB, free: 2.102 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.894e-06/0.251, allocations: 0 / 0.5832 GB, free: 2.102 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001661/0.2527, allocations: 0.5028 MB / 0.5836 GB, free: 1.598 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.0002769/0.253, allocations: 180.3 kB / 0.5838 GB, free: 1.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2677/0.5207, allocations: 3.418 MB / 0.5872 GB, free: 96.42 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.5207, allocations: 0.9062 kB / 0.5872 GB, free: 96.42 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.5234, allocations: 2.461 MB / 0.5896 GB, free: 94.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.5249, allocations: 309.2 kB / 0.5899 GB, free: 94.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009846/0.5348, allocations: 5.548 MB / 0.5953 GB, free: 92.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.5361, allocations: 1.274 MB / 0.5965 GB, free: 91.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.5374, allocations: 367 kB / 0.5969 GB, free: 91.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003554/0.5378, allocations: 80.78 kB / 0.5969 GB, free: 91.62 MB / 462.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5378, allocations: 0 / 0.5969 GB, free: 91.62 MB / 462.1 MB Notification: Performance of Templates: time 0.03645/0.5743, allocations: 23.57 MB / 0.62 GB, free: 78.17 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)