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.001093/0.001093, allocations: 102.2 kB / 16.36 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.001026/0.001026, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.385/1.385, 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.09246/0.09246, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 62.25 kB / 382.2 MB, free: 41.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1063, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.006341/0.1127, allocations: 4.388 MB / 441.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.1155, allocations: 1.263 MB / 442.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006692/0.1162, allocations: 15.88 kB / 442.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005518/0.1168, allocations: 166.6 kB / 443 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.118, allocations: 433.4 kB / 443.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.119, allocations: 307.6 kB / 443.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002385/0.1214, allocations: 2.154 MB / 445.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001698/0.1231, allocations: 1.586 MB / 447.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009269/0.1241, allocations: 0.8223 MB / 448.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.1252, allocations: 0.9777 MB / 449.3 MB, free: 76 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.1255, allocations: 236 kB / 449.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002753/0.1257, allocations: 236 kB / 449.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005277/0.1263, allocations: 0.7092 MB / 450.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008408/0.1271, allocations: 0.9183 MB / 451.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002065/0.1292, allocations: 2.594 MB / 454 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1292, allocations: 0 / 454 MB, free: 11.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1292, allocations: 0 / 454 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.1293, allocations: 0 / 454 MB, free: 11.38 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004247/0.1335, allocations: 2.014 MB / 456 MB, free: 9.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1336, allocations: 8.031 kB / 456 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/0.1338, allocations: 159.2 kB / 456.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.1353, allocations: 0.868 MB / 457 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.1354, allocations: 112.6 kB / 457.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.1357, allocations: 140.2 kB / 457.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.1382, allocations: 1.589 MB / 458.9 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.1383, allocations: 0 / 458.9 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.1384, allocations: 48 kB / 458.9 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.1384, allocations: 28 kB / 458.9 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.1406, allocations: 1.423 MB / 460.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009631/0.1502, allocations: 7.121 MB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004623/0.1549, allocations: 1.886 MB / 469.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.156, allocations: 0.7222 MB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.996e-05/0.1561, allocations: 20.98 kB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1562, allocations: 47.48 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.015e-06/0.1562, allocations: 0 / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.00667/0.1629, allocations: 3.94 MB / 474.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1629, allocations: 60.41 kB / 474.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009014/0.1638, allocations: 0.6915 MB / 474.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.793e-05/0.1639, allocations: 41.7 kB / 474.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.1642, allocations: 0.4954 MB / 475.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/0.1646, allocations: 410.2 kB / 475.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003922/0.165, allocations: 239.5 kB / 476 MB, free: 4.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1652, allocations: 414.7 kB / 476.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.1665, allocations: 0.8429 MB / 477.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.1678, allocations: 1.008 MB / 478.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/0.181, allocations: 4.455 MB / 482.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.181, allocations: 4 kB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004488/0.1855, allocations: 2.464 MB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.1856, allocations: 8 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.1856, allocations: 4 kB / 485.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.1874, allocations: 0.5395 MB / 485.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.1892, allocations: 391.5 kB / 486.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01794/0.2071, allocations: 23.04 MB / 0.4972 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.2086, allocations: 138.7 kB / 0.4974 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.2087, allocations: 51.98 kB / 0.4974 GB, free: 0.5391 MB / 382.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.0008345/0.2095, allocations: 445.2 kB / 0.4978 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.2097, allocations: 86.97 kB / 0.4979 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003794/0.2135, allocations: 1.971 MB / 0.4998 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.2136, allocations: 12 kB / 0.4999 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.2136, allocations: 4 kB / 0.4999 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.2136, allocations: 3.984 kB / 0.4999 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006054/0.2197, allocations: 3.55 MB / 0.5033 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.2197, allocations: 0 / 0.5033 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.2216, allocations: 335.6 kB / 0.5036 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.2229, allocations: 480.8 kB / 0.5041 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001399/0.2231, allocations: 63.97 kB / 0.5042 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2207/0.4438, allocations: 22.15 MB / 0.5258 GB, free: 65.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4438, allocations: 14.44 kB / 0.5258 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004575/0.4484, allocations: 2.734 MB / 0.5285 GB, free: 65.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.4488, allocations: 199.4 kB / 0.5287 GB, free: 65.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001861/0.449, allocations: 60.72 kB / 0.5287 GB, free: 65.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006947/0.4497, allocations: 49.31 kB / 0.5288 GB, free: 65.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003065/0.45, allocations: 103.2 kB / 0.5289 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.268e-05/0.4501, allocations: 33.2 kB / 0.5289 GB, free: 65.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005655/0.4506, allocations: 479.9 kB / 0.5294 GB, free: 65.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4506, allocations: 0 / 0.5294 GB, free: 65.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001542/0.4522, allocations: 0.4994 MB / 0.5299 GB, free: 65.37 MB / 398.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.0002636/0.4525, allocations: 179.8 kB / 0.53 GB, free: 65.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.4564, allocations: 3.425 MB / 0.5334 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.4565, allocations: 1.094 kB / 0.5334 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002309/0.4588, allocations: 2.457 MB / 0.5358 GB, free: 61.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.46, allocations: 317 kB / 0.5361 GB, free: 61.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008446/0.4685, allocations: 5.504 MB / 0.5415 GB, free: 59.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000951/0.4695, allocations: 1.267 MB / 0.5427 GB, free: 58.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001304/0.4708, allocations: 361.2 kB / 0.543 GB, free: 58.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.4711, allocations: 75.27 kB / 0.5431 GB, free: 58.71 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4711, allocations: 4 kB / 0.5431 GB, free: 58.71 MB / 398.1 MB Notification: Performance of Templates: time 0.03048/0.5016, allocations: 22.71 MB / 0.5653 GB, free: 43.83 MB / 398.1 MB 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)