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.001104/0.001104, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001155/0.001155, allocations: 191 kB / 17.29 MB, free: 5.516 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09195/0.09195, allocations: 22.33 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 66.05 kB / 382.2 MB, free: 40.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.0918, allocations: 54.96 MB / 437.2 MB, free: 12.21 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.03226/0.1241, allocations: 22.5 MB / 459.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.1264, allocations: 0.9083 MB / 460.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002673/0.1267, allocations: 15.94 kB / 460.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.127, allocations: 79.22 kB / 460.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003881/0.1274, allocations: 210.6 kB / 460.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.128, allocations: 211.6 kB / 461.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000818/0.1288, allocations: 0.8856 MB / 462 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005988/0.1294, allocations: 0.5591 MB / 462.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003777/0.1298, allocations: 370.9 kB / 462.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005423/0.1304, allocations: 470.5 kB / 463.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.1305, allocations: 84 kB / 463.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.1306, allocations: 84 kB / 463.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.1309, allocations: 287.2 kB / 463.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003801/0.1312, allocations: 410.2 kB / 464.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008344/0.1321, allocations: 0.9617 MB / 465.2 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1321, allocations: 0 / 465.2 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1321, allocations: 0 / 465.2 MB, free: 340 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1321, allocations: 0 / 465.2 MB, free: 340 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.002103/0.1342, allocations: 1.041 MB / 466.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1343, allocations: 12.03 kB / 466.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1344, allocations: 76.09 kB / 466.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007655/0.1352, allocations: 456.8 kB / 466.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.502e-05/0.1353, allocations: 75.58 kB / 466.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.1354, allocations: 64.36 kB / 466.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.1366, allocations: 0.7171 MB / 467.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.1367, allocations: 0 / 467.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.583e-05/0.1368, allocations: 24 kB / 467.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.1368, allocations: 20 kB / 467.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.1387, allocations: 0.6532 MB / 468.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005229/0.1439, allocations: 2.755 MB / 471.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.1457, allocations: 0.6473 MB / 471.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007106/0.1465, allocations: 386 kB / 472.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.893e-05/0.1465, allocations: 12.42 kB / 472.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.1466, allocations: 38.98 kB / 472.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.415e-06/0.1466, allocations: 3.938 kB / 472.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003003/0.1496, allocations: 1.5 MB / 473.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.1496, allocations: 63.84 kB / 473.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004998/0.1501, allocations: 425.8 kB / 474.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.1502, allocations: 33.7 kB / 474.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.1504, allocations: 300.2 kB / 474.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.1506, allocations: 193.2 kB / 474.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.1508, allocations: 126.2 kB / 474.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1509, allocations: 358.8 kB / 475.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.1515, allocations: 343.6 kB / 475.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.1521, allocations: 386.2 kB / 475.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007276/0.1594, allocations: 2.047 MB / 477.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1594, allocations: 3.938 kB / 477.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001956/0.1614, allocations: 0.9693 MB / 478.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.1614, allocations: 4 kB / 478.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1614, allocations: 7.984 kB / 478.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006656/0.1621, allocations: 168.1 kB / 479 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.1633, allocations: 231.7 kB / 479.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005916/0.1692, allocations: 7.599 MB / 486.9 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006309/0.1699, allocations: 71.23 kB / 486.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.27e-05/0.17, allocations: 31.98 kB / 487 MB, free: 9.293 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.0004573/0.1704, allocations: 226.1 kB / 487.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.462e-05/0.1705, allocations: 47.44 kB / 487.2 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.1721, allocations: 0.8331 MB / 488.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1721, allocations: 11.94 kB / 488.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1721, allocations: 0 / 488.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1721, allocations: 0 / 488.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.175, allocations: 1.688 MB / 489.8 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.175, allocations: 4 kB / 489.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.1761, allocations: 188 kB / 489.9 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.1765, allocations: 140.2 kB / 490.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/0.1766, allocations: 23.92 kB / 490.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004916/0.1815, allocations: 7.207 MB / 497.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.1815, allocations: 7.938 kB / 497.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.1836, allocations: 1.26 MB / 498.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.1838, allocations: 136.3 kB / 498.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.772e-05/0.1839, allocations: 23.92 kB / 498.7 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.1843, allocations: 23.97 kB / 498.8 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.1844, allocations: 52.31 kB / 498.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.718e-05/0.1845, allocations: 20 kB / 498.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000339/0.1849, allocations: 295.1 kB / 499.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1849, allocations: 0 / 499.1 MB, free: 12.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000724/0.1856, allocations: 227.6 kB / 499.3 MB, free: 11.99 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.0001721/0.1858, allocations: 139 kB / 499.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.1876, allocations: 1.278 MB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1876, allocations: 4.062 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009576/0.1886, allocations: 0.8865 MB / 0.4899 GB, free: 9.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.1892, allocations: 148.2 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.1926, allocations: 1.934 MB / 0.4919 GB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.1931, allocations: 0.9299 MB / 0.4928 GB, free: 6.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004323/0.1936, allocations: 124.6 kB / 0.4929 GB, free: 6.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.1938, allocations: 51.42 kB / 0.493 GB, free: 6.289 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1938, allocations: 0 / 0.493 GB, free: 6.289 MB / 382.1 MB Notification: Performance of Templates: time 0.01644/0.2102, allocations: 9.941 MB / 0.5027 GB, free: 12.47 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)