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.001059/0.001059, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 187.8 kB / 16.66 MB, free: 6.582 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.378/1.378, allocations: 222.9 MB / 240.3 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1972/0.1972, allocations: 22.34 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 56.41 kB / 437.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1191, allocations: 54.96 MB / 492 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005119/0.1243, allocations: 4.438 MB / 496.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1267, allocations: 1.259 MB / 497.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002929/0.127, allocations: 19.88 kB / 497.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.1274, allocations: 166.6 kB / 497.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006339/0.128, allocations: 437.4 kB / 498.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006747/0.1287, allocations: 319.5 kB / 498.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00202/0.1307, allocations: 2.169 MB / 0.4891 GB, free: 8.434 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.1325, allocations: 1.606 MB / 0.4906 GB, free: 6.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009393/0.1334, allocations: 0.8301 MB / 0.4914 GB, free: 5.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.1347, allocations: 0.9893 MB / 0.4924 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002864/0.135, allocations: 228 kB / 0.4926 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003411/0.1354, allocations: 232 kB / 0.4928 GB, free: 4.512 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007187/0.1361, allocations: 0.6859 MB / 0.4935 GB, free: 3.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000852/0.1369, allocations: 0.9184 MB / 0.4944 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002292/0.1392, allocations: 2.57 MB / 0.4969 GB, free: 332 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1393, allocations: 7.938 kB / 0.4969 GB, free: 324 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1393, allocations: 0 / 0.4969 GB, free: 324 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.1393, allocations: 0 / 0.4969 GB, free: 324 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.004366/0.1437, allocations: 2.049 MB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1437, allocations: 8.031 kB / 0.4989 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002806/0.144, allocations: 156 kB / 0.4991 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.1453, allocations: 0.8724 MB / 0.4999 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.1454, allocations: 116.6 kB / 0.5 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003779/0.1458, allocations: 140.3 kB / 0.5002 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002784/0.1486, allocations: 1.585 MB / 0.5017 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1486, allocations: 0 / 0.5017 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.1488, allocations: 52 kB / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.1488, allocations: 28 kB / 0.5018 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002492/0.1513, allocations: 1.407 MB / 0.5032 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009935/0.1612, allocations: 7.106 MB / 0.5101 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004812/0.1661, allocations: 1.879 MB / 0.512 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.1674, allocations: 0.7383 MB / 0.5127 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.65e-05/0.1674, allocations: 16.98 kB / 0.5127 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.753e-05/0.1675, allocations: 47.56 kB / 0.5127 GB, free: 15.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 2.575e-06/0.1675, allocations: 0 / 0.5127 GB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007237/0.1748, allocations: 3.929 MB / 0.5166 GB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.1748, allocations: 64.41 kB / 0.5166 GB, free: 11.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009751/0.1758, allocations: 0.6761 MB / 0.5173 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.595e-05/0.1759, allocations: 45.7 kB / 0.5173 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.1763, allocations: 0.5278 MB / 0.5179 GB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003793/0.1767, allocations: 432.4 kB / 0.5183 GB, free: 9.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.1771, allocations: 247.5 kB / 0.5185 GB, free: 9.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002297/0.1773, allocations: 410.7 kB / 0.5189 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.1787, allocations: 0.8429 MB / 0.5197 GB, free: 7.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.1801, allocations: 1.008 MB / 0.5207 GB, free: 6.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/0.1939, allocations: 4.459 MB / 0.5251 GB, free: 2.316 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.1939, allocations: 4 kB / 0.5251 GB, free: 2.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004845/0.1988, allocations: 2.465 MB / 0.5275 GB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.1988, allocations: 8 kB / 0.5275 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.1988, allocations: 8.031 kB / 0.5275 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/0.2006, allocations: 0.5395 MB / 0.528 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.2024, allocations: 403.5 kB / 0.5284 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/0.2193, allocations: 23.05 MB / 0.5509 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.2206, allocations: 151 kB / 0.551 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/0.2209, allocations: 59.86 kB / 0.5511 GB, free: 5.379 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.0009785/0.2219, allocations: 429.1 kB / 0.5515 GB, free: 4.949 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.2222, allocations: 95.39 kB / 0.5516 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/0.2259, allocations: 1.99 MB / 0.5535 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.2259, allocations: 8 kB / 0.5536 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.2259, allocations: 4.047 kB / 0.5536 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.2259, allocations: 7.969 kB / 0.5536 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006153/0.2321, allocations: 3.709 MB / 0.5572 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2321, allocations: 0 / 0.5572 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001924/0.234, allocations: 343.6 kB / 0.5575 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/0.2354, allocations: 484.7 kB / 0.558 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.2355, allocations: 75.95 kB / 0.5581 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/0.2507, allocations: 22.16 MB / 0.5797 GB, free: 5.758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.2507, allocations: 3.984 kB / 0.5797 GB, free: 5.754 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004723/0.2555, allocations: 2.741 MB / 0.5824 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003482/0.2558, allocations: 196.2 kB / 0.5826 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.2561, allocations: 63.98 kB / 0.5826 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007819/0.2569, allocations: 55.92 kB / 0.5827 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002755/0.2571, allocations: 96.75 kB / 0.5828 GB, free: 2.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.85e-05/0.2572, allocations: 31.98 kB / 0.5828 GB, free: 2.473 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006205/0.2579, allocations: 483 kB / 0.5833 GB, free: 2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2579, allocations: 0 / 0.5833 GB, free: 2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001614/0.2595, allocations: 0.4994 MB / 0.5837 GB, free: 1.5 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.0003248/0.2598, allocations: 184.2 kB / 0.5839 GB, free: 1.309 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2495/0.5093, allocations: 3.422 MB / 0.5873 GB, free: 96.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.5094, allocations: 0 / 0.5873 GB, free: 96.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.512, allocations: 2.471 MB / 0.5897 GB, free: 94.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.5134, allocations: 306.7 kB / 0.59 GB, free: 94.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007442/0.5209, allocations: 5.6 MB / 0.5954 GB, free: 92.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008284/0.5217, allocations: 1.274 MB / 0.5967 GB, free: 91.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001021/0.5227, allocations: 364.9 kB / 0.597 GB, free: 91.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.5231, allocations: 81.2 kB / 0.5971 GB, free: 91.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5231, allocations: 3.938 kB / 0.5971 GB, free: 91.49 MB / 462.1 MB Notification: Performance of Templates: time 0.02898/0.5521, allocations: 23.2 MB / 0.6198 GB, free: 78.36 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)