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.001002/0.001003, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.228/1.228, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1744/0.1744, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 67.89 kB / 381 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.234, allocations: 54.94 MB / 435.9 MB, free: 39.75 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.02657/0.2606, allocations: 22.75 MB / 458.6 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.262, allocations: 0.9292 MB / 459.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.2621, allocations: 9.531 kB / 459.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2623, allocations: 81.3 kB / 459.7 MB, free: 30.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.2626, allocations: 207.9 kB / 459.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.263, allocations: 204.1 kB / 460.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.2636, allocations: 0.8798 MB / 460.9 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/0.2641, allocations: 0.5549 MB / 461.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.2644, allocations: 371 kB / 461.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004262/0.2648, allocations: 474.4 kB / 462.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.2649, allocations: 80.78 kB / 462.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.2651, allocations: 81.12 kB / 462.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.2653, allocations: 291.3 kB / 462.8 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002912/0.2656, allocations: 412.1 kB / 463.2 MB, free: 28.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.2661, allocations: 0.9434 MB / 464.1 MB, free: 28.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2661, allocations: 1.344 kB / 464.1 MB, free: 28.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2661, allocations: 0 / 464.1 MB, free: 28.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.2662, allocations: 0 / 464.1 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.001763/0.2679, allocations: 1.045 MB / 465.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.268, allocations: 9.969 kB / 465.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.2681, allocations: 107.6 kB / 465.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.2682, allocations: 81.06 kB / 465.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004729/0.2687, allocations: 453 kB / 465.8 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.2688, allocations: 74.3 kB / 465.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.2689, allocations: 67.31 kB / 465.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.2699, allocations: 0.7307 MB / 466.7 MB, free: 27.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.2699, allocations: 0 / 466.7 MB, free: 27.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.936e-05/0.27, allocations: 28 kB / 466.7 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.27, allocations: 12 kB / 466.7 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000868/0.2709, allocations: 0.6501 MB / 467.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003347/0.2742, allocations: 2.775 MB / 470.1 MB, free: 24.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.2757, allocations: 0.6397 MB / 470.8 MB, free: 23.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.2762, allocations: 389 kB / 471.1 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.2763, allocations: 12.36 kB / 471.2 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.2763, allocations: 43 kB / 471.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.503e-06/0.2763, allocations: 0 / 471.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002362/0.2787, allocations: 1.508 MB / 472.7 MB, free: 21.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.82e-05/0.2787, allocations: 55.84 kB / 472.8 MB, free: 21.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.279, allocations: 428.2 kB / 473.2 MB, free: 21.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.2791, allocations: 33.7 kB / 473.2 MB, free: 21.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2792, allocations: 306.3 kB / 473.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.31e-05/0.2793, allocations: 191.8 kB / 473.7 MB, free: 20.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.2794, allocations: 118.4 kB / 473.8 MB, free: 20.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.2795, allocations: 363.2 kB / 474.2 MB, free: 20.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004307/0.2799, allocations: 346.2 kB / 474.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.2804, allocations: 381.8 kB / 474.9 MB, free: 19.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006444/0.2868, allocations: 2.062 MB / 476.9 MB, free: 18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2869, allocations: 0 / 476.9 MB, free: 18 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001456/0.2883, allocations: 0.9705 MB / 477.9 MB, free: 17.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.2883, allocations: 8 kB / 477.9 MB, free: 17.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.2884, allocations: 0 / 477.9 MB, free: 17.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005598/0.2889, allocations: 165.7 kB / 478.1 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.29, allocations: 230.7 kB / 478.3 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003622/0.2937, allocations: 7.602 MB / 485.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.2942, allocations: 69.66 kB / 486 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.2942, allocations: 23.52 kB / 486 MB, free: 8.625 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.0002587/0.2945, allocations: 229 kB / 486.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.597e-05/0.2946, allocations: 48.09 kB / 486.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.296, allocations: 0.8303 MB / 487.1 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.296, allocations: 7.938 kB / 487.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.296, allocations: 0.7969 kB / 487.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.296, allocations: 10.28 kB / 487.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.2984, allocations: 1.695 MB / 488.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2984, allocations: 0 / 488.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.2995, allocations: 182.6 kB / 489 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003915/0.2999, allocations: 145.7 kB / 489.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.2999, allocations: 23.66 kB / 489.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.3034, allocations: 7.208 MB / 496.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3034, allocations: 4 kB / 496.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3054, allocations: 1.262 MB / 497.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.3055, allocations: 145 kB / 497.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.025e-05/0.3056, allocations: 17.55 kB / 497.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.306, allocations: 22.38 kB / 497.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3061, allocations: 48.22 kB / 497.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.3061, allocations: 22.16 kB / 497.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003007/0.3065, allocations: 295.6 kB / 498.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3065, allocations: 0 / 498.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006085/0.3071, allocations: 235.5 kB / 498.4 MB, free: 12.21 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.002198/0.3093, allocations: 1.818 MB / 0.4885 GB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.3111, allocations: 1.374 MB / 0.4898 GB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3111, allocations: 0 / 0.4898 GB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009108/0.312, allocations: 0.8849 MB / 0.4907 GB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.3126, allocations: 136.6 kB / 0.4908 GB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008971/0.3216, allocations: 6.702 MB / 0.4974 GB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.3221, allocations: 0.9321 MB / 0.4983 GB, free: 1.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004373/0.3225, allocations: 131 kB / 0.4984 GB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.3229, allocations: 217.9 kB / 0.4986 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3229, allocations: 0 / 0.4986 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.316/4.638, allocations: 15.28 MB / 0.5135 GB, free: 1.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/14.56, allocations: 18.33 kB / 0.5136 GB, free: 1.738 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)