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.008124/0.008124, allocations: 103.6 kB / 15.74 MB, free: 6.035 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.001627/0.001627, allocations: 196.5 kB / 16.68 MB, free: 5.953 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09378/0.09378, allocations: 22.32 MB / 312.8 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 437.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1178, allocations: 54.94 MB / 492 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.006035/0.1239, allocations: 4.4 MB / 496.4 MB, free: 336 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.1267, allocations: 1.27 MB / 497.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007284/0.1275, allocations: 11.94 kB / 497.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005535/0.1281, allocations: 170.5 kB / 497.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.1293, allocations: 441.5 kB / 498.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009163/0.1302, allocations: 315.5 kB / 498.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002782/0.133, allocations: 2.146 MB / 0.489 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.1354, allocations: 1.594 MB / 0.4905 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.1368, allocations: 0.8223 MB / 0.4914 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.1384, allocations: 0.9854 MB / 0.4923 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004371/0.1389, allocations: 236 kB / 0.4925 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.1393, allocations: 243.9 kB / 0.4928 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006032/0.1399, allocations: 0.6937 MB / 0.4935 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000939/0.1409, allocations: 0.9261 MB / 0.4944 GB, free: 6.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.1431, allocations: 2.583 MB / 0.4969 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1431, allocations: 3.938 kB / 0.4969 GB, free: 3.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1431, allocations: 0 / 0.4969 GB, free: 3.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.42e-05/0.1431, allocations: 0 / 0.4969 GB, free: 3.84 MB / 382.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.004319/0.1475, allocations: 2.015 MB / 0.4988 GB, free: 1.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.1475, allocations: 16.03 kB / 0.4989 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.1478, allocations: 147.2 kB / 0.499 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.149, allocations: 0.8681 MB / 0.4999 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.195e-05/0.1491, allocations: 112.6 kB / 0.5 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.1494, allocations: 136.2 kB / 0.5001 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2677/0.417, allocations: 1.59 MB / 0.5016 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.679e-05/0.4172, allocations: 1.344 kB / 0.5016 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005949/0.4178, allocations: 48.12 kB / 0.5017 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.754e-05/0.4179, allocations: 29.38 kB / 0.5017 GB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004448/0.4223, allocations: 1.419 MB / 0.5031 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/0.4403, allocations: 7.105 MB / 0.51 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007578/0.448, allocations: 1.889 MB / 0.5119 GB, free: 18.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/0.45, allocations: 0.7231 MB / 0.5126 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.4501, allocations: 17.28 kB / 0.5126 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.4502, allocations: 44.94 kB / 0.5127 GB, free: 18.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 4.187e-06/0.4502, allocations: 0 / 0.5127 GB, free: 18.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=102): time 0.01013/0.4603, allocations: 3.938 MB / 0.5165 GB, free: 16.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/0.4605, allocations: 67.81 kB / 0.5166 GB, free: 16.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00213/0.4626, allocations: 0.6836 MB / 0.5172 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.4628, allocations: 41.7 kB / 0.5173 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005432/0.4634, allocations: 0.5047 MB / 0.5178 GB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007488/0.4641, allocations: 410.7 kB / 0.5182 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009712/0.4651, allocations: 242.2 kB / 0.5184 GB, free: 15.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.4654, allocations: 410 kB / 0.5188 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002252/0.4676, allocations: 0.8505 MB / 0.5196 GB, free: 14.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/0.4701, allocations: 0.9997 MB / 0.5206 GB, free: 13.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0202/0.4904, allocations: 4.445 MB / 0.5249 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.707e-05/0.4904, allocations: 5.281 kB / 0.5249 GB, free: 12.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00821/0.4987, allocations: 2.468 MB / 0.5273 GB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/0.4987, allocations: 7.188 kB / 0.5273 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.4988, allocations: 6 kB / 0.5274 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.5012, allocations: 0.5345 MB / 0.5279 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00223/0.5034, allocations: 403.4 kB / 0.5283 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01811/0.5216, allocations: 23.05 MB / 0.5508 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.5234, allocations: 141.7 kB / 0.5509 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004553/0.5239, allocations: 46.36 kB / 0.5509 GB, free: 3.047 MB / 398.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.00153/0.5254, allocations: 426.5 kB / 0.5514 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005073/0.5259, allocations: 91.22 kB / 0.5514 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.5302, allocations: 1.984 MB / 0.5534 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.5302, allocations: 8 kB / 0.5534 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/0.5303, allocations: 8 kB / 0.5534 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5303, allocations: 3.984 kB / 0.5534 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006174/0.5364, allocations: 3.548 MB / 0.5569 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5365, allocations: 7.984 kB / 0.5569 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/0.5385, allocations: 333.2 kB / 0.5572 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.5398, allocations: 476.7 kB / 0.5576 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001804/0.54, allocations: 71.95 kB / 0.5577 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01809/0.5581, allocations: 22.15 MB / 0.5793 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/0.5582, allocations: 11.95 kB / 0.5794 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006389/0.5646, allocations: 2.728 MB / 0.582 GB, free: 1.484 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005139/0.5652, allocations: 195.7 kB / 0.5822 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004341/0.5656, allocations: 63.97 kB / 0.5823 GB, free: 1.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.5667, allocations: 55.94 kB / 0.5823 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.567, allocations: 92.75 kB / 0.5824 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5672, allocations: 31.98 kB / 0.5824 GB, free: 1.035 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008738/0.568, allocations: 487 kB / 0.5829 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5681, allocations: 4 kB / 0.5829 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002249/0.5703, allocations: 0.4991 MB / 0.5834 GB, free: 60 kB / 430.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.0004034/0.5707, allocations: 181.4 kB / 0.5836 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005126/0.5759, allocations: 3.432 MB / 0.5869 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.5759, allocations: 0.75 kB / 0.5869 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.5791, allocations: 2.457 MB / 0.5893 GB, free: 9.605 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.5809, allocations: 312.9 kB / 0.5896 GB, free: 9.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.5915, allocations: 5.504 MB / 0.595 GB, free: 3.809 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.5931, allocations: 1.27 MB / 0.5962 GB, free: 2.512 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001694/0.5948, allocations: 366.2 kB / 0.5966 GB, free: 2.152 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000556/0.5954, allocations: 79.42 kB / 0.5967 GB, free: 2.078 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5954, allocations: 0 / 0.5967 GB, free: 2.078 MB / 446.1 MB Notification: Performance of Templates: time 0.04225/0.6377, allocations: 23.16 MB / 0.6193 GB, free: 11.19 MB / 478.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)