Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 103.5 kB / 16.4 MB, free: 6.469 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.001196/0.001197, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08846/0.08846, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1047, allocations: 54.94 MB / 492.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.005776/0.1105, allocations: 4.39 MB / 497 MB, free: 348 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1132, allocations: 1.267 MB / 498.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.1138, allocations: 11.94 kB / 498.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000522/0.1144, allocations: 166.6 kB / 498.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.1155, allocations: 433.5 kB / 498.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008863/0.1164, allocations: 307.5 kB / 499.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002089/0.1185, allocations: 2.154 MB / 0.4896 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.1203, allocations: 1.594 MB / 0.4912 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009878/0.1213, allocations: 0.8223 MB / 0.492 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.1225, allocations: 0.9854 MB / 0.4929 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003011/0.1228, allocations: 240 kB / 0.4932 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003482/0.1232, allocations: 239.9 kB / 0.4934 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00053/0.1237, allocations: 0.6859 MB / 0.4941 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008209/0.1245, allocations: 0.9339 MB / 0.495 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.1266, allocations: 2.583 MB / 0.4975 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1266, allocations: 0 / 0.4975 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1266, allocations: 0 / 0.4975 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.1266, allocations: 0 / 0.4975 GB, free: 3.871 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.00441/0.131, allocations: 2.025 MB / 0.4995 GB, free: 1.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1311, allocations: 12.03 kB / 0.4995 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003034/0.1314, allocations: 147.2 kB / 0.4996 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.1327, allocations: 0.8603 MB / 0.5005 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.1328, allocations: 116.6 kB / 0.5006 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002552/0.1331, allocations: 140.2 kB / 0.5007 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2151/0.3482, allocations: 1.582 MB / 0.5023 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.785e-05/0.3483, allocations: 3.344 kB / 0.5023 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002536/0.3485, allocations: 47.02 kB / 0.5023 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.3486, allocations: 30.44 kB / 0.5023 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002405/0.351, allocations: 1.417 MB / 0.5037 GB, free: 21.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009184/0.3602, allocations: 7.105 MB / 0.5107 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.3649, allocations: 1.894 MB / 0.5125 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001179/0.3661, allocations: 0.7263 MB / 0.5132 GB, free: 18.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.3662, allocations: 13.52 kB / 0.5132 GB, free: 18.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.3662, allocations: 42.2 kB / 0.5133 GB, free: 18.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.035e-06/0.3662, allocations: 2.844 kB / 0.5133 GB, free: 18.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=102): time 0.0068/0.373, allocations: 3.934 MB / 0.5171 GB, free: 16.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.3731, allocations: 67.45 kB / 0.5172 GB, free: 16.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.3741, allocations: 0.6839 MB / 0.5178 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.3742, allocations: 45.55 kB / 0.5179 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003135/0.3745, allocations: 0.509 MB / 0.5184 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003694/0.3749, allocations: 411.7 kB / 0.5188 GB, free: 15.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/0.3755, allocations: 234.4 kB / 0.519 GB, free: 15.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3756, allocations: 414.9 kB / 0.5194 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.3769, allocations: 0.8425 MB / 0.5202 GB, free: 14.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.3782, allocations: 1.002 MB / 0.5212 GB, free: 13.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.3909, allocations: 4.45 MB / 0.5255 GB, free: 12.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.3909, allocations: 1.156 kB / 0.5255 GB, free: 12.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004177/0.3951, allocations: 2.464 MB / 0.528 GB, free: 10.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.3952, allocations: 11.92 kB / 0.528 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.3952, allocations: 5.125 kB / 0.528 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.3968, allocations: 0.5396 MB / 0.5285 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.3985, allocations: 391.2 kB / 0.5289 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/0.4124, allocations: 23.06 MB / 0.5514 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.4137, allocations: 141.9 kB / 0.5515 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.4138, allocations: 48.27 kB / 0.5516 GB, free: 3.039 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.000721/0.4146, allocations: 429.1 kB / 0.552 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.4147, allocations: 92.59 kB / 0.5521 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003417/0.4182, allocations: 1.981 MB / 0.554 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4182, allocations: 12 kB / 0.554 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.4182, allocations: 4 kB / 0.554 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.4182, allocations: 7.969 kB / 0.554 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005231/0.4235, allocations: 3.55 MB / 0.5575 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.4235, allocations: 5.125 kB / 0.5575 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.4254, allocations: 335.6 kB / 0.5578 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.4267, allocations: 476.7 kB / 0.5583 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/0.4269, allocations: 67.97 kB / 0.5583 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/0.4417, allocations: 22.16 MB / 0.58 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4418, allocations: 7.938 kB / 0.58 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005083/0.4469, allocations: 2.732 MB / 0.5827 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000337/0.4472, allocations: 195.7 kB / 0.5828 GB, free: 1.301 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000267/0.4475, allocations: 59.97 kB / 0.5829 GB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008172/0.4483, allocations: 55.94 kB / 0.5829 GB, free: 1.188 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002899/0.4486, allocations: 100.8 kB / 0.583 GB, free: 1.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.883e-05/0.4488, allocations: 31.98 kB / 0.5831 GB, free: 1.059 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006693/0.4494, allocations: 481.5 kB / 0.5835 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4494, allocations: 0 / 0.5835 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001649/0.4511, allocations: 0.4991 MB / 0.584 GB, free: 96 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.000306/0.4514, allocations: 184.3 kB / 0.5842 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004553/0.456, allocations: 3.424 MB / 0.5875 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.456, allocations: 0 / 0.5875 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002912/0.4589, allocations: 2.462 MB / 0.5899 GB, free: 9.637 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.4605, allocations: 311 kB / 0.5902 GB, free: 9.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00942/0.4699, allocations: 5.608 MB / 0.5957 GB, free: 3.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/0.4711, allocations: 1.256 MB / 0.5969 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007248/0.4718, allocations: 87.42 kB / 0.597 GB, free: 2.359 MB / 446.1 MB Notification: Performance of SimCode: time 2.084e-06/0.4718, allocations: 4 kB / 0.597 GB, free: 2.355 MB / 446.1 MB Notification: Performance of Templates: time 0.07633/0.5482, allocations: 81.17 MB / 0.6763 GB, free: 1.109 MB / 0.5137 GB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)