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.006804/0.006804, allocations: 101.4 kB / 15.73 MB, free: 6.059 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.001571/0.001571, allocations: 189.8 kB / 16.67 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09633/0.09633, allocations: 22.32 MB / 312.8 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.89 kB / 437 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1193, allocations: 54.96 MB / 492 MB, free: 4.738 MB / 366.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.5067/0.626, allocations: 22.77 MB / 0.5027 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.6281, allocations: 0.9122 MB / 0.5036 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.6284, allocations: 11.5 kB / 0.5036 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002469/0.6286, allocations: 83.23 kB / 0.5037 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.629, allocations: 218.1 kB / 0.5039 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.6296, allocations: 203.1 kB / 0.5041 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008706/0.6305, allocations: 0.8797 MB / 0.505 GB, free: 6.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007072/0.6312, allocations: 0.5626 MB / 0.5055 GB, free: 6.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006559/0.6319, allocations: 383.1 kB / 0.5059 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007817/0.6327, allocations: 473.5 kB / 0.5063 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.6328, allocations: 79.59 kB / 0.5064 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.633, allocations: 82.62 kB / 0.5065 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.6333, allocations: 290.3 kB / 0.5068 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.6337, allocations: 401.2 kB / 0.5071 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.6349, allocations: 0.9609 MB / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.6349, allocations: 0 / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6349, allocations: 0 / 0.5081 GB, free: 5.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.635, allocations: 0 / 0.5081 GB, free: 5.645 MB / 382.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.002526/0.6375, allocations: 1.049 MB / 0.5091 GB, free: 5.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.6375, allocations: 9.25 kB / 0.5091 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.6377, allocations: 77.69 kB / 0.5092 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006649/0.6384, allocations: 449.9 kB / 0.5096 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.884e-05/0.6385, allocations: 77.7 kB / 0.5097 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.6386, allocations: 66.27 kB / 0.5097 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.6401, allocations: 0.7231 MB / 0.5105 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.6401, allocations: 4 kB / 0.5105 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-05/0.6402, allocations: 24.06 kB / 0.5105 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.6402, allocations: 14.72 kB / 0.5105 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.6414, allocations: 0.6479 MB / 0.5111 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/0.6461, allocations: 2.756 MB / 0.5138 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.6482, allocations: 0.6413 MB / 0.5144 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007582/0.649, allocations: 394.9 kB / 0.5148 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-05/0.649, allocations: 12.75 kB / 0.5148 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.6491, allocations: 38.14 kB / 0.5149 GB, free: 3.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.465e-06/0.6491, allocations: 0 / 0.5149 GB, free: 3.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.003211/0.6523, allocations: 1.502 MB / 0.5163 GB, free: 2.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.6523, allocations: 59.98 kB / 0.5164 GB, free: 2.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/0.6529, allocations: 428.4 kB / 0.5168 GB, free: 2.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/0.653, allocations: 34.02 kB / 0.5168 GB, free: 2.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.6532, allocations: 304.1 kB / 0.5171 GB, free: 2.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.6534, allocations: 196.5 kB / 0.5173 GB, free: 2.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.6536, allocations: 119.6 kB / 0.5174 GB, free: 2.324 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.78e-05/0.6537, allocations: 364 kB / 0.5178 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006235/0.6544, allocations: 338.8 kB / 0.5181 GB, free: 2.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006804/0.655, allocations: 385.2 kB / 0.5185 GB, free: 1.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008372/0.6634, allocations: 2.047 MB / 0.5205 GB, free: 1.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.6635, allocations: 3.938 kB / 0.5205 GB, free: 1.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002321/0.6658, allocations: 0.974 MB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.6659, allocations: 6.438 kB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.6659, allocations: 4 kB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006903/0.6666, allocations: 164.4 kB / 0.5216 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.6679, allocations: 225 kB / 0.5218 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006949/0.6749, allocations: 7.615 MB / 0.5292 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.6761, allocations: 69.72 kB / 0.5293 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002061/0.6763, allocations: 24.27 kB / 0.5293 GB, free: 9.266 MB / 398.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.0009391/0.6773, allocations: 226.4 kB / 0.5295 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.6776, allocations: 52.28 kB / 0.5296 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/0.6797, allocations: 0.8264 MB / 0.5304 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.6798, allocations: 14.06 kB / 0.5304 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.6798, allocations: 5.375 kB / 0.5304 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.6798, allocations: 5.453 kB / 0.5304 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004148/0.684, allocations: 1.681 MB / 0.5321 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.684, allocations: 2.375 kB / 0.5321 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.6852, allocations: 188 kB / 0.5322 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005117/0.6857, allocations: 145.2 kB / 0.5324 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.6858, allocations: 20.39 kB / 0.5324 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006001/0.6918, allocations: 7.221 MB / 0.5395 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.6918, allocations: 2.562 kB / 0.5395 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.6946, allocations: 1.258 MB / 0.5407 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.6949, allocations: 137.5 kB / 0.5408 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.6951, allocations: 20.25 kB / 0.5408 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.6956, allocations: 24.09 kB / 0.5409 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.6958, allocations: 45.84 kB / 0.5409 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.6959, allocations: 18.25 kB / 0.5409 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004146/0.6963, allocations: 303.2 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.6963, allocations: 0 / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009335/0.6972, allocations: 235.5 kB / 0.5414 GB, free: 14.58 MB / 414.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.0002077/0.6974, allocations: 126.3 kB / 0.5416 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.6997, allocations: 1.281 MB / 0.5428 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.6997, allocations: 4 kB / 0.5428 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.7008, allocations: 0.8928 MB / 0.5437 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008072/0.7016, allocations: 137.2 kB / 0.5438 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.7056, allocations: 1.936 MB / 0.5457 GB, free: 11.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005604/0.7061, allocations: 0.9305 MB / 0.5466 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005198/0.7067, allocations: 133.5 kB / 0.5467 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.7069, allocations: 45.8 kB / 0.5468 GB, free: 10.47 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.7069, allocations: 5.312 kB / 0.5468 GB, free: 10.46 MB / 414.1 MB Notification: Performance of Templates: time 0.01738/0.7243, allocations: 10.1 MB / 0.5567 GB, free: 5.621 MB / 414.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)