Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 104 kB / 16.35 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.001171/0.001171, allocations: 191.2 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09219/0.09219, allocations: 22.34 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 60.98 kB / 382.2 MB, free: 40.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1018, allocations: 54.95 MB / 437.2 MB, free: 12.25 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop): time 0.031/0.1329, allocations: 22.52 MB / 459.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1349, allocations: 0.9122 MB / 460.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.1351, allocations: 7.938 kB / 460.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.1353, allocations: 79.23 kB / 460.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003405/0.1357, allocations: 218.5 kB / 460.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005253/0.1362, allocations: 211.6 kB / 461.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007258/0.1369, allocations: 0.8817 MB / 462 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005665/0.1375, allocations: 0.5591 MB / 462.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003489/0.1379, allocations: 374.9 kB / 462.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005264/0.1384, allocations: 474.5 kB / 463.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1385, allocations: 80 kB / 463.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.1386, allocations: 80 kB / 463.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.1389, allocations: 287.2 kB / 463.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003432/0.1392, allocations: 414.2 kB / 464.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007186/0.1399, allocations: 0.9539 MB / 465.2 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.14, allocations: 7.984 kB / 465.2 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.14, allocations: 4 kB / 465.2 MB, free: 356 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.14, allocations: 0 / 465.2 MB, free: 356 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.001956/0.1419, allocations: 1.041 MB / 466.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.142, allocations: 8.031 kB / 466.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.1421, allocations: 76.09 kB / 466.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.1428, allocations: 452.8 kB / 466.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.052e-05/0.1429, allocations: 79.58 kB / 466.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.143, allocations: 64.38 kB / 466.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.1441, allocations: 0.7209 MB / 467.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1441, allocations: 0 / 467.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.311e-05/0.1442, allocations: 28 kB / 467.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1442, allocations: 12 kB / 467.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1453, allocations: 0.6493 MB / 468.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004255/0.1495, allocations: 2.766 MB / 471.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.1513, allocations: 0.6451 MB / 471.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/0.1519, allocations: 382 kB / 472.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.77e-05/0.152, allocations: 12.42 kB / 472.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.152, allocations: 42.94 kB / 472.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.884e-06/0.152, allocations: 0 / 472.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002872/0.1549, allocations: 1.492 MB / 473.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.155, allocations: 55.84 kB / 473.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.1554, allocations: 429.8 kB / 474.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.1555, allocations: 37.7 kB / 474.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.1556, allocations: 300.2 kB / 474.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.1558, allocations: 197.2 kB / 474.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.156, allocations: 118.2 kB / 474.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1561, allocations: 362.8 kB / 475.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005319/0.1567, allocations: 343.6 kB / 475.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.1572, allocations: 378.2 kB / 475.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006957/0.1642, allocations: 2.051 MB / 477.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.1642, allocations: 7.938 kB / 477.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001858/0.1661, allocations: 0.9653 MB / 478.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1661, allocations: 4 kB / 478.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1661, allocations: 8.125 kB / 478.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006701/0.1668, allocations: 180.1 kB / 479 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.1681, allocations: 227.7 kB / 479.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005441/0.1735, allocations: 7.595 MB / 486.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/0.1742, allocations: 75.19 kB / 486.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/0.1742, allocations: 27.97 kB / 487 MB, free: 9.316 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0003737/0.1746, allocations: 218.5 kB / 487.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.794e-05/0.1747, allocations: 51.38 kB / 487.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.1763, allocations: 0.8331 MB / 488.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.1763, allocations: 7.938 kB / 488.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1763, allocations: 7.938 kB / 488.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.1764, allocations: 3.984 kB / 488.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.1792, allocations: 1.688 MB / 489.8 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1792, allocations: 0 / 489.8 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.1803, allocations: 183.8 kB / 489.9 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/0.1808, allocations: 144.3 kB / 490.1 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.1808, allocations: 19.98 kB / 490.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004687/0.1855, allocations: 7.218 MB / 497.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1856, allocations: 4 kB / 497.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.1876, allocations: 1.256 MB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.1878, allocations: 144.3 kB / 498.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.965e-05/0.1879, allocations: 23.92 kB / 498.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.1883, allocations: 19.98 kB / 498.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1884, allocations: 44.38 kB / 498.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-05/0.1885, allocations: 23.92 kB / 498.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003245/0.1888, allocations: 299.1 kB / 499.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1888, allocations: 3.938 kB / 499.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007329/0.1896, allocations: 231.6 kB / 499.4 MB, free: 12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 13 (stream_loss.T[1],stream_loss.T[2],stream_loss.T[3],stream_loss.T[4],stream_loss.T[5],stream_load.T[1],stream_load.T[2],stream_load.T[3],stream_load.T[4],stream_load.T[5],heater.Tfo,heater.Ec,heater.xpi) * 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 (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0002222/0.1898, allocations: 127.1 kB / 499.5 MB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.1917, allocations: 1.278 MB / 0.489 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1917, allocations: 3.938 kB / 0.489 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000977/0.1927, allocations: 0.8873 MB / 0.4899 GB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.1933, allocations: 140.3 kB / 0.49 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003236/0.1966, allocations: 1.935 MB / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.1971, allocations: 0.926 MB / 0.4928 GB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004391/0.1975, allocations: 132.6 kB / 0.4929 GB, free: 6.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.1977, allocations: 47.42 kB / 0.493 GB, free: 6.312 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1977, allocations: 4 kB / 0.493 GB, free: 6.309 MB / 382.1 MB Notification: Performance of Templates: time 0.01527/0.213, allocations: 9.938 MB / 0.5027 GB, free: 12.49 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)