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.001118/0.001118, allocations: 111 kB / 16.37 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.001193/0.001193, allocations: 191.7 kB / 17.3 MB, free: 5.613 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09171/0.0917, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002539/0.00254, allocations: 61.91 kB / 382.2 MB, free: 41.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.116, allocations: 54.97 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.00604/0.1221, allocations: 4.418 MB / 441.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.1248, allocations: 1.271 MB / 442.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005664/0.1254, allocations: 19.88 kB / 442.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004834/0.1259, allocations: 166.5 kB / 443.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001274/0.1272, allocations: 433.5 kB / 443.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009484/0.1282, allocations: 311.5 kB / 443.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002675/0.1308, allocations: 2.169 MB / 446 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/0.1329, allocations: 1.61 MB / 447.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001445/0.1344, allocations: 0.8378 MB / 448.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001792/0.1362, allocations: 0.9739 MB / 449.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003925/0.1366, allocations: 231.9 kB / 449.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003868/0.137, allocations: 232 kB / 449.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005632/0.1376, allocations: 0.6898 MB / 450.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008559/0.1384, allocations: 0.9184 MB / 451.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001933/0.1404, allocations: 2.567 MB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1404, allocations: 4 kB / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1404, allocations: 0 / 454 MB, free: 11.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.1404, allocations: 0 / 454 MB, free: 11.33 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004047/0.1445, allocations: 2.014 MB / 456 MB, free: 9.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1445, allocations: 8.031 kB / 456.1 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.1448, allocations: 151.2 kB / 456.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.1462, allocations: 0.8719 MB / 457.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.1463, allocations: 120.6 kB / 457.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.1466, allocations: 136.2 kB / 457.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/0.1491, allocations: 1.593 MB / 458.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.1492, allocations: 4 kB / 458.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.1493, allocations: 48 kB / 459 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.1493, allocations: 28 kB / 459 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.1516, allocations: 1.403 MB / 460.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.1623, allocations: 7.082 MB / 467.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004542/0.1669, allocations: 1.878 MB / 469.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.168, allocations: 0.7346 MB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.589e-05/0.1681, allocations: 17.64 kB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1681, allocations: 55.48 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.584e-06/0.1682, allocations: 0 / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006829/0.175, allocations: 3.924 MB / 474.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1751, allocations: 64.41 kB / 474.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.1762, allocations: 0.6761 MB / 474.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.1763, allocations: 45.7 kB / 474.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004043/0.1767, allocations: 0.5032 MB / 475.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.1772, allocations: 425.9 kB / 475.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004854/0.1777, allocations: 243.5 kB / 476 MB, free: 4.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.1779, allocations: 414.7 kB / 476.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.1792, allocations: 0.8468 MB / 477.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.1806, allocations: 0.9967 MB / 478.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01272/0.1933, allocations: 4.463 MB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/0.1933, allocations: 4 kB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00462/0.198, allocations: 2.464 MB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.198, allocations: 12.03 kB / 485.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.198, allocations: 4 kB / 485.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.1998, allocations: 0.5355 MB / 485.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.2016, allocations: 407.5 kB / 486.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01656/0.2182, allocations: 23.05 MB / 0.4973 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.2197, allocations: 138.8 kB / 0.4974 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004515/0.2202, allocations: 51.98 kB / 0.4974 GB, free: 0.5078 MB / 382.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.001544/0.2218, allocations: 433.3 kB / 0.4979 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.2223, allocations: 91.05 kB / 0.4979 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004096/0.2264, allocations: 1.99 MB / 0.4999 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.2265, allocations: 8 kB / 0.4999 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.28e-05/0.2265, allocations: 4 kB / 0.4999 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.2265, allocations: 3.984 kB / 0.4999 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006645/0.2332, allocations: 3.716 MB / 0.5035 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.2332, allocations: 4 kB / 0.5035 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.2352, allocations: 343.6 kB / 0.5039 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.2365, allocations: 484.8 kB / 0.5043 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.2366, allocations: 59.97 kB / 0.5044 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2446/0.4812, allocations: 22.15 MB / 0.526 GB, free: 66.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.4813, allocations: 4.469 kB / 0.526 GB, free: 66.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.487, allocations: 2.732 MB / 0.5287 GB, free: 65.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.4875, allocations: 191.4 kB / 0.5289 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003636/0.4879, allocations: 67.2 kB / 0.5289 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4889, allocations: 55.86 kB / 0.529 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/0.4892, allocations: 97.73 kB / 0.5291 GB, free: 65.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.4893, allocations: 30.88 kB / 0.5291 GB, free: 65.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007295/0.4901, allocations: 473.2 kB / 0.5296 GB, free: 65.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4901, allocations: 5.344 kB / 0.5296 GB, free: 65.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001975/0.4921, allocations: 0.5023 MB / 0.5301 GB, free: 65.53 MB / 398.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.0003385/0.4924, allocations: 185.5 kB / 0.5302 GB, free: 65.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004969/0.4974, allocations: 3.422 MB / 0.5336 GB, free: 63.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4974, allocations: 0 / 0.5336 GB, free: 63.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.5002, allocations: 2.456 MB / 0.536 GB, free: 62.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.5017, allocations: 323.9 kB / 0.5363 GB, free: 62.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009749/0.5115, allocations: 5.551 MB / 0.5417 GB, free: 59.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/0.5127, allocations: 1.274 MB / 0.543 GB, free: 58.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001242/0.5139, allocations: 367.2 kB / 0.5433 GB, free: 58.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.5143, allocations: 81.14 kB / 0.5434 GB, free: 58.86 MB / 398.1 MB Notification: Performance of SimCode: time 1.723e-06/0.5144, allocations: 3.938 kB / 0.5434 GB, free: 58.86 MB / 398.1 MB Notification: Performance of Templates: time 0.03348/0.5478, allocations: 22.75 MB / 0.5656 GB, free: 43.95 MB / 398.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)