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.001163/0.001163, allocations: 109.3 kB / 15.99 MB, free: 6.344 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.00118/0.00118, allocations: 197.9 kB / 16.91 MB, free: 6.176 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.193/1.193, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08421/0.08421, allocations: 22.32 MB / 313.1 MB, free: 9.117 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 61.52 kB / 380.9 MB, free: 41.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.08106, allocations: 54.96 MB / 435.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004058/0.08514, allocations: 3.503 MB / 439.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.08686, allocations: 0.9391 MB / 440.3 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.08721, allocations: 7.938 kB / 440.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002747/0.0875, allocations: 79.45 kB / 440.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005167/0.08804, allocations: 230.8 kB / 440.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.08862, allocations: 175.8 kB / 440.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.08981, allocations: 1.229 MB / 442 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.09087, allocations: 0.8708 MB / 442.9 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005703/0.09145, allocations: 494.7 kB / 443.4 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000606/0.09207, allocations: 0.6077 MB / 444 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.09223, allocations: 132 kB / 444.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.09239, allocations: 132 kB / 444.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002769/0.09268, allocations: 399.1 kB / 444.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004228/0.0931, allocations: 0.533 MB / 445.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008212/0.09393, allocations: 1.189 MB / 446.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.09394, allocations: 0 / 446.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09395, allocations: 0 / 446.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.09397, allocations: 0 / 446.4 MB, free: 2.965 MB / 318.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.002311/0.09628, allocations: 1.287 MB / 447.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.09632, allocations: 8.031 kB / 447.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.09649, allocations: 91.91 kB / 447.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006733/0.09717, allocations: 0.566 MB / 448.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-05/0.09725, allocations: 80.27 kB / 448.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.09738, allocations: 84.28 kB / 448.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.09875, allocations: 0.9249 MB / 449.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.09878, allocations: 0 / 449.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.09886, allocations: 32 kB / 449.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.09888, allocations: 16 kB / 449.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1001, allocations: 0.812 MB / 450.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004984/0.1051, allocations: 3.974 MB / 454.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/0.1076, allocations: 1.025 MB / 455.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005687/0.1082, allocations: 430.3 kB / 455.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.007e-05/0.1083, allocations: 4.562 kB / 455.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.1083, allocations: 39.12 kB / 455.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.244e-06/0.1083, allocations: 0 / 455.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.00381/0.1121, allocations: 2.35 MB / 458.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.1122, allocations: 59.97 kB / 458.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.1126, allocations: 421.7 kB / 458.5 MB, free: 6.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.1127, allocations: 37.64 kB / 458.6 MB, free: 6.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.1129, allocations: 331.8 kB / 458.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.1131, allocations: 232.8 kB / 459.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.1133, allocations: 122.7 kB / 459.2 MB, free: 5.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1134, allocations: 366.8 kB / 459.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.114, allocations: 451.7 kB / 460 MB, free: 4.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000626/0.1146, allocations: 0.4926 MB / 460.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006587/0.1212, allocations: 2.363 MB / 462.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1213, allocations: 0 / 462.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002255/0.1235, allocations: 1.341 MB / 464.2 MB, free: 336 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1236, allocations: 13.81 kB / 464.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1236, allocations: 0 / 464.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.1246, allocations: 340.3 kB / 464.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008171/0.1255, allocations: 191.8 kB / 464.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009918/0.1354, allocations: 15.16 MB / 479.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.1361, allocations: 75.38 kB / 480 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.991e-05/0.1362, allocations: 23.98 kB / 480 MB, free: 15.07 MB / 366.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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00048/0.1367, allocations: 289.5 kB / 480.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.1368, allocations: 51.34 kB / 480.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.1388, allocations: 1.135 MB / 481.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1388, allocations: 4 kB / 481.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.1388, allocations: 4 kB / 481.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.1388, allocations: 3.984 kB / 481.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.1419, allocations: 2.126 MB / 483.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.142, allocations: 4 kB / 483.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009554/0.1429, allocations: 163.8 kB / 483.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008143/0.1437, allocations: 312.5 kB / 484.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-05/0.1438, allocations: 39.97 kB / 484.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009311/0.1531, allocations: 14.71 MB / 498.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/0.1532, allocations: 11.91 kB / 498.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002797/0.156, allocations: 1.584 MB / 0.4887 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.1562, allocations: 152.3 kB / 0.4889 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.1563, allocations: 32.12 kB / 0.4889 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004605/0.1568, allocations: 35.95 kB / 0.4889 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.157, allocations: 56.42 kB / 0.489 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.006e-05/0.157, allocations: 20 kB / 0.489 GB, free: 8.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003257/0.1574, allocations: 295.2 kB / 0.4893 GB, free: 8.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1574, allocations: 0 / 0.4893 GB, free: 8.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009027/0.1583, allocations: 295.4 kB / 0.4896 GB, free: 8.125 MB / 382.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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001841/0.1585, allocations: 138.4 kB / 0.4897 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.1612, allocations: 2.216 MB / 0.4919 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1612, allocations: 4.312 kB / 0.4919 GB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/0.1626, allocations: 1.553 MB / 0.4934 GB, free: 3.949 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007049/0.1633, allocations: 173.3 kB / 0.4935 GB, free: 3.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004971/0.1683, allocations: 3.418 MB / 0.4969 GB, free: 336 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/0.1689, allocations: 1.016 MB / 0.4979 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/0.1692, allocations: 47.42 kB / 0.4979 GB, free: 15.24 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1692, allocations: 0 / 0.4979 GB, free: 15.24 MB / 398.1 MB Notification: Performance of Templates: time 0.1818/0.351, allocations: 35.77 MB / 0.5328 GB, free: 73.43 MB / 398.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)