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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 100.3 kB / 16.27 MB, free: 5.961 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.001465/0.001466, allocations: 188.1 kB / 17.19 MB, free: 5.594 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.337/1.337, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09516/0.09516, allocations: 22.31 MB / 313.4 MB, free: 8.965 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.5 kB / 381.5 MB, free: 41.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07791/0.07926, allocations: 54.96 MB / 436.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005526/0.08483, allocations: 4.392 MB / 440.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.08728, allocations: 1.259 MB / 442.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004942/0.08779, allocations: 15.88 kB / 442.1 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003832/0.08819, allocations: 162.6 kB / 442.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007648/0.089, allocations: 437.5 kB / 442.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007339/0.08975, allocations: 307.4 kB / 443 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.09152, allocations: 2.154 MB / 445.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.09315, allocations: 1.594 MB / 446.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008014/0.09396, allocations: 0.8262 MB / 447.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.09504, allocations: 0.9777 MB / 448.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002915/0.09534, allocations: 236 kB / 448.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.09569, allocations: 236 kB / 449 MB, free: 376 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005808/0.09628, allocations: 0.7015 MB / 449.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008701/0.09716, allocations: 0.9223 MB / 450.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001966/0.09914, allocations: 2.575 MB / 453.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.09915, allocations: 0 / 453.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09916, allocations: 0 / 453.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.09919, allocations: 4 kB / 453.2 MB, free: 12.15 MB / 334.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.004231/0.1034, allocations: 2.012 MB / 455.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1035, allocations: 12.03 kB / 455.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/0.1038, allocations: 143.2 kB / 455.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.105, allocations: 0.8642 MB / 456.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.942e-05/0.1051, allocations: 112.6 kB / 456.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.1054, allocations: 136.2 kB / 456.5 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.1079, allocations: 1.597 MB / 458.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.108, allocations: 4 kB / 458.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.1081, allocations: 44 kB / 458.1 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.614e-05/0.1081, allocations: 28 kB / 458.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002346/0.1105, allocations: 1.419 MB / 459.5 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.1206, allocations: 7.163 MB / 466.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004751/0.1254, allocations: 1.893 MB / 468.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.1265, allocations: 0.7262 MB / 469.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.194e-05/0.1265, allocations: 17.64 kB / 469.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.1266, allocations: 47.56 kB / 469.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.715e-06/0.1266, allocations: 3.938 kB / 469.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007002/0.1336, allocations: 3.928 MB / 473.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.1337, allocations: 64.41 kB / 473.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009127/0.1346, allocations: 0.6877 MB / 474.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.1347, allocations: 41.7 kB / 474.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.1351, allocations: 0.507 MB / 474.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004374/0.1356, allocations: 414.2 kB / 475 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004231/0.136, allocations: 239.5 kB / 475.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1362, allocations: 410.7 kB / 475.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.1375, allocations: 0.85 MB / 476.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001662/0.1392, allocations: 0.9967 MB / 477.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/0.1528, allocations: 4.465 MB / 482 MB, free: 14.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.423e-06/0.1528, allocations: 0 / 482 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004704/0.1575, allocations: 2.472 MB / 484.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.1576, allocations: 8 kB / 484.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1576, allocations: 4 kB / 484.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/0.1594, allocations: 0.5395 MB / 485 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001819/0.1612, allocations: 391.5 kB / 485.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01894/0.1802, allocations: 23.04 MB / 0.4965 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.1815, allocations: 146.7 kB / 0.4966 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/0.1817, allocations: 47.98 kB / 0.4967 GB, free: 1.262 MB / 382.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 (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.0009019/0.1827, allocations: 429.3 kB / 0.4971 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.1829, allocations: 87.06 kB / 0.4972 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.187, allocations: 1.986 MB / 0.4991 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.187, allocations: 12 kB / 0.4991 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.187, allocations: 4 kB / 0.4991 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.187, allocations: 7.922 kB / 0.4991 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005725/0.1928, allocations: 3.55 MB / 0.5026 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.1928, allocations: 0 / 0.5026 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/0.1948, allocations: 335.6 kB / 0.5029 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001336/0.1961, allocations: 488.7 kB / 0.5034 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001737/0.1963, allocations: 67.95 kB / 0.5035 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1673/0.3636, allocations: 22.16 MB / 0.5251 GB, free: 67.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3637, allocations: 3.219 kB / 0.5251 GB, free: 67.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004167/0.3678, allocations: 2.732 MB / 0.5278 GB, free: 66.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.3681, allocations: 189.7 kB / 0.528 GB, free: 66.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002102/0.3683, allocations: 63.52 kB / 0.528 GB, free: 66.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007355/0.3691, allocations: 52.78 kB / 0.5281 GB, free: 66.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.3694, allocations: 105.6 kB / 0.5282 GB, free: 66.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.3694, allocations: 28.3 kB / 0.5282 GB, free: 66.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005401/0.37, allocations: 485.7 kB / 0.5287 GB, free: 66.65 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.37, allocations: 0 / 0.5287 GB, free: 66.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001372/0.3714, allocations: 0.4992 MB / 0.5291 GB, free: 66.65 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 (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.0002256/0.3716, allocations: 183.7 kB / 0.5293 GB, free: 66.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004675/0.3763, allocations: 3.973 MB / 0.5332 GB, free: 64.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3763, allocations: 0 / 0.5332 GB, free: 64.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/0.3786, allocations: 2.458 MB / 0.5356 GB, free: 63.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.3799, allocations: 318.6 kB / 0.5359 GB, free: 63.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008316/0.3882, allocations: 5.642 MB / 0.5414 GB, free: 60.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007891/0.389, allocations: 1.262 MB / 0.5426 GB, free: 59.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005231/0.3895, allocations: 86.11 kB / 0.5427 GB, free: 59.95 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3896, allocations: 0 / 0.5427 GB, free: 59.95 MB / 398.1 MB Notification: Performance of Templates: time 0.05741/0.447, allocations: 81.05 MB / 0.6219 GB, free: 1.871 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)