Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001846/0.001846, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2262/0.2262, allocations: 22.34 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004407, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4309, allocations: 55.97 MB / 437.9 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003518/0.4345, allocations: 2.973 MB / 440.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.4361, allocations: 0.9166 MB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.4363, allocations: 9.281 kB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.4365, allocations: 72.28 kB / 441.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.4369, allocations: 245.9 kB / 442.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.4375, allocations: 123.5 kB / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.4387, allocations: 1.286 MB / 443.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008132/0.4395, allocations: 0.6312 MB / 444.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004332/0.44, allocations: 365.5 kB / 444.5 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006808/0.4407, allocations: 0.5222 MB / 445 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.4408, allocations: 60.16 kB / 445.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.4409, allocations: 53.25 kB / 445.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002929/0.4412, allocations: 323.9 kB / 445.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.4414, allocations: 189.9 kB / 445.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.4425, allocations: 1.149 MB / 446.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4425, allocations: 0 / 446.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4425, allocations: 0 / 446.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.4425, allocations: 2.875 kB / 446.8 MB, free: 34.91 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.00228/0.4448, allocations: 1.153 MB / 447.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.4449, allocations: 9 kB / 448 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.4451, allocations: 92.5 kB / 448 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.4459, allocations: 0.549 MB / 448.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.212e-05/0.446, allocations: 82.64 kB / 448.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.4461, allocations: 83.77 kB / 448.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.4477, allocations: 0.9207 MB / 449.7 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.4477, allocations: 0 / 449.7 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.12e-05/0.4478, allocations: 25.88 kB / 449.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.4478, allocations: 17.38 kB / 449.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001264/0.4491, allocations: 0.8102 MB / 450.5 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.4541, allocations: 3.991 MB / 454.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.4564, allocations: 1.02 MB / 455.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.457, allocations: 411.8 kB / 455.9 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.457, allocations: 18.72 kB / 456 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.4571, allocations: 37.38 kB / 456 MB, free: 29.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.415e-06/0.4571, allocations: 1.031 kB / 456 MB, free: 29.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003672/0.4608, allocations: 2.396 MB / 458.4 MB, free: 28.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.4608, allocations: 57.59 kB / 458.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.4613, allocations: 411.1 kB / 458.9 MB, free: 28.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.4613, allocations: 34.89 kB / 458.9 MB, free: 27.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.4615, allocations: 332.1 kB / 459.2 MB, free: 27.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.4617, allocations: 230.5 kB / 459.4 MB, free: 27.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.4617, allocations: 14.09 kB / 459.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4618, allocations: 367.3 kB / 459.8 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.4625, allocations: 453.1 kB / 460.3 MB, free: 27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007261/0.4632, allocations: 499.5 kB / 460.7 MB, free: 26.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007969/0.464, allocations: 0.4919 MB / 461.2 MB, free: 26.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.464, allocations: 1.094 kB / 461.2 MB, free: 26.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002548/0.4666, allocations: 1.341 MB / 462.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.4666, allocations: 5.781 kB / 462.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.4667, allocations: 1.094 kB / 462.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.4678, allocations: 349.8 kB / 462.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009072/0.4687, allocations: 185.7 kB / 463.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008163/0.4769, allocations: 14.09 MB / 477.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006847/0.4776, allocations: 73.25 kB / 477.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.229e-05/0.4777, allocations: 29.03 kB / 477.3 MB, free: 11.9 MB / 350.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005903/0.4783, allocations: 291.6 kB / 477.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.4784, allocations: 53.11 kB / 477.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.4805, allocations: 1.134 MB / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.4805, allocations: 5.875 kB / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.4805, allocations: 3.312 kB / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4806, allocations: 3.188 kB / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.484, allocations: 2.12 MB / 480.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.484, allocations: 2.047 kB / 480.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000975/0.485, allocations: 170.3 kB / 481.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008299/0.4858, allocations: 306.3 kB / 481.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.367e-05/0.4859, allocations: 36 kB / 481.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007705/0.4936, allocations: 13.65 MB / 495.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.4936, allocations: 5.688 kB / 495.1 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.4966, allocations: 1.594 MB / 496.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.4968, allocations: 145.4 kB / 496.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.4969, allocations: 34.17 kB / 496.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004417/0.4974, allocations: 37.5 kB / 496.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4976, allocations: 54.39 kB / 496.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.584e-05/0.4977, allocations: 18 kB / 496.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004249/0.4981, allocations: 300.2 kB / 497.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4981, allocations: 0 / 497.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001319/0.4994, allocations: 295.7 kB / 497.5 MB, free: 11.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002547/0.4997, allocations: 143.6 kB / 497.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003106/0.5028, allocations: 2.052 MB / 499.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5028, allocations: 0 / 499.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.5046, allocations: 1.553 MB / 0.4895 GB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009726/0.5056, allocations: 167.2 kB / 0.4897 GB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007029/0.5127, allocations: 3.603 MB / 0.4932 GB, free: 5.938 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007987/0.5135, allocations: 1.015 MB / 0.4942 GB, free: 5.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007344/0.5142, allocations: 161.6 kB / 0.4943 GB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.5144, allocations: 43.44 kB / 0.4944 GB, free: 5.125 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5144, allocations: 4 kB / 0.4944 GB, free: 5.121 MB / 366.1 MB Notification: Performance of Templates: time 0.02156/0.536, allocations: 11.89 MB / 0.506 GB, free: 9.391 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)