Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",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.001146/0.001146, 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.001117/0.001117, allocations: 189.2 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.179/1.179, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1732/0.1732, allocations: 22.36 MB / 312.4 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 71.89 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2089, allocations: 54.95 MB / 435.4 MB, free: 39.71 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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_component_models.Heater_power_vs_wTin.heater_wT): time 0.023/0.232, allocations: 22.11 MB / 457.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009732/0.233, allocations: 0.6861 MB / 458.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.186e-05/0.2331, allocations: 7.312 kB / 458.2 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.2332, allocations: 29.25 kB / 458.2 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.2334, allocations: 99.25 kB / 458.3 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.2337, allocations: 85.66 kB / 458.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.234, allocations: 414.2 kB / 458.8 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.2342, allocations: 237 kB / 459 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.2344, allocations: 175.4 kB / 459.2 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.2346, allocations: 234.3 kB / 459.4 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.2347, allocations: 38.59 kB / 459.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.2347, allocations: 38.56 kB / 459.5 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.2348, allocations: 127.9 kB / 459.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.235, allocations: 196.8 kB / 459.8 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.2352, allocations: 451.1 kB / 460.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2352, allocations: 0 / 460.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2352, allocations: 0 / 460.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.2353, allocations: 1.469 kB / 460.2 MB, free: 30.32 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001064/0.2363, allocations: 0.6806 MB / 460.9 MB, free: 29.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.2364, allocations: 9.062 kB / 460.9 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.223e-05/0.2364, allocations: 58.39 kB / 461 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.158e-05/0.2365, allocations: 33.75 kB / 461 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.2367, allocations: 303.3 kB / 461.3 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2368, allocations: 22.28 kB / 461.3 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.2368, allocations: 24.5 kB / 461.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.2374, allocations: 344.6 kB / 461.7 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2374, allocations: 0 / 461.7 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.2375, allocations: 14.22 kB / 461.7 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2375, allocations: 6.562 kB / 461.7 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006204/0.2381, allocations: 327.4 kB / 462 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.2396, allocations: 1.258 MB / 463.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004784/0.2401, allocations: 312.7 kB / 463.6 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003701/0.2404, allocations: 229.6 kB / 463.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.2405, allocations: 2.641 kB / 463.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.373e-05/0.2405, allocations: 37.05 kB / 463.9 MB, free: 28.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.252e-06/0.2405, allocations: 0 / 463.9 MB, free: 28.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002392/0.2429, allocations: 1.23 MB / 465.1 MB, free: 27.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.2429, allocations: 58.38 kB / 465.2 MB, free: 27.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.2431, allocations: 253.8 kB / 465.4 MB, free: 27.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2432, allocations: 38.89 kB / 465.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.2432, allocations: 164 kB / 465.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.777e-05/0.2433, allocations: 108 kB / 465.7 MB, free: 26.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-05/0.2434, allocations: 59.75 kB / 465.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.2434, allocations: 336.5 kB / 466.1 MB, free: 26.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/0.2438, allocations: 178.3 kB / 466.3 MB, free: 26.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.2441, allocations: 177.9 kB / 466.4 MB, free: 26.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.2447, allocations: 403.5 kB / 466.8 MB, free: 26.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2447, allocations: 0 / 466.8 MB, free: 26.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00116/0.2459, allocations: 0.5997 MB / 467.4 MB, free: 25.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.2459, allocations: 8 kB / 467.4 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2459, allocations: 3.938 kB / 467.5 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005991/0.2465, allocations: 169.9 kB / 467.6 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.247, allocations: 95.58 kB / 467.7 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/0.2504, allocations: 7.596 MB / 475.3 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.2506, allocations: 49.69 kB / 475.4 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.2507, allocations: 8 kB / 475.4 MB, free: 17.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 26 * 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.0001111/0.2508, allocations: 161.1 kB / 475.5 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.2508, allocations: 23.72 kB / 475.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.2519, allocations: 0.5788 MB / 476.1 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2519, allocations: 4 kB / 476.1 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2519, allocations: 3.938 kB / 476.1 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2519, allocations: 3.281 kB / 476.1 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.2523, allocations: 440.3 kB / 476.6 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2523, allocations: 0 / 476.6 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.2527, allocations: 89.72 kB / 476.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003968/0.2531, allocations: 146.5 kB / 476.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.2532, allocations: 10.86 kB / 476.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002752/0.2559, allocations: 7.209 MB / 484 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2559, allocations: 4 kB / 484 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.2573, allocations: 0.8535 MB / 484.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.2573, allocations: 108.7 kB / 485 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.2574, allocations: 15.64 kB / 485 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.2576, allocations: 25.58 kB / 485 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.2577, allocations: 40.41 kB / 485.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.2578, allocations: 4 kB / 485.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.2579, allocations: 188 kB / 485.2 MB, free: 7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2579, allocations: 0 / 485.2 MB, free: 7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.2582, allocations: 123.8 kB / 485.4 MB, free: 6.879 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (24): * Single equations (assignments): 19 * 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.001479/0.2597, allocations: 1.41 MB / 486.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.2608, allocations: 1.021 MB / 487.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2608, allocations: 0 / 487.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000646/0.2615, allocations: 0.7842 MB / 488.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.2619, allocations: 66.77 kB / 488.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006236/0.2681, allocations: 4.346 MB / 493 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.2684, allocations: 0.7923 MB / 493.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.2686, allocations: 51.52 kB / 493.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.2688, allocations: 101.1 kB / 493.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.2688, allocations: 0 / 493.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7494/1.018, allocations: 9.049 MB / 0.4912 GB, free: 8.52 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/1.018, allocations: 231.2 kB / 0.4914 GB, free: 8.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.833, allocations: 3.234 kB / 0.4914 GB, free: 8.27 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)