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.001165/0.001165, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001193/0.001193, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.173/1.173, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1664/0.1664, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 63.91 kB / 380.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2055, allocations: 54.94 MB / 435.4 MB, free: 39.59 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.02377/0.2293, allocations: 22.91 MB / 458.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.2308, allocations: 0.9517 MB / 459.2 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.2309, allocations: 10.56 kB / 459.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.2311, allocations: 58.17 kB / 459.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.2314, allocations: 195.2 kB / 459.5 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.2318, allocations: 180.5 kB / 459.7 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000605/0.2324, allocations: 0.8801 MB / 460.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004545/0.2329, allocations: 0.5514 MB / 461.1 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000305/0.2332, allocations: 383.2 kB / 461.5 MB, free: 29.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004134/0.2336, allocations: 0.4886 MB / 461.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.2337, allocations: 80.62 kB / 462 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.2338, allocations: 81.09 kB / 462.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.234, allocations: 283.2 kB / 462.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000265/0.2343, allocations: 416.8 kB / 462.8 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.2348, allocations: 0.9423 MB / 463.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2348, allocations: 1 kB / 463.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2348, allocations: 0 / 463.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.2349, allocations: 0 / 463.7 MB, free: 28.36 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.001667/0.2365, allocations: 1.047 MB / 464.8 MB, free: 27.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2366, allocations: 8.844 kB / 464.8 MB, free: 27.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.2367, allocations: 107.5 kB / 464.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.2368, allocations: 85.5 kB / 465 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004585/0.2373, allocations: 447.2 kB / 465.4 MB, free: 27.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.015e-05/0.2373, allocations: 78.23 kB / 465.5 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.2374, allocations: 66.44 kB / 465.6 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.2385, allocations: 0.7189 MB / 466.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.2385, allocations: 3.938 kB / 466.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/0.2386, allocations: 25.59 kB / 466.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2386, allocations: 14.78 kB / 466.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008582/0.2394, allocations: 0.6509 MB / 467 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003222/0.2427, allocations: 2.777 MB / 469.7 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2442, allocations: 0.6385 MB / 470.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005139/0.2447, allocations: 383.1 kB / 470.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.445e-05/0.2447, allocations: 16.42 kB / 470.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.2448, allocations: 42.09 kB / 470.8 MB, free: 22.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.553e-06/0.2448, allocations: 0 / 470.8 MB, free: 22.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002351/0.2471, allocations: 1.499 MB / 472.3 MB, free: 21.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.772e-05/0.2472, allocations: 55.84 kB / 472.4 MB, free: 21.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003035/0.2475, allocations: 426.6 kB / 472.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.2475, allocations: 33.7 kB / 472.8 MB, free: 20.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.2476, allocations: 299.2 kB / 473.1 MB, free: 20.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.454e-05/0.2477, allocations: 198.8 kB / 473.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.2479, allocations: 126.2 kB / 473.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.553e-05/0.248, allocations: 363.2 kB / 473.8 MB, free: 20.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.2484, allocations: 335.7 kB / 474.1 MB, free: 19.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.2488, allocations: 383 kB / 474.5 MB, free: 19.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006293/0.2551, allocations: 2.069 MB / 476.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2551, allocations: 0 / 476.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001428/0.2565, allocations: 0.9649 MB / 477.5 MB, free: 16.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2566, allocations: 8 kB / 477.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2566, allocations: 4 kB / 477.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005637/0.2571, allocations: 175.7 kB / 477.7 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.2583, allocations: 226.7 kB / 477.9 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.2617, allocations: 7.597 MB / 485.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004812/0.2622, allocations: 74.17 kB / 485.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.2622, allocations: 27.05 kB / 485.6 MB, free: 8.453 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.000258/0.2625, allocations: 226.1 kB / 485.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.022e-05/0.2626, allocations: 51.42 kB / 485.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.2639, allocations: 0.8306 MB / 486.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2639, allocations: 8.641 kB / 486.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.2639, allocations: 7.938 kB / 486.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2639, allocations: 2.766 kB / 486.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.2662, allocations: 1.694 MB / 488.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2662, allocations: 3.938 kB / 488.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009553/0.2671, allocations: 182.2 kB / 488.6 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003667/0.2675, allocations: 146.3 kB / 488.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.2676, allocations: 19.28 kB / 488.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003236/0.2708, allocations: 7.205 MB / 496 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2708, allocations: 4 kB / 496 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.2727, allocations: 1.265 MB / 497.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.2728, allocations: 140.8 kB / 497.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.2729, allocations: 18.72 kB / 497.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.2733, allocations: 29.67 kB / 497.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.2734, allocations: 48.69 kB / 497.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.2735, allocations: 21.97 kB / 497.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.2738, allocations: 295.8 kB / 497.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2738, allocations: 0 / 497.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005952/0.2744, allocations: 231.5 kB / 498 MB, free: 12.04 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.0022/0.2766, allocations: 1.826 MB / 499.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.2784, allocations: 1.377 MB / 0.4895 GB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2784, allocations: 0 / 0.4895 GB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000899/0.2793, allocations: 0.8819 MB / 0.4903 GB, free: 8.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006009/0.2799, allocations: 127.8 kB / 0.4905 GB, free: 7.957 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009059/0.289, allocations: 6.946 MB / 0.4972 GB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.2894, allocations: 0.9324 MB / 0.4982 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004531/0.2899, allocations: 127.4 kB / 0.4983 GB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.2902, allocations: 221.5 kB / 0.4985 GB, free: 312 kB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2902, allocations: 0 / 0.4985 GB, free: 312 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03343/0.3237, allocations: 15.26 MB / 0.5134 GB, free: 1.625 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002634/0.324, allocations: 277.5 kB / 0.5137 GB, free: 1.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.211, allocations: 0 / 0.5137 GB, free: 1.246 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)