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.0009844/0.0009845, allocations: 91.06 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.007481/0.007481, allocations: 172.8 kB / 16.26 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.264/1.264, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.196/0.196, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004273, allocations: 8 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2398, allocations: 55.98 MB / 438.7 MB, free: 39.21 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.02011/0.26, allocations: 22.41 MB / 461.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.2615, allocations: 0.9283 MB / 462 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.2616, allocations: 9.25 kB / 462 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.2618, allocations: 61.61 kB / 462.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.2621, allocations: 197 kB / 462.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.2625, allocations: 182.2 kB / 462.5 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007559/0.2632, allocations: 1.098 MB / 463.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.2637, allocations: 473.7 kB / 464 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.264, allocations: 325.9 kB / 464.3 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.2645, allocations: 449.4 kB / 464.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001047/0.2646, allocations: 50.22 kB / 464.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.2647, allocations: 45.5 kB / 464.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.2649, allocations: 249 kB / 465.1 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.2652, allocations: 394.9 kB / 465.5 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000551/0.2657, allocations: 0.9053 MB / 466.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2657, allocations: 1.094 kB / 466.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.2657, allocations: 0 / 466.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.2658, allocations: 0 / 466.4 MB, free: 28.47 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.00164/0.2674, allocations: 0.9295 MB / 467.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2674, allocations: 18.09 kB / 467.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.2676, allocations: 113.5 kB / 467.5 MB, free: 27.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.2677, allocations: 74.5 kB / 467.5 MB, free: 27.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004919/0.2682, allocations: 455.4 kB / 468 MB, free: 27.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.2683, allocations: 78.64 kB / 468.1 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.2684, allocations: 62.56 kB / 468.1 MB, free: 27.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.2695, allocations: 0.7188 MB / 468.8 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2695, allocations: 0 / 468.8 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.2696, allocations: 25.75 kB / 468.9 MB, free: 27.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.2696, allocations: 18.88 kB / 468.9 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009637/0.2706, allocations: 0.653 MB / 469.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003573/0.2742, allocations: 2.806 MB / 472.3 MB, free: 24.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.2758, allocations: 0.644 MB / 473 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/0.2764, allocations: 398.8 kB / 473.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.2765, allocations: 16.42 kB / 473.4 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.2765, allocations: 39 kB / 473.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.633e-06/0.2765, allocations: 0 / 473.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002657/0.2792, allocations: 1.532 MB / 475 MB, free: 21.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.768e-05/0.2792, allocations: 55.84 kB / 475 MB, free: 21.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.2795, allocations: 426.8 kB / 475.4 MB, free: 21.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/0.2796, allocations: 33.7 kB / 475.5 MB, free: 21.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.2797, allocations: 306.1 kB / 475.8 MB, free: 20.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.2798, allocations: 195.1 kB / 476 MB, free: 20.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.016e-05/0.2799, allocations: 58.39 kB / 476 MB, free: 20.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.881e-05/0.28, allocations: 363.7 kB / 476.4 MB, free: 20.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004955/0.2805, allocations: 337.2 kB / 476.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/0.281, allocations: 390 kB / 477.1 MB, free: 19.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007497/0.2885, allocations: 2.223 MB / 479.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2885, allocations: 0 / 479.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001701/0.2902, allocations: 0.9803 MB / 480.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2903, allocations: 4.703 kB / 480.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.2903, allocations: 4 kB / 480.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006306/0.2909, allocations: 174.6 kB / 480.5 MB, free: 16.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.2922, allocations: 230.9 kB / 480.7 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003682/0.2959, allocations: 7.071 MB / 487.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000542/0.2964, allocations: 69.7 kB / 487.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-05/0.2965, allocations: 27.89 kB / 487.9 MB, free: 9.02 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.0003026/0.2968, allocations: 227 kB / 488.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.533e-05/0.2969, allocations: 52.17 kB / 488.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.2984, allocations: 0.8305 MB / 489 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2984, allocations: 4 kB / 489 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2984, allocations: 4 kB / 489 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.2984, allocations: 10.75 kB / 489 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.3009, allocations: 1.695 MB / 490.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3009, allocations: 4 kB / 490.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.302, allocations: 186.3 kB / 490.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004121/0.3025, allocations: 141.6 kB / 491 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.3025, allocations: 20.17 kB / 491 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.3058, allocations: 6.692 MB / 497.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3058, allocations: 4.156 kB / 497.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.3079, allocations: 1.262 MB / 499 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.308, allocations: 132.7 kB / 499.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.854e-05/0.3081, allocations: 18.34 kB / 499.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004504/0.3085, allocations: 33.95 kB / 499.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.3087, allocations: 56.56 kB / 499.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/0.3087, allocations: 18.16 kB / 499.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000319/0.3091, allocations: 299.9 kB / 499.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3091, allocations: 0 / 499.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006707/0.3097, allocations: 235.5 kB / 499.8 MB, free: 13.14 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.002326/0.3121, allocations: 1.818 MB / 0.4898 GB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.3139, allocations: 1.29 MB / 0.4911 GB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3139, allocations: 3.938 kB / 0.4911 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009894/0.3149, allocations: 0.8967 MB / 0.492 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.0007757/0.3157, allocations: 124.7 kB / 0.4921 GB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.3259, allocations: 7.141 MB / 0.499 GB, free: 2.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.3263, allocations: 0.9221 MB / 0.4999 GB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005064/0.3268, allocations: 128.6 kB / 0.5001 GB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.3272, allocations: 219.3 kB / 0.5003 GB, free: 1.246 MB / 366.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3272, allocations: 0 / 0.5003 GB, free: 1.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.908/1.235, allocations: 14.55 MB / 0.5145 GB, free: 2.992 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003321/1.236, allocations: 276.5 kB / 0.5148 GB, free: 2.613 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/3.384, allocations: 0 / 0.5148 GB, free: 2.613 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)