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.001221/0.001221, allocations: 101.8 kB / 16.36 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: 193.3 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.091/0.091, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 60.67 kB / 382.2 MB, free: 41.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1088, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004621/0.1135, allocations: 3.335 MB / 440.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.1154, allocations: 0.9352 MB / 441.5 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003378/0.1157, allocations: 11.94 kB / 441.5 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.1161, allocations: 99.14 kB / 441.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006388/0.1167, allocations: 262.4 kB / 441.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.1175, allocations: 183.7 kB / 442 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.1189, allocations: 1.229 MB / 443.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009513/0.1199, allocations: 0.8864 MB / 444.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/0.1204, allocations: 482.8 kB / 444.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006556/0.121, allocations: 0.5647 MB / 445.2 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.1212, allocations: 136 kB / 445.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.1214, allocations: 135.9 kB / 445.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003174/0.1217, allocations: 403 kB / 445.8 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004893/0.1222, allocations: 0.5292 MB / 446.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1235, allocations: 1.461 MB / 447.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1235, allocations: 0 / 447.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1235, allocations: 0 / 447.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1235, allocations: 3.938 kB / 447.8 MB, free: 1.598 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.002457/0.126, allocations: 1.283 MB / 449.1 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.126, allocations: 8.031 kB / 449.1 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.1262, allocations: 91.91 kB / 449.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009022/0.1271, allocations: 0.5659 MB / 449.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.998e-05/0.1272, allocations: 84.27 kB / 449.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1273, allocations: 84.27 kB / 449.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.1287, allocations: 0.925 MB / 450.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.1288, allocations: 0 / 450.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-05/0.1289, allocations: 28 kB / 450.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.1289, allocations: 16 kB / 450.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.1302, allocations: 0.8121 MB / 451.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005901/0.1361, allocations: 3.95 MB / 455.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002719/0.1388, allocations: 1.029 MB / 456.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/0.1395, allocations: 410.4 kB / 457.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.052e-05/0.1395, allocations: 16.55 kB / 457.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.1396, allocations: 35.12 kB / 457.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.755e-06/0.1396, allocations: 4 kB / 457.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004002/0.1436, allocations: 2.354 MB / 459.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.1437, allocations: 63.91 kB / 459.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004686/0.1442, allocations: 413.7 kB / 460 MB, free: 4.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.1442, allocations: 37.7 kB / 460 MB, free: 4.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1444, allocations: 327.9 kB / 460.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.1446, allocations: 228.7 kB / 460.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.1449, allocations: 122.7 kB / 460.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.145, allocations: 370.8 kB / 461 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006377/0.1457, allocations: 452.6 kB / 461.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006681/0.1463, allocations: 0.5004 MB / 462 MB, free: 2.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006628/0.153, allocations: 2.356 MB / 464.3 MB, free: 372 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.153, allocations: 4 kB / 464.3 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002451/0.1555, allocations: 1.337 MB / 465.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.1555, allocations: 7.938 kB / 465.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.1555, allocations: 8 kB / 465.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.1566, allocations: 340.3 kB / 466 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008794/0.1575, allocations: 183.8 kB / 466.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.1702, allocations: 15.15 MB / 481.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.1712, allocations: 71.34 kB / 481.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.1714, allocations: 27.98 kB / 481.4 MB, free: 13.75 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.0008442/0.1723, allocations: 287.8 kB / 481.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.1725, allocations: 55.34 kB / 481.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/0.1748, allocations: 1.135 MB / 482.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.1748, allocations: 8 kB / 482.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.1748, allocations: 0 / 482.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1748, allocations: 4 kB / 482.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003586/0.1784, allocations: 2.126 MB / 485 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1785, allocations: 4.031 kB / 485 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.1795, allocations: 175.8 kB / 485.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008154/0.1803, allocations: 304.3 kB / 485.5 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.645e-05/0.1804, allocations: 31.97 kB / 485.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009963/0.1904, allocations: 14.71 MB / 0.4885 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.1904, allocations: 3.938 kB / 0.4885 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.1932, allocations: 1.588 MB / 0.4901 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.1935, allocations: 156.2 kB / 0.4902 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.1936, allocations: 32.11 kB / 0.4903 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.1941, allocations: 27.97 kB / 0.4903 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.1943, allocations: 48.5 kB / 0.4903 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.1943, allocations: 19.98 kB / 0.4904 GB, free: 7.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.1947, allocations: 295.2 kB / 0.4906 GB, free: 7.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1947, allocations: 4 kB / 0.4906 GB, free: 7.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001059/0.1958, allocations: 295.4 kB / 0.4909 GB, free: 6.816 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.0002131/0.196, allocations: 141.3 kB / 0.4911 GB, free: 6.672 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002663/0.1987, allocations: 2.048 MB / 0.4931 GB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1987, allocations: 0 / 0.4931 GB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.2004, allocations: 1.549 MB / 0.4946 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008245/0.2012, allocations: 175.8 kB / 0.4947 GB, free: 2.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005509/0.2068, allocations: 3.031 MB / 0.4977 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000775/0.2076, allocations: 1.02 MB / 0.4987 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.2081, allocations: 168.6 kB / 0.4989 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/0.2083, allocations: 43.44 kB / 0.4989 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2084, allocations: 3.938 kB / 0.4989 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Templates: time 0.0221/0.2305, allocations: 12.88 MB / 0.5115 GB, free: 1.57 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)