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.001166/0.001166, 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.001161/0.001161, allocations: 191.1 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.204/1.204, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1716/0.1716, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2201, allocations: 54.94 MB / 435.2 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.02345/0.2436, allocations: 22.81 MB / 458 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.245, allocations: 0.9368 MB / 458.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.2452, allocations: 9.844 kB / 458.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.2454, allocations: 61.7 kB / 459 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002739/0.2457, allocations: 195.2 kB / 459.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.246, allocations: 178.5 kB / 459.3 MB, free: 30.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006714/0.2467, allocations: 1.105 MB / 460.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004156/0.2472, allocations: 490.9 kB / 460.9 MB, free: 29.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2474, allocations: 346.5 kB / 461.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00041/0.2479, allocations: 479.2 kB / 461.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.248, allocations: 53.84 kB / 461.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.2481, allocations: 53.97 kB / 461.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.2483, allocations: 259.7 kB / 462.1 MB, free: 29.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.2486, allocations: 385.6 kB / 462.5 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005229/0.2491, allocations: 0.9191 MB / 463.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2491, allocations: 5.219 kB / 463.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.2491, allocations: 0 / 463.4 MB, free: 28.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.2491, allocations: 0 / 463.4 MB, free: 28.54 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.001757/0.2509, allocations: 1.038 MB / 464.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.251, allocations: 13.53 kB / 464.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.2511, allocations: 110.1 kB / 464.6 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.2512, allocations: 77.59 kB / 464.6 MB, free: 27.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.2516, allocations: 454.5 kB / 465.1 MB, free: 27.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.807e-05/0.2517, allocations: 81.98 kB / 465.2 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.857e-05/0.2518, allocations: 65.47 kB / 465.2 MB, free: 27.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2529, allocations: 0.7153 MB / 465.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.2529, allocations: 0 / 465.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.018e-05/0.2529, allocations: 25.62 kB / 466 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.253, allocations: 18.69 kB / 466 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009608/0.2539, allocations: 0.6535 MB / 466.6 MB, free: 26.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003342/0.2573, allocations: 2.785 MB / 469.4 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2588, allocations: 0.6323 MB / 470 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005297/0.2594, allocations: 393.4 kB / 470.4 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.2594, allocations: 12.36 kB / 470.4 MB, free: 23.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.2594, allocations: 43 kB / 470.5 MB, free: 23.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.553e-06/0.2594, allocations: 0 / 470.5 MB, free: 23.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.00239/0.2618, allocations: 1.499 MB / 472 MB, free: 21.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.683e-05/0.2618, allocations: 55.84 kB / 472 MB, free: 21.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.2622, allocations: 428 kB / 472.5 MB, free: 21.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.2623, allocations: 33.7 kB / 472.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.2624, allocations: 303.9 kB / 472.8 MB, free: 21.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.2626, allocations: 195.4 kB / 473 MB, free: 20.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.2628, allocations: 119.1 kB / 473.1 MB, free: 20.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.2628, allocations: 367.2 kB / 473.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004328/0.2633, allocations: 338.1 kB / 473.8 MB, free: 20.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004349/0.2637, allocations: 380.8 kB / 474.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006274/0.27, allocations: 2.051 MB / 476.2 MB, free: 18.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.27, allocations: 0 / 476.2 MB, free: 18.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001502/0.2715, allocations: 0.9696 MB / 477.2 MB, free: 17.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.2715, allocations: 8 kB / 477.2 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.2716, allocations: 0 / 477.2 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/0.2721, allocations: 170.5 kB / 477.4 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.2732, allocations: 233.1 kB / 477.6 MB, free: 17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/0.2768, allocations: 7.065 MB / 484.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.2773, allocations: 70.34 kB / 484.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.2774, allocations: 27.14 kB / 484.7 MB, free: 9.391 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.0002679/0.2777, allocations: 221.4 kB / 485 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.2777, allocations: 52.09 kB / 485 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.2791, allocations: 0.8384 MB / 485.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2791, allocations: 4 kB / 485.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2791, allocations: 4 kB / 485.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2791, allocations: 6.984 kB / 485.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002312/0.2814, allocations: 1.686 MB / 487.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2815, allocations: 4 kB / 487.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009769/0.2824, allocations: 186.1 kB / 487.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003773/0.2828, allocations: 146.3 kB / 487.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.2829, allocations: 20.17 kB / 487.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/0.2858, allocations: 6.687 MB / 494.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.2859, allocations: 7.969 kB / 494.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.2878, allocations: 1.251 MB / 495.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.2879, allocations: 140.5 kB / 496 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.95e-05/0.288, allocations: 21.81 kB / 496 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.2884, allocations: 26 kB / 496 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2886, allocations: 52.77 kB / 496.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.2886, allocations: 18.11 kB / 496.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002957/0.2889, allocations: 299.5 kB / 496.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2889, allocations: 0 / 496.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006244/0.2895, allocations: 235.5 kB / 496.6 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.002218/0.2918, allocations: 1.833 MB / 498.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.2934, allocations: 1.283 MB / 499.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2934, allocations: 0 / 499.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009263/0.2943, allocations: 0.8852 MB / 0.4889 GB, free: 9.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.295, allocations: 133.8 kB / 0.489 GB, free: 9.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009353/0.3043, allocations: 6.928 MB / 0.4958 GB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.3048, allocations: 0.9209 MB / 0.4967 GB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.3053, allocations: 130.9 kB / 0.4968 GB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003537/0.3056, allocations: 222 kB / 0.497 GB, free: 1.891 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3057, allocations: 0 / 0.497 GB, free: 1.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/0.4597, allocations: 14.76 MB / 0.5114 GB, free: 3.594 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000245/0.4599, allocations: 270.3 kB / 0.5117 GB, free: 3.219 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.573, allocations: 0 / 0.5117 GB, free: 3.219 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)