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.0009954/0.0009953, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2141/0.2141, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002395/0.002395, allocations: 55.91 kB / 380.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3321, allocations: 54.95 MB / 435.8 MB, free: 39.79 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.03453/0.3667, allocations: 22.72 MB / 458.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.3699, allocations: 0.9258 MB / 459.4 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004135/0.3703, allocations: 9.219 kB / 459.4 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.3707, allocations: 84.97 kB / 459.5 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005767/0.3713, allocations: 212 kB / 459.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008613/0.3722, allocations: 208.3 kB / 459.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001465/0.3737, allocations: 0.8772 MB / 460.8 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.3747, allocations: 0.5639 MB / 461.4 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006723/0.3754, allocations: 375.2 kB / 461.7 MB, free: 29.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007509/0.3761, allocations: 473.6 kB / 462.2 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.3763, allocations: 80.41 kB / 462.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.3766, allocations: 81.81 kB / 462.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000338/0.3769, allocations: 285.7 kB / 462.6 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005216/0.3775, allocations: 408.8 kB / 463 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.3787, allocations: 0.9468 MB / 464 MB, free: 28.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.3787, allocations: 4 kB / 464 MB, free: 28.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3787, allocations: 1.094 kB / 464 MB, free: 28.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.117e-05/0.3787, allocations: 0 / 464 MB, free: 28.66 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.002524/0.3812, allocations: 1.045 MB / 465 MB, free: 27.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.3813, allocations: 9.188 kB / 465 MB, free: 27.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.3815, allocations: 78.62 kB / 465.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007359/0.3823, allocations: 454.2 kB / 465.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.3824, allocations: 75.08 kB / 465.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.3826, allocations: 65.22 kB / 465.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.3838, allocations: 0.7168 MB / 466.4 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3838, allocations: 4 kB / 466.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.3839, allocations: 28 kB / 466.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3839, allocations: 12 kB / 466.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009709/0.3849, allocations: 0.6506 MB / 467.1 MB, free: 26.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/0.389, allocations: 2.774 MB / 469.9 MB, free: 24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.3906, allocations: 0.6387 MB / 470.5 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005837/0.3912, allocations: 389 kB / 470.9 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.3913, allocations: 12.42 kB / 470.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.3913, allocations: 42.94 kB / 470.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.903e-06/0.3913, allocations: 0 / 470.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002733/0.3941, allocations: 1.497 MB / 472.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.3941, allocations: 59.84 kB / 472.5 MB, free: 21.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004291/0.3946, allocations: 423.5 kB / 472.9 MB, free: 21.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.3946, allocations: 37.7 kB / 472.9 MB, free: 21.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3948, allocations: 305.4 kB / 473.2 MB, free: 20.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.3949, allocations: 193.3 kB / 473.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.3951, allocations: 115.4 kB / 473.5 MB, free: 20.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3952, allocations: 366.7 kB / 473.9 MB, free: 20.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.3957, allocations: 349.9 kB / 474.2 MB, free: 19.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/0.3963, allocations: 377.8 kB / 474.6 MB, free: 19.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006982/0.4033, allocations: 2.067 MB / 476.7 MB, free: 17.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4033, allocations: 7.938 kB / 476.7 MB, free: 17.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001726/0.405, allocations: 0.9652 MB / 477.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.405, allocations: 4 kB / 477.7 MB, free: 17.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4051, allocations: 0 / 477.7 MB, free: 17.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006134/0.4057, allocations: 176.7 kB / 477.8 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4068, allocations: 226.2 kB / 478.1 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.4109, allocations: 7.597 MB / 485.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006491/0.4116, allocations: 73.47 kB / 485.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.927e-05/0.4116, allocations: 23.75 kB / 485.7 MB, free: 8.609 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.000371/0.412, allocations: 225.2 kB / 486 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.141e-05/0.4121, allocations: 47.44 kB / 486 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.4136, allocations: 0.8345 MB / 486.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4136, allocations: 7.938 kB / 486.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4136, allocations: 4.656 kB / 486.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.4136, allocations: 2.484 kB / 486.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.4163, allocations: 1.69 MB / 488.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4164, allocations: 0.5625 kB / 488.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4174, allocations: 186.1 kB / 488.7 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000419/0.4178, allocations: 146.4 kB / 488.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.992e-05/0.4179, allocations: 19.42 kB / 488.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/0.4217, allocations: 7.216 MB / 496.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.4217, allocations: 4 kB / 496.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002217/0.424, allocations: 1.255 MB / 497.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001927/0.4242, allocations: 136.4 kB / 497.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/0.4243, allocations: 21.95 kB / 497.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.4247, allocations: 26.52 kB / 497.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.4249, allocations: 44.47 kB / 497.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.4249, allocations: 17.59 kB / 497.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003763/0.4253, allocations: 303.4 kB / 497.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4253, allocations: 0 / 497.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008233/0.4261, allocations: 235.5 kB / 498.1 MB, free: 12.21 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.0001927/0.4263, allocations: 121.7 kB / 498.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002197/0.4285, allocations: 1.37 MB / 499.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4286, allocations: 3.938 kB / 499.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.4296, allocations: 0.8856 MB / 0.4888 GB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006759/0.4303, allocations: 144.1 kB / 0.4889 GB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.4345, allocations: 1.947 MB / 0.4908 GB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007364/0.4352, allocations: 0.9328 MB / 0.4917 GB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000548/0.4358, allocations: 130.6 kB / 0.4919 GB, free: 6.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.436, allocations: 48.22 kB / 0.4919 GB, free: 6.891 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.436, allocations: 0 / 0.4919 GB, free: 6.891 MB / 366.1 MB Notification: Performance of Templates: time 0.01813/0.4541, allocations: 9.941 MB / 0.5016 GB, free: 13.94 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)