Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.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.Thermal_control_actuator_split.Actuator_split_equalising,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_equalising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_equalising",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.0009768/0.0009769, allocations: 91.84 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.007961/0.007961, allocations: 169.9 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.339/1.339, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1821/0.1821, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 8 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2299, allocations: 55.97 MB / 438.7 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising): time 0.001912/0.2318, allocations: 2.132 MB / 440.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2328, allocations: 0.741 MB / 441.6 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.233, allocations: 10.84 kB / 441.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.2333, allocations: 48.94 kB / 441.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.2335, allocations: 88.69 kB / 441.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.2339, allocations: 160.8 kB / 441.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.2342, allocations: 374.4 kB / 442.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.2344, allocations: 108.9 kB / 442.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.2345, allocations: 112 kB / 442.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.2347, allocations: 142.2 kB / 442.6 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.2347, allocations: 9.875 kB / 442.6 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.478e-05/0.2348, allocations: 11.12 kB / 442.6 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.615e-05/0.2348, allocations: 57.33 kB / 442.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.375e-05/0.2349, allocations: 146.9 kB / 442.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.2351, allocations: 310.2 kB / 443.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2352, allocations: 0 / 443.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2352, allocations: 0 / 443.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2352, allocations: 0 / 443.1 MB, free: 36.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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001038/0.2362, allocations: 0.6083 MB / 443.7 MB, free: 36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2363, allocations: 14.22 kB / 443.7 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.74e-05/0.2363, allocations: 55.89 kB / 443.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.367e-05/0.2364, allocations: 31.66 kB / 443.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.2368, allocations: 340.4 kB / 444.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2368, allocations: 10.84 kB / 444.2 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.2369, allocations: 26.81 kB / 444.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003615/0.2372, allocations: 260 kB / 444.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2373, allocations: 0 / 444.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.2373, allocations: 8 kB / 444.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2373, allocations: 6.062 kB / 444.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003259/0.2376, allocations: 175.1 kB / 444.6 MB, free: 35.46 MB / 350.1 MB Warning: Alias set with conflicting start values * Candidate: Cap.T(start = 293.15, confidence number = 7) * Candidate: Cap.port.T(start = 288.15, confidence number = 8) * Candidate: Gloss.port_b.T(start = 288.15, confidence number = 8) * Candidate: Pa1.port.T(start = 288.15, confidence number = 8) * Candidate: Pa2.port.T(start = 288.15, confidence number = 8) * Candidate: sT.port.T(start = 288.15, confidence number = 8) => Select value from Cap.T(start = 293.15) for variable: Cap.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.2387, allocations: 1.233 MB / 445.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.239, allocations: 217.5 kB / 446.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2392, allocations: 98.44 kB / 446.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.2392, allocations: 2.812 kB / 446.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.2393, allocations: 45 kB / 446.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.2393, allocations: 0 / 446.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005464/0.2398, allocations: 298.5 kB / 446.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.2399, allocations: 80.11 kB / 446.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/0.2403, allocations: 301.8 kB / 446.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2403, allocations: 32.58 kB / 446.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.737e-05/0.2404, allocations: 169.3 kB / 447.1 MB, free: 33.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.2404, allocations: 81.84 kB / 447.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.408e-05/0.2404, allocations: 27.03 kB / 447.2 MB, free: 33.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.461e-05/0.2405, allocations: 333.6 kB / 447.5 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.2406, allocations: 83.2 kB / 447.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.2408, allocations: 106.6 kB / 447.7 MB, free: 33.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.2425, allocations: 489.7 kB / 448.2 MB, free: 33.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2425, allocations: 0 / 448.2 MB, free: 33.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003945/0.2429, allocations: 273.1 kB / 448.4 MB, free: 32.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.2429, allocations: 97.33 kB / 448.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.2429, allocations: 7.5 kB / 448.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.243, allocations: 0 / 448.5 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.2432, allocations: 50.22 kB / 448.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2432, allocations: 2.656 kB / 448.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.2435, allocations: 49.34 kB / 448.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.2435, allocations: 5.125 kB / 448.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-06/0.2435, allocations: 7.531 kB / 448.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002644/0.2438, allocations: 183.4 kB / 448.8 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-06/0.2438, allocations: 0 / 448.8 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-06/0.2438, allocations: 2.844 kB / 448.8 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.244, allocations: 48.91 kB / 448.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-06/0.244, allocations: 3.281 kB / 448.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.2443, allocations: 30.34 kB / 448.9 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.2443, allocations: 13.48 kB / 448.9 MB, free: 32.7 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Cap.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001776/0.2445, allocations: 245 kB / 449.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.2445, allocations: 27.88 kB / 449.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004561/0.245, allocations: 269.6 kB / 449.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.245, allocations: 2.906 kB / 449.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.245, allocations: 0 / 449.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.245, allocations: 0 / 449.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.2453, allocations: 348.8 kB / 449.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2453, allocations: 3.141 kB / 449.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.2456, allocations: 48 kB / 449.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2456, allocations: 7.438 kB / 449.8 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.2456, allocations: 4 kB / 449.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2456, allocations: 3.125 kB / 449.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2456, allocations: 0 / 449.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.2462, allocations: 450.7 kB / 450.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.654e-05/0.2462, allocations: 116.1 kB / 450.4 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.2463, allocations: 0 / 450.4 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.2466, allocations: 31.78 kB / 450.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.652e-05/0.2466, allocations: 11.92 kB / 450.5 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.2466, allocations: 10.09 kB / 450.5 MB, free: 31.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003208/0.2469, allocations: 234.1 kB / 450.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2469, allocations: 3.938 kB / 450.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.2473, allocations: 106.7 kB / 450.8 MB, free: 31.54 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (FA1.x_scaled[1],Act2.y,Act1.y,Cap.T,CT.FO.y) * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006815/0.248, allocations: 0.9833 MB / 451.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004705/0.2485, allocations: 296.3 kB / 452.1 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2485, allocations: 0 / 452.1 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.2487, allocations: 106.7 kB / 452.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.2491, allocations: 77.94 kB / 452.3 MB, free: 30.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.2525, allocations: 3.056 MB / 455.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.2526, allocations: 0.7734 MB / 456.1 MB, free: 27.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.2528, allocations: 46.47 kB / 456.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.2529, allocations: 89.86 kB / 456.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2529, allocations: 0 / 456.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.177/1.43, allocations: 5.369 MB / 461.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/1.43, allocations: 257.8 kB / 461.8 MB, free: 27.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/3.235, allocations: 2.531 kB / 461.8 MB, free: 27.29 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_equalising_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_control_actuator_split_Actuator_split_equalising.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_control_actuator_split.Actuator_split_equalising.pipe 2>&1)