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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000828/0.0008281, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.004774/0.004774, allocations: 174.1 kB / 16.27 MB, free: 6.613 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.158/1.158, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1757/0.1757, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002668, allocations: 11.98 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2091, allocations: 55.97 MB / 438.7 MB, free: 39.32 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.01841/0.2275, allocations: 22.3 MB / 461 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.2289, allocations: 0.9334 MB / 461.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.2291, allocations: 9.031 kB / 461.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.2293, allocations: 58.58 kB / 462 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002719/0.2295, allocations: 196.9 kB / 462.2 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.2299, allocations: 177.5 kB / 462.4 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007172/0.2306, allocations: 1.103 MB / 463.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.2311, allocations: 471.5 kB / 463.9 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.2314, allocations: 330.3 kB / 464.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004288/0.2318, allocations: 451.1 kB / 464.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.389e-05/0.2319, allocations: 45.69 kB / 464.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-05/0.232, allocations: 49.03 kB / 464.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.2322, allocations: 239.2 kB / 465 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.2325, allocations: 395.7 kB / 465.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005252/0.233, allocations: 0.9085 MB / 466.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.233, allocations: 0 / 466.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.233, allocations: 0 / 466.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.233, allocations: 1.219 kB / 466.3 MB, free: 28.62 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.001523/0.2345, allocations: 0.9315 MB / 467.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2346, allocations: 13.22 kB / 467.3 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.2347, allocations: 109.5 kB / 467.4 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.2348, allocations: 78.91 kB / 467.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004619/0.2353, allocations: 452.6 kB / 467.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.795e-05/0.2354, allocations: 81.73 kB / 468 MB, free: 27.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2355, allocations: 62.47 kB / 468 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.2365, allocations: 0.72 MB / 468.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2365, allocations: 0 / 468.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.2366, allocations: 24 kB / 468.8 MB, free: 27.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.2366, allocations: 16 kB / 468.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008574/0.2374, allocations: 0.6473 MB / 469.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003262/0.2407, allocations: 2.805 MB / 472.2 MB, free: 24.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.2422, allocations: 0.6437 MB / 472.9 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/0.2428, allocations: 404.5 kB / 473.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.2428, allocations: 12.42 kB / 473.3 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.2428, allocations: 39 kB / 473.3 MB, free: 23.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.423e-06/0.2428, allocations: 0 / 473.3 MB, free: 23.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002352/0.2452, allocations: 1.529 MB / 474.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.784e-05/0.2452, allocations: 55.84 kB / 474.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.2455, allocations: 432.4 kB / 475.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.2456, allocations: 36.94 kB / 475.4 MB, free: 21.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2457, allocations: 302.3 kB / 475.7 MB, free: 20.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.752e-05/0.2458, allocations: 201 kB / 475.9 MB, free: 20.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.216e-05/0.2459, allocations: 63.19 kB / 475.9 MB, free: 20.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.582e-05/0.2459, allocations: 364.6 kB / 476.3 MB, free: 20.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/0.2464, allocations: 332.8 kB / 476.6 MB, free: 19.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.2468, allocations: 388.1 kB / 477 MB, free: 19.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006626/0.2534, allocations: 2.219 MB / 479.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2534, allocations: 0 / 479.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001481/0.2549, allocations: 0.9805 MB / 480.2 MB, free: 16.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.2549, allocations: 8 kB / 480.2 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.255, allocations: 0.5625 kB / 480.2 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005754/0.2555, allocations: 174 kB / 480.4 MB, free: 16.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.2567, allocations: 231.3 kB / 480.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.26, allocations: 7.079 MB / 487.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/0.2605, allocations: 66.03 kB / 487.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.2605, allocations: 31.19 kB / 487.8 MB, free: 9.012 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.0002596/0.2608, allocations: 219.9 kB / 488 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/0.2609, allocations: 47.44 kB / 488 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.2622, allocations: 0.8386 MB / 488.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2623, allocations: 4 kB / 488.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2623, allocations: 4 kB / 488.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.2623, allocations: 7.125 kB / 488.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.2646, allocations: 1.698 MB / 490.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2646, allocations: 4 kB / 490.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009965/0.2656, allocations: 181.9 kB / 490.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003757/0.266, allocations: 141.9 kB / 490.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.553e-05/0.266, allocations: 24.17 kB / 490.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.269, allocations: 6.684 MB / 497.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.269, allocations: 7.969 kB / 497.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.2709, allocations: 1.258 MB / 498.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.672e-05/0.271, allocations: 132.6 kB / 499 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.753e-05/0.271, allocations: 18.11 kB / 499 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003964/0.2714, allocations: 30.55 kB / 499 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.2716, allocations: 60.16 kB / 499.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/0.2716, allocations: 18.34 kB / 499.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002892/0.2719, allocations: 295.4 kB / 499.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2719, allocations: 0 / 499.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005894/0.2725, allocations: 231.5 kB / 499.6 MB, free: 13.15 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.002122/0.2746, allocations: 1.829 MB / 0.4897 GB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.2762, allocations: 1.294 MB / 0.491 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2762, allocations: 0 / 0.491 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009058/0.2771, allocations: 0.8931 MB / 0.4918 GB, free: 9.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.2778, allocations: 127.9 kB / 0.492 GB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009263/0.2871, allocations: 7.137 MB / 0.4989 GB, free: 2.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.2875, allocations: 0.9287 MB / 0.4998 GB, free: 1.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004349/0.288, allocations: 128.4 kB / 0.5 GB, free: 1.566 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.2883, allocations: 219.3 kB / 0.5002 GB, free: 1.352 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2883, allocations: 0 / 0.5002 GB, free: 1.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.3122, allocations: 14.55 MB / 0.5144 GB, free: 3.105 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.3124, allocations: 269.5 kB / 0.5146 GB, free: 2.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.148, allocations: 3.266 kB / 0.5146 GB, free: 2.73 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Temperature_flow_control_Temperature_flow_control_01_open_loop.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)