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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00112/0.00112, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.168/1.168, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1658/0.1658, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001338, allocations: 59.89 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2029, allocations: 54.95 MB / 435.2 MB, free: 39.59 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.02254/0.2255, allocations: 22 MB / 457.2 MB, free: 31.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009291/0.2264, allocations: 0.701 MB / 457.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.036e-05/0.2265, allocations: 6.25 kB / 457.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.2266, allocations: 24.83 kB / 457.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.2268, allocations: 101.1 kB / 458 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.2271, allocations: 89.97 kB / 458.1 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.2274, allocations: 488.4 kB / 458.6 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.2276, allocations: 211 kB / 458.8 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2278, allocations: 157.2 kB / 458.9 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.228, allocations: 221.5 kB / 459.1 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.2281, allocations: 25.62 kB / 459.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.228e-05/0.2281, allocations: 26.12 kB / 459.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.604e-05/0.2282, allocations: 118.2 kB / 459.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.2284, allocations: 184.7 kB / 459.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002589/0.2286, allocations: 425.6 kB / 459.9 MB, free: 30.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2286, allocations: 1.062 kB / 459.9 MB, free: 30.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.2286, allocations: 0 / 459.9 MB, free: 30.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.2286, allocations: 4 kB / 459.9 MB, free: 30.3 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.001056/0.2297, allocations: 0.6886 MB / 460.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.2297, allocations: 13.59 kB / 460.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.26e-05/0.2298, allocations: 57.33 kB / 460.7 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.134e-05/0.2299, allocations: 34.19 kB / 460.7 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.2301, allocations: 306.8 kB / 461 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2301, allocations: 25.88 kB / 461 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.2302, allocations: 25.09 kB / 461 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005723/0.2308, allocations: 341 kB / 461.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2308, allocations: 0 / 461.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.2308, allocations: 14.27 kB / 461.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2308, allocations: 5.688 kB / 461.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006101/0.2315, allocations: 335.7 kB / 461.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.2329, allocations: 1.247 MB / 463 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.2334, allocations: 314.8 kB / 463.3 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000364/0.2338, allocations: 234.6 kB / 463.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.2338, allocations: 2.922 kB / 463.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.37e-05/0.2338, allocations: 37.48 kB / 463.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.292e-06/0.2339, allocations: 4 kB / 463.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002338/0.2362, allocations: 1.232 MB / 464.8 MB, free: 27.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.688e-05/0.2362, allocations: 61.97 kB / 464.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.2364, allocations: 253.4 kB / 465.1 MB, free: 27.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.2364, allocations: 30.86 kB / 465.1 MB, free: 27.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.947e-05/0.2365, allocations: 164.7 kB / 465.3 MB, free: 26.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.683e-05/0.2366, allocations: 104.4 kB / 465.4 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.2367, allocations: 54.97 kB / 465.4 MB, free: 26.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.339e-05/0.2367, allocations: 337.3 kB / 465.8 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/0.2371, allocations: 182.5 kB / 465.9 MB, free: 26.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.2374, allocations: 181.1 kB / 466.1 MB, free: 26.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006593/0.2381, allocations: 389.9 kB / 466.5 MB, free: 26.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2381, allocations: 0 / 466.5 MB, free: 26.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00119/0.2393, allocations: 0.6051 MB / 467.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.2393, allocations: 11.47 kB / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.2393, allocations: 0 / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005997/0.2399, allocations: 165.4 kB / 467.3 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.2404, allocations: 95.81 kB / 467.4 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003224/0.2436, allocations: 7.07 MB / 474.4 MB, free: 18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.2439, allocations: 38.25 kB / 474.5 MB, free: 17.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.2439, allocations: 15.09 kB / 474.5 MB, free: 17.96 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.0001107/0.244, allocations: 157.1 kB / 474.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.447e-05/0.2441, allocations: 31.56 kB / 474.7 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.2451, allocations: 0.5784 MB / 475.3 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2451, allocations: 8 kB / 475.3 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2452, allocations: 0 / 475.3 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2452, allocations: 2.906 kB / 475.3 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.2455, allocations: 433.2 kB / 475.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2455, allocations: 3.938 kB / 475.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/0.246, allocations: 90.75 kB / 475.8 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003999/0.2464, allocations: 142.7 kB / 475.9 MB, free: 16.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.2464, allocations: 10.91 kB / 475.9 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002651/0.2491, allocations: 6.681 MB / 482.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2491, allocations: 7.969 kB / 482.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.2504, allocations: 0.855 MB / 483.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.2505, allocations: 112.7 kB / 483.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.2505, allocations: 11.42 kB / 483.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.2508, allocations: 18.47 kB / 483.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/0.2509, allocations: 35.98 kB / 483.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.2509, allocations: 15.38 kB / 483.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000112/0.251, allocations: 181.3 kB / 483.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.251, allocations: 3.938 kB / 483.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003895/0.2514, allocations: 127.8 kB / 484 MB, free: 8.246 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.001467/0.2529, allocations: 1.411 MB / 485.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.2539, allocations: 0.9893 MB / 486.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.254, allocations: 0 / 486.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006325/0.2546, allocations: 0.7726 MB / 487.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.255, allocations: 69.81 kB / 487.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006145/0.2611, allocations: 4.336 MB / 491.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.2613, allocations: 0.7873 MB / 492.3 MB, free: 340 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.2615, allocations: 55.59 kB / 492.4 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2616, allocations: 97.38 kB / 492.5 MB, free: 204 kB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2616, allocations: 0 / 492.5 MB, free: 204 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1756/0.4372, allocations: 8.742 MB / 0.4895 GB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.4374, allocations: 236 kB / 0.4897 GB, free: 9.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.138, allocations: 0 / 0.4897 GB, free: 9.953 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)