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.005074/0.005074, allocations: 100.6 kB / 15.73 MB, free: 6.469 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.001236/0.001236, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2219/0.2219, allocations: 22.36 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 73.86 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1049, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003433/0.1084, allocations: 2.578 MB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1094, allocations: 354.7 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.1098, allocations: 8 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.11, allocations: 39.58 kB / 494.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00047/0.1104, allocations: 127 kB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003495/0.1108, allocations: 71.8 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005281/0.1113, allocations: 358.2 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.1117, allocations: 169.6 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.112, allocations: 143.4 kB / 495.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.1122, allocations: 127.4 kB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.1123, allocations: 16 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.1124, allocations: 51.97 kB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/0.1125, allocations: 43.83 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.1127, allocations: 147.2 kB / 495.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.113, allocations: 299.7 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1131, allocations: 4 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1131, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1131, allocations: 7.938 kB / 496 MB, free: 13.19 MB / 366.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.0009479/0.114, allocations: 0.5687 MB / 496.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1141, allocations: 8.031 kB / 496.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.369e-05/0.1142, allocations: 54.73 kB / 496.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.523e-05/0.1142, allocations: 32.56 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.1146, allocations: 298.5 kB / 497 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.1147, allocations: 16.75 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.1147, allocations: 16.38 kB / 497 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003995/0.1151, allocations: 208.5 kB / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1152, allocations: 3.938 kB / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.1152, allocations: 16 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1152, allocations: 4 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.1154, allocations: 124.8 kB / 497.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009652/0.1164, allocations: 0.8185 MB / 498.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.1166, allocations: 94.66 kB / 498.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.788e-05/0.1167, allocations: 44.84 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.1168, allocations: 4 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.1168, allocations: 30.56 kB / 498.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.1168, allocations: 7.938 kB / 498.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000311/0.1171, allocations: 153.2 kB / 498.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.1172, allocations: 55.41 kB / 498.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.1174, allocations: 292.6 kB / 498.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1174, allocations: 25.7 kB / 498.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.998e-05/0.1175, allocations: 175.6 kB / 499.1 MB, free: 9.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.1176, allocations: 31.47 kB / 499.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.1176, allocations: 33.7 kB / 499.1 MB, free: 9.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1177, allocations: 338.8 kB / 499.5 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.1178, allocations: 35.98 kB / 499.5 MB, free: 9.488 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.268e-05/0.1179, allocations: 65.14 kB / 499.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.1191, allocations: 256.8 kB / 499.8 MB, free: 9.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1191, allocations: 4 kB / 499.8 MB, free: 9.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002513/0.1193, allocations: 172.5 kB / 500 MB, free: 8.984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.1194, allocations: 4 kB / 500 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1194, allocations: 3.938 kB / 500 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1194, allocations: 3.938 kB / 500 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.1196, allocations: 39.92 kB / 0.4883 GB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1196, allocations: 0 / 0.4883 GB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1197, allocations: 23.77 kB / 0.4883 GB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.1197, allocations: 4.062 kB / 0.4883 GB, free: 8.906 MB / 366.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.0001842/0.1199, allocations: 139.3 kB / 0.4885 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.12, allocations: 27.62 kB / 0.4885 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.1203, allocations: 162.5 kB / 0.4886 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.1203, allocations: 4 kB / 0.4887 GB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1203, allocations: 4 kB / 0.4887 GB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1203, allocations: 0 / 0.4887 GB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.1206, allocations: 281.5 kB / 0.4889 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1206, allocations: 0 / 0.4889 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.1208, allocations: 31.92 kB / 0.489 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1208, allocations: 0 / 0.489 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1208, allocations: 11.94 kB / 0.489 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1208, allocations: 0 / 0.489 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1208, allocations: 0 / 0.489 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.1211, allocations: 279.1 kB / 0.4892 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.642e-05/0.1212, allocations: 96.86 kB / 0.4893 GB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.1213, allocations: 7.938 kB / 0.4893 GB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.1214, allocations: 0 / 0.4893 GB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.1214, allocations: 8.047 kB / 0.4893 GB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.1214, allocations: 8 kB / 0.4893 GB, free: 7.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.1216, allocations: 219 kB / 0.4896 GB, free: 7.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1216, allocations: 0 / 0.4896 GB, free: 7.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.1219, allocations: 55.84 kB / 0.4896 GB, free: 7.504 MB / 366.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.0005686/0.1225, allocations: 0.8138 MB / 0.4904 GB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002279/0.1227, allocations: 105.7 kB / 0.4905 GB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1227, allocations: 0 / 0.4905 GB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.473e-05/0.1228, allocations: 51.92 kB / 0.4906 GB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1232, allocations: 60.67 kB / 0.4906 GB, free: 6.449 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.1258, allocations: 2.504 MB / 0.4931 GB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.1261, allocations: 0.748 MB / 0.4938 GB, free: 3.078 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000121/0.1262, allocations: 38.95 kB / 0.4938 GB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.1263, allocations: 87.41 kB / 0.4939 GB, free: 2.953 MB / 366.1 MB Notification: Performance of SimCode: time 1.532e-06/0.1263, allocations: 4 kB / 0.4939 GB, free: 2.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.1496, allocations: 5.381 MB / 0.4992 GB, free: 13.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.386/7.535, allocations: 17.47 kB / 0.4992 GB, free: 13.69 MB / 382.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)