Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",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.001208/0.001208, 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.001198/0.001198, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.22/1.22, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1785/0.1785, allocations: 22.37 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 60.09 kB / 380.2 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2124, allocations: 54.95 MB / 435.2 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00264/0.2151, allocations: 2.86 MB / 438 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005792/0.2157, allocations: 412.9 kB / 438.4 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.2158, allocations: 14.5 kB / 438.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.862e-05/0.2159, allocations: 21.86 kB / 438.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.2161, allocations: 102 kB / 438.6 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001486/0.2163, allocations: 58.02 kB / 438.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.2165, allocations: 351.1 kB / 439 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.2167, allocations: 148.3 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.2168, allocations: 141 kB / 439.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.2169, allocations: 123.4 kB / 439.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.217, allocations: 13.81 kB / 439.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.697e-05/0.2171, allocations: 42.83 kB / 439.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.2171, allocations: 50.23 kB / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.151e-05/0.2172, allocations: 129.4 kB / 439.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.2174, allocations: 293.6 kB / 439.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2174, allocations: 4 kB / 439.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2174, allocations: 0 / 439.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2174, allocations: 3.938 kB / 439.9 MB, free: 36.48 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.00061/0.218, allocations: 0.5673 MB / 440.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2181, allocations: 11.56 kB / 440.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.2181, allocations: 51.67 kB / 440.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.2182, allocations: 35.88 kB / 440.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.2184, allocations: 291.9 kB / 440.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.2184, allocations: 13.25 kB / 440.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.2184, allocations: 20.06 kB / 440.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.2187, allocations: 208.3 kB / 441.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.2187, allocations: 3.938 kB / 441.1 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.2187, allocations: 10.84 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2188, allocations: 6.906 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.2189, allocations: 130.9 kB / 441.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.2197, allocations: 0.8295 MB / 442.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.2199, allocations: 92.05 kB / 442.2 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.266e-05/0.2199, allocations: 45.67 kB / 442.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.22, allocations: 7.75 kB / 442.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.141e-05/0.22, allocations: 30.56 kB / 442.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.22, allocations: 0 / 442.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002606/0.2202, allocations: 146.2 kB / 442.4 MB, free: 34.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/0.2203, allocations: 51.41 kB / 442.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.2205, allocations: 291.4 kB / 442.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.317e-06/0.2205, allocations: 25.7 kB / 442.7 MB, free: 34.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.729e-05/0.2206, allocations: 173.3 kB / 442.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.2206, allocations: 48.73 kB / 443 MB, free: 34.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.2206, allocations: 34.95 kB / 443 MB, free: 34.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.41e-05/0.2207, allocations: 336 kB / 443.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.611e-05/0.2208, allocations: 37.62 kB / 443.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.88e-05/0.2208, allocations: 59.86 kB / 443.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.2219, allocations: 254.5 kB / 443.7 MB, free: 33.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2219, allocations: 0 / 443.7 MB, free: 33.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002057/0.2221, allocations: 170.1 kB / 443.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.2221, allocations: 5.469 kB / 443.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2221, allocations: 2.75 kB / 443.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2222, allocations: 3.938 kB / 443.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.2224, allocations: 49.61 kB / 443.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.341e-06/0.2224, allocations: 4 kB / 443.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.2225, allocations: 13.22 kB / 443.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.2225, allocations: 10.03 kB / 443.9 MB, free: 33.53 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 (18): * Single equations (assignments): 18 * 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.0001328/0.2226, allocations: 136 kB / 444 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.2227, allocations: 29.59 kB / 444.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.2229, allocations: 162.3 kB / 444.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2229, allocations: 2.781 kB / 444.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2229, allocations: 3.938 kB / 444.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2229, allocations: 0 / 444.2 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.2231, allocations: 289.2 kB / 444.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2232, allocations: 4 kB / 444.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.2233, allocations: 25.84 kB / 444.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2233, allocations: 0 / 444.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.2233, allocations: 7.938 kB / 444.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2234, allocations: 2.656 kB / 444.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2234, allocations: 0 / 444.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.2236, allocations: 273.3 kB / 444.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.2237, allocations: 110.1 kB / 444.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.2237, allocations: 6.875 kB / 444.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.2238, allocations: 0 / 444.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.191e-05/0.2239, allocations: 10.2 kB / 445 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.2239, allocations: 2.719 kB / 445 MB, free: 32.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.224, allocations: 212.5 kB / 445.2 MB, free: 32.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.224, allocations: 0 / 445.2 MB, free: 32.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002513/0.2243, allocations: 51.94 kB / 445.2 MB, free: 32.59 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 (13): * Single equations (assignments): 13 * 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.0003862/0.2247, allocations: 0.8189 MB / 446 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.2249, allocations: 104.2 kB / 446.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2249, allocations: 0 / 446.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.506e-05/0.2249, allocations: 44.83 kB / 446.2 MB, free: 31.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.2253, allocations: 66.08 kB / 446.2 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.2273, allocations: 2.594 MB / 448.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.2275, allocations: 0.7593 MB / 449.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001324/0.2276, allocations: 34.27 kB / 449.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.724e-05/0.2277, allocations: 88.2 kB / 449.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2277, allocations: 0 / 449.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01279/0.2405, allocations: 5.109 MB / 454.8 MB, free: 28.78 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.2407, allocations: 209 kB / 455 MB, free: 28.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.872, allocations: 0 / 455 MB, free: 28.52 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)