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.00102/0.00102, allocations: 106.8 kB / 15.99 MB, free: 6.352 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.001153/0.001153, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.201/1.201, allocations: 222.9 MB / 240.6 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0863/0.0863, allocations: 22.33 MB / 313.1 MB, free: 9.133 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.61 kB / 380.9 MB, free: 41.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06911/0.07032, allocations: 54.96 MB / 435.9 MB, free: 13.52 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.02883/0.09917, allocations: 22.92 MB / 458.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1009, allocations: 0.9394 MB / 459.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002661/0.1011, allocations: 7.938 kB / 459.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.1014, allocations: 63.53 kB / 459.8 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.1018, allocations: 178.8 kB / 460 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.1023, allocations: 191.7 kB / 460.2 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008134/0.1031, allocations: 0.8778 MB / 461 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000616/0.1037, allocations: 0.559 MB / 461.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004442/0.1042, allocations: 390.8 kB / 462 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1048, allocations: 494.5 kB / 462.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.1049, allocations: 80 kB / 462.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1051, allocations: 80 kB / 462.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.1053, allocations: 287.2 kB / 462.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.1057, allocations: 406.2 kB / 463.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005668/0.1062, allocations: 0.7365 MB / 464 MB, free: 1.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1063, allocations: 3.984 kB / 464 MB, free: 1.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1063, allocations: 0 / 464 MB, free: 1.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.1063, allocations: 0 / 464 MB, free: 1.473 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.002097/0.1084, allocations: 1.041 MB / 465.1 MB, free: 392 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.1084, allocations: 12.03 kB / 465.1 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.1086, allocations: 72.09 kB / 465.2 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.1092, allocations: 456.9 kB / 465.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.004e-05/0.1093, allocations: 83.56 kB / 465.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.1094, allocations: 60.38 kB / 465.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.1106, allocations: 0.7249 MB / 466.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.1106, allocations: 0 / 466.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.1107, allocations: 24 kB / 466.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1107, allocations: 16 kB / 466.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.1118, allocations: 0.6492 MB / 467.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004233/0.116, allocations: 2.774 MB / 469.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/0.1178, allocations: 0.6339 MB / 470.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/0.1184, allocations: 396.3 kB / 471 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.232e-05/0.1185, allocations: 12.38 kB / 471 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.1185, allocations: 35 kB / 471 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.864e-06/0.1185, allocations: 0 / 471 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002874/0.1214, allocations: 1.5 MB / 472.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.1214, allocations: 63.84 kB / 472.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/0.1219, allocations: 417.9 kB / 473 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.2e-05/0.1219, allocations: 37.7 kB / 473 MB, free: 8.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.1221, allocations: 308.1 kB / 473.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1223, allocations: 201.1 kB / 473.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.1225, allocations: 118.2 kB / 473.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1226, allocations: 362.8 kB / 474 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/0.1231, allocations: 335 kB / 474.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.1237, allocations: 390.2 kB / 474.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00706/0.1307, allocations: 2.051 MB / 476.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.1308, allocations: 7.938 kB / 476.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001821/0.1326, allocations: 0.9693 MB / 477.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1326, allocations: 7.938 kB / 477.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.1326, allocations: 7.938 kB / 477.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006538/0.1333, allocations: 168.2 kB / 477.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.1345, allocations: 231.7 kB / 478.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005294/0.1398, allocations: 7.595 MB / 485.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.1404, allocations: 75.25 kB / 485.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-05/0.1405, allocations: 23.98 kB / 485.8 MB, free: 10.41 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.0003529/0.1408, allocations: 232.8 kB / 486 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.141, allocations: 47.44 kB / 486.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.1425, allocations: 0.8254 MB / 486.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1425, allocations: 11.94 kB / 486.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1425, allocations: 0 / 486.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1426, allocations: 3.984 kB / 486.9 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.1453, allocations: 1.692 MB / 488.6 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.1453, allocations: 7.984 kB / 488.6 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.1464, allocations: 180.1 kB / 488.8 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004388/0.1469, allocations: 148.1 kB / 489 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/0.1469, allocations: 16 kB / 489 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004456/0.1514, allocations: 7.211 MB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1514, allocations: 4.031 kB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.1533, allocations: 1.266 MB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1535, allocations: 140.2 kB / 497.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.373e-05/0.1536, allocations: 19.94 kB / 497.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000451/0.154, allocations: 31.91 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.1542, allocations: 48.31 kB / 497.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.1542, allocations: 23.98 kB / 497.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002914/0.1545, allocations: 291.1 kB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1545, allocations: 0 / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.1552, allocations: 235.6 kB / 498.2 MB, free: 13.09 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.0001566/0.1553, allocations: 127.1 kB / 498.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.1572, allocations: 1.371 MB / 499.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1573, allocations: 320 / 499.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009238/0.1582, allocations: 0.8825 MB / 0.4889 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.1588, allocations: 149.8 kB / 0.489 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.1622, allocations: 2.245 MB / 0.4912 GB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.1626, allocations: 0.9338 MB / 0.4921 GB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.1628, allocations: 51.42 kB / 0.4922 GB, free: 7.121 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1628, allocations: 0 / 0.4922 GB, free: 7.121 MB / 382.1 MB Notification: Performance of Templates: time 0.01901/0.1819, allocations: 18.8 MB / 0.5105 GB, free: 4.363 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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)