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.001379/0.00138, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001458/0.001458, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0923/0.0923, allocations: 22.33 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.55 kB / 382.2 MB, free: 41.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09998/0.1012, allocations: 54.97 MB / 437.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005413/0.1067, allocations: 4.415 MB / 441.6 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.1089, allocations: 1.278 MB / 442.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.1091, allocations: 15.88 kB / 442.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.1095, allocations: 170.5 kB / 443.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006292/0.1101, allocations: 433.5 kB / 443.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00066/0.1108, allocations: 307.6 kB / 443.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.1125, allocations: 2.173 MB / 446 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.114, allocations: 1.602 MB / 447.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008179/0.1149, allocations: 0.8456 MB / 448.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.1159, allocations: 0.9699 MB / 449.4 MB, free: 88 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002563/0.1162, allocations: 232 kB / 449.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.1165, allocations: 228 kB / 449.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005086/0.117, allocations: 0.6975 MB / 450.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008072/0.1178, allocations: 0.9145 MB / 451.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001859/0.1197, allocations: 2.567 MB / 454 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1197, allocations: 0 / 454 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1197, allocations: 0 / 454 MB, free: 11.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.045e-05/0.1197, allocations: 0 / 454 MB, free: 11.44 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.004342/0.1241, allocations: 2.008 MB / 456 MB, free: 9.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.1241, allocations: 8.031 kB / 456 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.1244, allocations: 151.2 kB / 456.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001429/0.1259, allocations: 0.8719 MB / 457.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.126, allocations: 116.6 kB / 457.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.1262, allocations: 140.2 kB / 457.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/0.1289, allocations: 1.593 MB / 458.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1289, allocations: 0 / 458.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.1291, allocations: 48 kB / 458.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.1291, allocations: 28 kB / 459 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/0.1315, allocations: 1.411 MB / 460.4 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/0.1416, allocations: 7.093 MB / 467.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/0.1465, allocations: 1.87 MB / 469.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.1476, allocations: 0.7386 MB / 470.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.956e-05/0.1477, allocations: 16.98 kB / 470.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1477, allocations: 44.12 kB / 470.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.715e-06/0.1477, allocations: 3.938 kB / 470.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007032/0.1548, allocations: 3.924 MB / 474.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1549, allocations: 64.41 kB / 474.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009012/0.1558, allocations: 0.6839 MB / 474.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.527e-05/0.1559, allocations: 41.7 kB / 474.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.1562, allocations: 0.507 MB / 475.4 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003712/0.1566, allocations: 426 kB / 475.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004094/0.157, allocations: 235.5 kB / 476 MB, free: 4.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.1572, allocations: 414.7 kB / 476.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.1584, allocations: 0.8507 MB / 477.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.1598, allocations: 1.005 MB / 478.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.1727, allocations: 4.455 MB / 482.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.1728, allocations: 4 kB / 482.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00444/0.1772, allocations: 2.464 MB / 485.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1773, allocations: 4 kB / 485.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.1773, allocations: 8 kB / 485.2 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/0.179, allocations: 0.5356 MB / 485.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.1808, allocations: 407.4 kB / 486.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/0.1985, allocations: 23.04 MB / 0.4973 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/0.2001, allocations: 138.7 kB / 0.4974 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.2002, allocations: 55.98 kB / 0.4974 GB, free: 0.6211 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.000981/0.2012, allocations: 437.4 kB / 0.4979 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.2015, allocations: 90.88 kB / 0.4979 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003653/0.2052, allocations: 1.99 MB / 0.4999 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.2052, allocations: 8 kB / 0.4999 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.2052, allocations: 4 kB / 0.4999 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.2052, allocations: 7.984 kB / 0.4999 GB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006072/0.2113, allocations: 3.708 MB / 0.5035 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.2113, allocations: 4 kB / 0.5035 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/0.2133, allocations: 339.6 kB / 0.5039 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.2147, allocations: 484.8 kB / 0.5043 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.2148, allocations: 67.95 kB / 0.5044 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2/0.4148, allocations: 22.15 MB / 0.526 GB, free: 66.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.4149, allocations: 7.656 kB / 0.526 GB, free: 66.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004385/0.4193, allocations: 2.732 MB / 0.5287 GB, free: 65.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.4196, allocations: 191.7 kB / 0.5289 GB, free: 65.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.4198, allocations: 67.33 kB / 0.5289 GB, free: 65.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006892/0.4205, allocations: 50.92 kB / 0.529 GB, free: 65.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000332/0.4209, allocations: 105 kB / 0.5291 GB, free: 65.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-05/0.421, allocations: 34.14 kB / 0.5291 GB, free: 65.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000624/0.4216, allocations: 469.8 kB / 0.5296 GB, free: 65.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4216, allocations: 0 / 0.5296 GB, free: 65.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4232, allocations: 0.4987 MB / 0.5301 GB, free: 65.56 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.0002724/0.4235, allocations: 186.7 kB / 0.5302 GB, free: 65.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003907/0.4274, allocations: 3.43 MB / 0.5336 GB, free: 63.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.4275, allocations: 1.094 kB / 0.5336 GB, free: 63.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002502/0.43, allocations: 2.456 MB / 0.536 GB, free: 62.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.4313, allocations: 314.4 kB / 0.5363 GB, free: 62.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008907/0.4402, allocations: 5.552 MB / 0.5417 GB, free: 59.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000957/0.4412, allocations: 1.273 MB / 0.5429 GB, free: 58.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.4425, allocations: 372.5 kB / 0.5433 GB, free: 58.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/0.4429, allocations: 77.83 kB / 0.5434 GB, free: 58.89 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4429, allocations: 2.406 kB / 0.5434 GB, free: 58.89 MB / 398.1 MB Notification: Performance of Templates: time 0.03062/0.4735, allocations: 22.75 MB / 0.5656 GB, free: 43.96 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)