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.001094/0.001094, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001165/0.001165, allocations: 189.7 kB / 16.25 MB, free: 6.629 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.19/1.19, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1724/0.1724, allocations: 22.35 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 55.91 kB / 380.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2158, allocations: 54.93 MB / 435.3 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.HE_simple_case_001): time 0.002456/0.2183, allocations: 2.434 MB / 437.8 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003155/0.2186, allocations: 240 kB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2187, allocations: 12.19 kB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.589e-05/0.2188, allocations: 24.52 kB / 438.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.219, allocations: 94.77 kB / 438.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001051/0.2191, allocations: 25.42 kB / 438.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.2192, allocations: 285 kB / 438.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.2194, allocations: 132.5 kB / 438.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2195, allocations: 124.3 kB / 438.7 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.9e-05/0.2196, allocations: 89.75 kB / 438.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.2197, allocations: 15.16 kB / 438.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.817e-05/0.2197, allocations: 13.34 kB / 438.8 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.2197, allocations: 33.78 kB / 438.8 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.215e-05/0.2198, allocations: 112.8 kB / 439 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.2199, allocations: 211.8 kB / 439.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.22, allocations: 0 / 439.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.22, allocations: 4 kB / 439.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.22, allocations: 3.375 kB / 439.2 MB, free: 37.2 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.0004815/0.2205, allocations: 0.5033 MB / 439.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.2205, allocations: 10.22 kB / 439.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.2205, allocations: 47.42 kB / 439.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.2206, allocations: 23 kB / 439.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.2208, allocations: 270.2 kB / 440 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.2208, allocations: 17.66 kB / 440 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.2208, allocations: 19.92 kB / 440.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.221, allocations: 164.3 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.221, allocations: 0 / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.2211, allocations: 4 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.2211, allocations: 3.812 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.2212, allocations: 98.41 kB / 440.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.2217, allocations: 0.8004 MB / 441.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.2219, allocations: 77.47 kB / 441.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.19e-05/0.2219, allocations: 39.89 kB / 441.2 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.222, allocations: 3.984 kB / 441.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.074e-05/0.222, allocations: 34.56 kB / 441.3 MB, free: 35.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.222, allocations: 4 kB / 441.3 MB, free: 35.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002125/0.2222, allocations: 131.6 kB / 441.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.634e-05/0.2222, allocations: 55.34 kB / 441.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.2224, allocations: 269.7 kB / 441.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.2224, allocations: 25.7 kB / 441.7 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.2225, allocations: 150.1 kB / 441.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.2225, allocations: 29.8 kB / 441.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.2225, allocations: 26 kB / 441.9 MB, free: 34.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.164e-05/0.2226, allocations: 338.8 kB / 442.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.596e-05/0.2226, allocations: 28.22 kB / 442.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.674e-05/0.2227, allocations: 45.88 kB / 442.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.2231, allocations: 162.7 kB / 442.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2231, allocations: 3.938 kB / 442.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001601/0.2233, allocations: 133 kB / 442.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.2233, allocations: 7.938 kB / 442.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2233, allocations: 0 / 442.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.2233, allocations: 0 / 442.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.2235, allocations: 29.34 kB / 442.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2235, allocations: 6.906 kB / 442.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.174e-05/0.2236, allocations: 18.69 kB / 442.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.2236, allocations: 3.094 kB / 442.7 MB, free: 34.37 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.0001272/0.2237, allocations: 143.7 kB / 442.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.2237, allocations: 26.88 kB / 442.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.2238, allocations: 34.31 kB / 442.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.2238, allocations: 0 / 442.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2238, allocations: 3.938 kB / 442.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.2238, allocations: 0 / 442.9 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.224, allocations: 240.7 kB / 443.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.224, allocations: 3 kB / 443.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.2241, allocations: 18.86 kB / 443.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.2241, allocations: 0 / 443.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.2241, allocations: 0 / 443.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2241, allocations: 2.562 kB / 443.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2241, allocations: 7.938 kB / 443.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.2243, allocations: 235.6 kB / 443.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.542e-05/0.2244, allocations: 97.75 kB / 443.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.943e-05/0.2244, allocations: 0 / 443.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.999e-05/0.2245, allocations: 6.781 kB / 443.5 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.2246, allocations: 6.688 kB / 443.5 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.2246, allocations: 4 kB / 443.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.2247, allocations: 199 kB / 443.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2247, allocations: 0 / 443.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.2249, allocations: 38.78 kB / 443.8 MB, free: 33.55 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.00031/0.2252, allocations: 0.7674 MB / 444.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000136/0.2254, allocations: 79.89 kB / 444.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2254, allocations: 6.844 kB / 444.6 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.257e-05/0.2255, allocations: 32 kB / 444.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.2258, allocations: 48.22 kB / 444.7 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.2275, allocations: 2.364 MB / 447 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.2276, allocations: 0.7297 MB / 447.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.2277, allocations: 33.33 kB / 447.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.2278, allocations: 62.34 kB / 447.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2278, allocations: 0 / 447.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.542/3.769, allocations: 4.467 MB / 452.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/3.77, allocations: 197.5 kB / 452.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/6.162, allocations: 2.625 kB / 452.5 MB, free: 29.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)