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.001132/0.001132, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001364/0.001364, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2041/0.2041, allocations: 22.35 MB / 312.3 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 59.91 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2679, allocations: 54.94 MB / 435 MB, free: 39.58 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.03363/0.3016, allocations: 22.92 MB / 458 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.3037, allocations: 0.9466 MB / 458.9 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006164/0.3043, allocations: 10.69 kB / 458.9 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00034/0.3047, allocations: 54.5 kB / 459 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006685/0.3054, allocations: 196.3 kB / 459.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007945/0.3062, allocations: 181.5 kB / 459.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.3077, allocations: 1.098 MB / 460.5 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009507/0.3087, allocations: 0.4892 MB / 460.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008852/0.3096, allocations: 342.2 kB / 461.3 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008966/0.3105, allocations: 476.6 kB / 461.7 MB, free: 29.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.3107, allocations: 57.06 kB / 461.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.311, allocations: 55.03 kB / 461.8 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.3113, allocations: 259.4 kB / 462.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006418/0.312, allocations: 380.1 kB / 462.5 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.313, allocations: 0.9298 MB / 463.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.313, allocations: 0 / 463.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.313, allocations: 0.9375 kB / 463.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.244e-05/0.3131, allocations: 0 / 463.4 MB, free: 28.5 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.002854/0.3159, allocations: 1.04 MB / 464.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.316, allocations: 9.312 kB / 464.5 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003288/0.3163, allocations: 79.28 kB / 464.5 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008654/0.3172, allocations: 456.9 kB / 465 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.852e-05/0.3173, allocations: 74.3 kB / 465.1 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.3175, allocations: 66.16 kB / 465.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.3188, allocations: 0.717 MB / 465.8 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3189, allocations: 1.219 kB / 465.8 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.887e-05/0.3189, allocations: 24.53 kB / 465.9 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.319, allocations: 19.97 kB / 465.9 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.3201, allocations: 0.6504 MB / 466.5 MB, free: 26.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.324, allocations: 2.775 MB / 469.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.3256, allocations: 0.6347 MB / 469.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.3262, allocations: 392.5 kB / 470.3 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.3262, allocations: 8.438 kB / 470.3 MB, free: 23.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.3262, allocations: 42.36 kB / 470.4 MB, free: 23.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.884e-06/0.3262, allocations: 7.938 kB / 470.4 MB, free: 23.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002549/0.3288, allocations: 1.492 MB / 471.9 MB, free: 21.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.3288, allocations: 63.22 kB / 471.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.3292, allocations: 426 kB / 472.3 MB, free: 21.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.3293, allocations: 33.7 kB / 472.4 MB, free: 21.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3294, allocations: 304.5 kB / 472.7 MB, free: 21.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3295, allocations: 195.6 kB / 472.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.3297, allocations: 123.4 kB / 473 MB, free: 20.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.587e-05/0.3298, allocations: 362.7 kB / 473.3 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000473/0.3302, allocations: 338 kB / 473.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/0.3307, allocations: 388.8 kB / 474.1 MB, free: 19.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006908/0.3376, allocations: 2.051 MB / 476.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3377, allocations: 3.938 kB / 476.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001675/0.3393, allocations: 0.9721 MB / 477.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3394, allocations: 4.156 kB / 477.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.3394, allocations: 9.078 kB / 477.1 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006526/0.3401, allocations: 169.7 kB / 477.3 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3413, allocations: 223.8 kB / 477.5 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/0.3452, allocations: 7.062 MB / 484.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.3459, allocations: 78.33 kB / 484.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/0.346, allocations: 23.56 kB / 484.6 MB, free: 9.379 MB / 350.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.0004339/0.3464, allocations: 221.5 kB / 484.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.3465, allocations: 52.09 kB / 484.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.348, allocations: 0.8303 MB / 485.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3481, allocations: 8 kB / 485.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3481, allocations: 0 / 485.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.3481, allocations: 6.844 kB / 485.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.3507, allocations: 1.687 MB / 487.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3507, allocations: 7.938 kB / 487.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.3518, allocations: 186.2 kB / 487.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000426/0.3522, allocations: 142.1 kB / 487.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.3523, allocations: 19.33 kB / 487.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003217/0.3555, allocations: 6.688 MB / 494.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.3555, allocations: 4.562 kB / 494.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.3578, allocations: 1.262 MB / 495.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.358, allocations: 140 kB / 495.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.3582, allocations: 14.2 kB / 495.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004892/0.3587, allocations: 26.38 kB / 495.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.3588, allocations: 56.95 kB / 496 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.876e-05/0.3589, allocations: 21.64 kB / 496 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003619/0.3593, allocations: 291.9 kB / 496.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3593, allocations: 0 / 496.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008121/0.3601, allocations: 235.5 kB / 496.5 MB, free: 13.52 MB / 366.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.0001738/0.3603, allocations: 129.4 kB / 496.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.3624, allocations: 1.282 MB / 497.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3624, allocations: 0 / 497.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3635, allocations: 0.8812 MB / 498.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007667/0.3643, allocations: 136 kB / 498.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003738/0.368, allocations: 2.202 MB / 0.4894 GB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006507/0.3687, allocations: 0.9282 MB / 0.4903 GB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006233/0.3693, allocations: 131.4 kB / 0.4904 GB, free: 8.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.3696, allocations: 48.03 kB / 0.4905 GB, free: 8.043 MB / 366.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3696, allocations: 8 kB / 0.4905 GB, free: 8.035 MB / 366.1 MB Notification: Performance of Templates: time 0.01688/0.3865, allocations: 9.541 MB / 0.4998 GB, free: 15.42 MB / 382.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)