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.005066/0.005066, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001365/0.001365, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1962/0.1962, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 68.66 kB / 436.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.0905, allocations: 54.96 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003038/0.09358, allocations: 2.575 MB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007025/0.0943, allocations: 358.7 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.09444, allocations: 11.94 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 7.84e-05/0.09453, allocations: 35.58 kB / 494.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.09483, allocations: 123 kB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.09506, allocations: 67.84 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.09543, allocations: 366.2 kB / 495.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.09571, allocations: 169.9 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.09591, allocations: 139.4 kB / 495.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.0961, allocations: 135.3 kB / 495.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.09615, allocations: 20 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.09628, allocations: 47.97 kB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.163e-05/0.09633, allocations: 47.83 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.09649, allocations: 139.3 kB / 495.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003596/0.09685, allocations: 302.6 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.09686, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09687, allocations: 0 / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.09688, allocations: 0 / 496 MB, free: 13.2 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.0008496/0.09774, allocations: 0.584 MB / 496.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.09778, allocations: 8.031 kB / 496.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.617e-05/0.09784, allocations: 54.73 kB / 496.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.161e-05/0.0979, allocations: 28.75 kB / 496.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.09828, allocations: 302.8 kB / 497 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.09831, allocations: 12.75 kB / 497 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.09837, allocations: 20.38 kB / 497 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.09872, allocations: 208.5 kB / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.09875, allocations: 7.875 kB / 497.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.09877, allocations: 12 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.09879, allocations: 4 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.09905, allocations: 132.8 kB / 497.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.1001, allocations: 0.8187 MB / 498.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.1004, allocations: 102.7 kB / 498.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.531e-05/0.1005, allocations: 48.78 kB / 498.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.1006, allocations: 0 / 498.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.1006, allocations: 34.56 kB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.1006, allocations: 0 / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000355/0.101, allocations: 149.4 kB / 498.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.101, allocations: 59.41 kB / 498.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.1013, allocations: 288.6 kB / 498.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1014, allocations: 33.64 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.1015, allocations: 175.7 kB / 499.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.1015, allocations: 31.7 kB / 499.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.46e-05/0.1016, allocations: 37.7 kB / 499.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.1018, allocations: 334.8 kB / 499.5 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.408e-05/0.1019, allocations: 35.98 kB / 499.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.96e-05/0.102, allocations: 65.36 kB / 499.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.1032, allocations: 256.8 kB / 499.8 MB, free: 9.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1032, allocations: 0 / 499.8 MB, free: 9.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002954/0.1035, allocations: 179.7 kB / 0.4883 GB, free: 8.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1036, allocations: 8 kB / 0.4883 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1036, allocations: 0 / 0.4883 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.1036, allocations: 3.938 kB / 0.4883 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1038, allocations: 39.92 kB / 0.4883 GB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1038, allocations: 0 / 0.4883 GB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1039, allocations: 11.89 kB / 0.4883 GB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.104, allocations: 11.98 kB / 0.4884 GB, free: 8.887 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.0002041/0.1042, allocations: 139.8 kB / 0.4885 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.1042, allocations: 27.81 kB / 0.4885 GB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003131/0.1045, allocations: 165 kB / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1046, allocations: 4 kB / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1046, allocations: 0 / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1046, allocations: 0 / 0.4887 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/0.105, allocations: 277.5 kB / 0.4889 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.105, allocations: 0 / 0.4889 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.1052, allocations: 27.98 kB / 0.489 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.1052, allocations: 3.938 kB / 0.489 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.1052, allocations: 7.938 kB / 0.489 GB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1052, allocations: 4 kB / 0.489 GB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1052, allocations: 8 kB / 0.489 GB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.1056, allocations: 275.3 kB / 0.4893 GB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.744e-05/0.1057, allocations: 104.9 kB / 0.4894 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.1057, allocations: 7.891 kB / 0.4894 GB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.1058, allocations: 4 kB / 0.4894 GB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.1059, allocations: 11.92 kB / 0.4894 GB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.1059, allocations: 4 kB / 0.4894 GB, free: 7.738 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000211/0.1061, allocations: 215.1 kB / 0.4896 GB, free: 7.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1061, allocations: 0 / 0.4896 GB, free: 7.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.1064, allocations: 51.94 kB / 0.4896 GB, free: 7.48 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.000705/0.1071, allocations: 0.8164 MB / 0.4904 GB, free: 6.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.1074, allocations: 99.84 kB / 0.4905 GB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1074, allocations: 4.188 kB / 0.4905 GB, free: 6.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.819e-05/0.1075, allocations: 47.92 kB / 0.4906 GB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.1078, allocations: 56.61 kB / 0.4906 GB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.1108, allocations: 2.523 MB / 0.4931 GB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1112, allocations: 0.7518 MB / 0.4938 GB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1114, allocations: 38.95 kB / 0.4939 GB, free: 3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1115, allocations: 87.41 kB / 0.494 GB, free: 2.914 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1115, allocations: 0 / 0.494 GB, free: 2.914 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3883/0.4999, allocations: 5.454 MB / 0.4993 GB, free: 13.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/9.089, allocations: 18.28 kB / 0.4993 GB, free: 13.58 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)