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.00117/0.00117, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001407/0.001407, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2306/0.2306, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003049, allocations: 8 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3355, allocations: 55.98 MB / 437.8 MB, free: 39.45 MB / 350.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.003307/0.3388, allocations: 2.689 MB / 440.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.3407, allocations: 0.9413 MB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.341, allocations: 9.375 kB / 441.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.3412, allocations: 66.42 kB / 441.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.3415, allocations: 172.9 kB / 441.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.3421, allocations: 159.9 kB / 441.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004968/0.3426, allocations: 0.5059 MB / 442.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.3431, allocations: 449.6 kB / 442.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.3434, allocations: 306.4 kB / 443.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003693/0.3438, allocations: 352 kB / 443.4 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.712e-05/0.3439, allocations: 50.19 kB / 443.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.999e-05/0.344, allocations: 48.31 kB / 443.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.3441, allocations: 228.5 kB / 443.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3443, allocations: 158.1 kB / 443.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005507/0.3448, allocations: 0.7102 MB / 444.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3448, allocations: 0 / 444.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3448, allocations: 0 / 444.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3449, allocations: 0 / 444.6 MB, free: 35.57 MB / 350.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.002075/0.3469, allocations: 0.9354 MB / 445.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.347, allocations: 12.66 kB / 445.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3472, allocations: 73.34 kB / 445.6 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006874/0.3479, allocations: 436.3 kB / 446.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.183e-05/0.348, allocations: 76.55 kB / 446.1 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.3481, allocations: 66.97 kB / 446.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.3493, allocations: 0.7072 MB / 446.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3494, allocations: 3.125 kB / 446.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-05/0.3495, allocations: 22.62 kB / 446.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.3495, allocations: 14.94 kB / 446.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.3505, allocations: 0.6488 MB / 447.6 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004338/0.3549, allocations: 2.798 MB / 450.4 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.3565, allocations: 0.6415 MB / 451 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.201e-05/0.3566, allocations: 18.66 kB / 451.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3566, allocations: 42.06 kB / 451.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.044e-06/0.3566, allocations: 0 / 451.1 MB, free: 32.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002718/0.3594, allocations: 1.527 MB / 452.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.3594, allocations: 57.31 kB / 452.7 MB, free: 31.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004239/0.3598, allocations: 423.8 kB / 453.1 MB, free: 30.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.591e-05/0.3599, allocations: 40.27 kB / 453.1 MB, free: 30.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.3601, allocations: 292.7 kB / 453.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.3602, allocations: 200 kB / 453.6 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.3602, allocations: 12 kB / 453.6 MB, free: 30.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.3603, allocations: 364.5 kB / 454 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.3608, allocations: 341.8 kB / 454.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/0.3613, allocations: 380.6 kB / 454.7 MB, free: 29.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/0.3618, allocations: 351.6 kB / 455 MB, free: 29.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3618, allocations: 4 kB / 455 MB, free: 29.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001666/0.3635, allocations: 0.9726 MB / 456 MB, free: 29.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3635, allocations: 6.562 kB / 456 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3636, allocations: 1.344 kB / 456 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006828/0.3642, allocations: 175.3 kB / 456.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.3655, allocations: 227.9 kB / 456.4 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004208/0.3697, allocations: 7.122 MB / 463.5 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008074/0.3706, allocations: 72.97 kB / 463.6 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.803e-05/0.3706, allocations: 23.88 kB / 463.6 MB, free: 22.11 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004596/0.3711, allocations: 226.7 kB / 463.8 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3712, allocations: 48.34 kB / 463.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.3728, allocations: 0.8395 MB / 464.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3728, allocations: 4.969 kB / 464.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3728, allocations: 1.312 kB / 464.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3728, allocations: 4 kB / 464.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003001/0.3758, allocations: 1.685 MB / 466.4 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3759, allocations: 1.875 kB / 466.4 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.377, allocations: 194 kB / 466.6 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004783/0.3775, allocations: 139.2 kB / 466.8 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-05/0.3776, allocations: 20.84 kB / 466.8 MB, free: 20.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/0.3815, allocations: 6.733 MB / 473.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3815, allocations: 6.172 kB / 473.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.3839, allocations: 1.362 MB / 474.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.3841, allocations: 138.5 kB / 475 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.363e-05/0.3842, allocations: 21.25 kB / 475 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.3847, allocations: 29.8 kB / 475.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.3849, allocations: 59.33 kB / 475.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.3849, allocations: 22.2 kB / 475.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003563/0.3853, allocations: 288.5 kB / 475.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3853, allocations: 0 / 475.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009781/0.3863, allocations: 232.2 kB / 475.6 MB, free: 12.65 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001883/0.3865, allocations: 132.8 kB / 475.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.3885, allocations: 1.284 MB / 477.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/0.3886, allocations: 1.344 kB / 477.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.3896, allocations: 0.8911 MB / 478 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007145/0.3903, allocations: 126.3 kB / 478.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.3949, allocations: 2.323 MB / 480.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008067/0.3958, allocations: 0.9454 MB / 481.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000767/0.3965, allocations: 124.4 kB / 481.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/0.3968, allocations: 50.69 kB / 481.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of SimCode: time 2.445e-06/0.3968, allocations: 0 / 481.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of Templates: time 0.02256/0.4194, allocations: 9.104 MB / 490.6 MB, free: 6.211 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: