Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.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_Transport.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",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.001069/0.001069, 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.001081/0.001082, 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2007/0.2007, allocations: 22.34 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 67.89 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2333, allocations: 54.94 MB / 435.9 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.HE_simple_case_001): time 0.002678/0.236, allocations: 2.191 MB / 438.1 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003559/0.2364, allocations: 207.6 kB / 438.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.2365, allocations: 9.5 kB / 438.3 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.497e-05/0.2366, allocations: 28.55 kB / 438.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.2368, allocations: 98.56 kB / 438.4 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001186/0.2369, allocations: 39.94 kB / 438.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.2371, allocations: 282.1 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.2373, allocations: 129.8 kB / 438.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2375, allocations: 116.3 kB / 439 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.2376, allocations: 87.22 kB / 439 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.2376, allocations: 14.62 kB / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.773e-05/0.2377, allocations: 17.56 kB / 439.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.423e-05/0.2377, allocations: 34.38 kB / 439.1 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.656e-05/0.2378, allocations: 113.2 kB / 439.2 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.238, allocations: 219.5 kB / 439.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.238, allocations: 0 / 439.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.238, allocations: 0 / 439.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.238, allocations: 0 / 439.4 MB, free: 37.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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006118/0.2386, allocations: 0.5076 MB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2387, allocations: 11 kB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.2387, allocations: 45.45 kB / 440 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.2388, allocations: 23.66 kB / 440 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.239, allocations: 265 kB / 440.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.239, allocations: 10.19 kB / 440.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.239, allocations: 15.88 kB / 440.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.2393, allocations: 181.7 kB / 440.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2393, allocations: 0 / 440.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.2393, allocations: 4 kB / 440.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.2393, allocations: 9.188 kB / 440.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001539/0.2395, allocations: 96.97 kB / 440.6 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/0.2401, allocations: 0.8023 MB / 441.4 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.2402, allocations: 73.27 kB / 441.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.904e-05/0.2403, allocations: 41.08 kB / 441.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.2403, allocations: 9.984 kB / 441.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.65e-05/0.2403, allocations: 30.56 kB / 441.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.2403, allocations: 0 / 441.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002435/0.2406, allocations: 124.6 kB / 441.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.2406, allocations: 55.34 kB / 441.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.2408, allocations: 268 kB / 442 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.2408, allocations: 32.86 kB / 442 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/0.2409, allocations: 142.6 kB / 442.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.2409, allocations: 37.06 kB / 442.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.241, allocations: 26.98 kB / 442.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.046e-05/0.241, allocations: 335.6 kB / 442.5 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.119e-05/0.2411, allocations: 26.17 kB / 442.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.248e-05/0.2411, allocations: 46.31 kB / 442.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.2416, allocations: 161.7 kB / 442.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.2416, allocations: 0 / 442.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001762/0.2418, allocations: 137.8 kB / 442.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2418, allocations: 5.719 kB / 442.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2418, allocations: 0 / 442.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2419, allocations: 2.75 kB / 442.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.242, allocations: 33.02 kB / 442.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.242, allocations: 7.219 kB / 442.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.789e-05/0.2421, allocations: 17.34 kB / 443 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-06/0.2421, allocations: 3.094 kB / 443 MB, free: 34.47 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 14 * 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.0001607/0.2423, allocations: 138.7 kB / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.2423, allocations: 22.28 kB / 443.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.2424, allocations: 26.38 kB / 443.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2424, allocations: 2.969 kB / 443.2 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2424, allocations: 7.938 kB / 443.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.2424, allocations: 3.938 kB / 443.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.2426, allocations: 243.9 kB / 443.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2426, allocations: 4 kB / 443.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.2428, allocations: 21.75 kB / 443.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2428, allocations: 0 / 443.4 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.2428, allocations: 6.875 kB / 443.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2428, allocations: 0 / 443.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2428, allocations: 3.938 kB / 443.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002354/0.243, allocations: 227 kB / 443.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.2431, allocations: 101.8 kB / 443.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.2432, allocations: 6.875 kB / 443.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2433, allocations: 3.938 kB / 443.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.2433, allocations: 9.984 kB / 443.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.2434, allocations: 6.938 kB / 443.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.2435, allocations: 191.8 kB / 444 MB, free: 33.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2435, allocations: 0 / 444 MB, free: 33.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.2438, allocations: 33.94 kB / 444 MB, free: 33.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (8): * Single equations (assignments): 8 * 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.0003422/0.2441, allocations: 0.7681 MB / 444.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001589/0.2443, allocations: 73.89 kB / 444.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2443, allocations: 0 / 444.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.521e-05/0.2443, allocations: 34.44 kB / 444.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.2447, allocations: 62.08 kB / 444.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.2465, allocations: 2.314 MB / 447.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.2467, allocations: 0.7344 MB / 448 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.2468, allocations: 32.7 kB / 448 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.608e-05/0.2469, allocations: 62.44 kB / 448.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2469, allocations: 0 / 448.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02005/0.2669, allocations: 4.561 MB / 452.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.186/7.453, allocations: 10.27 kB / 452.7 MB, free: 29.93 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 100 AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)