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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 102.8 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 186.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1216/0.1216, allocations: 22.7 MB / 325.4 MB, free: 3.547 MB / 254.1 MB " [Timeout remaining time 180] 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: translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 63.89 kB / 457.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.121, allocations: 58.03 MB / 0.5036 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.004253/0.1253, allocations: 2.58 MB / 0.5061 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008829/0.1262, allocations: 350.8 kB / 0.5065 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.1263, allocations: 15.88 kB / 0.5065 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.344e-05/0.1264, allocations: 43.56 kB / 0.5065 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003898/0.1268, allocations: 123 kB / 0.5066 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.127, allocations: 75.83 kB / 0.5067 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004176/0.1275, allocations: 366.2 kB / 0.507 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.1277, allocations: 145.6 kB / 0.5072 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.128, allocations: 163.4 kB / 0.5073 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.1282, allocations: 131.3 kB / 0.5075 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.1282, allocations: 16 kB / 0.5075 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.1283, allocations: 51.97 kB / 0.5075 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.1284, allocations: 47.83 kB / 0.5076 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.1285, allocations: 135.3 kB / 0.5077 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.1289, allocations: 306.6 kB / 0.508 GB, free: 2.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1289, allocations: 0 / 0.508 GB, free: 2.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1289, allocations: 3.938 kB / 0.508 GB, free: 2.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.129, allocations: 4 kB / 0.508 GB, free: 2.609 MB / 382.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.0009445/0.1299, allocations: 0.5802 MB / 0.5086 GB, free: 1.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1299, allocations: 8.031 kB / 0.5086 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.13, allocations: 36.69 kB / 0.5086 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.1304, allocations: 294.8 kB / 0.5089 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1305, allocations: 16.75 kB / 0.5089 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.665e-05/0.1305, allocations: 16.38 kB / 0.5089 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.1309, allocations: 208.6 kB / 0.5091 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1309, allocations: 4.125 kB / 0.5091 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.131, allocations: 11.94 kB / 0.5091 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.131, allocations: 8 kB / 0.5091 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002664/0.1312, allocations: 120.9 kB / 0.5093 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.1325, allocations: 0.8264 MB / 0.5101 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.1328, allocations: 86.73 kB / 0.5102 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.744e-05/0.1329, allocations: 52.77 kB / 0.5102 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.1329, allocations: 0 / 0.5102 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.1329, allocations: 30.56 kB / 0.5102 GB, free: 136 kB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.1329, allocations: 4 kB / 0.5102 GB, free: 132 kB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.2525/0.3854, allocations: 147.7 kB / 0.5104 GB, free: 16.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.3855, allocations: 52.7 kB / 0.5104 GB, free: 16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.386, allocations: 289.2 kB / 0.5107 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.386, allocations: 29.83 kB / 0.5107 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.3861, allocations: 174.7 kB / 0.5109 GB, free: 15.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/0.3862, allocations: 36.09 kB / 0.5109 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.3863, allocations: 34.52 kB / 0.511 GB, free: 15.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.529e-05/0.3864, allocations: 339.6 kB / 0.5113 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.3865, allocations: 34.31 kB / 0.5113 GB, free: 15.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.3866, allocations: 61.64 kB / 0.5114 GB, free: 15.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.3879, allocations: 258.3 kB / 0.5116 GB, free: 15.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3879, allocations: 0 / 0.5116 GB, free: 15.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003278/0.3882, allocations: 168.4 kB / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.3883, allocations: 9.766 kB / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3883, allocations: 0 / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3883, allocations: 6.25 kB / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.3885, allocations: 38.81 kB / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3885, allocations: 1.969 kB / 0.5118 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.3886, allocations: 17.84 kB / 0.5119 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.3887, allocations: 7.719 kB / 0.5119 GB, free: 15.35 MB / 382.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.0001511/0.3888, allocations: 144.1 kB / 0.512 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.3889, allocations: 23.45 kB / 0.512 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002951/0.3892, allocations: 158.8 kB / 0.5122 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3892, allocations: 5.203 kB / 0.5122 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3892, allocations: 1.094 kB / 0.5122 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3892, allocations: 0 / 0.5122 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.3894, allocations: 276.6 kB / 0.5124 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3894, allocations: 0 / 0.5124 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.3896, allocations: 34.53 kB / 0.5125 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3896, allocations: 0.9375 kB / 0.5125 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3896, allocations: 5.375 kB / 0.5125 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3896, allocations: 4.531 kB / 0.5125 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3896, allocations: 4.312 kB / 0.5125 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003223/0.39, allocations: 280.6 kB / 0.5128 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.798e-05/0.39, allocations: 103.5 kB / 0.5129 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.39, allocations: 9.562 kB / 0.5129 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3902, allocations: 1.094 kB / 0.5129 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.3902, allocations: 9.109 kB / 0.5129 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.3902, allocations: 7.5 kB / 0.5129 GB, free: 14.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.3904, allocations: 211.3 kB / 0.5131 GB, free: 14.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3904, allocations: 0 / 0.5131 GB, free: 14.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.3907, allocations: 57.86 kB / 0.5131 GB, free: 14.64 MB / 382.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.0001081/0.3908, allocations: 102.6 kB / 0.5132 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.3911, allocations: 101.3 kB / 0.5133 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3911, allocations: 3.219 kB / 0.5133 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.824e-05/0.3911, allocations: 44.12 kB / 0.5134 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.3915, allocations: 59.81 kB / 0.5134 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009909/0.3925, allocations: 0.5851 MB / 0.514 GB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.3927, allocations: 0.7541 MB / 0.5147 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.3928, allocations: 38.42 kB / 0.5148 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.4e-05/0.3929, allocations: 22.34 kB / 0.5148 GB, free: 13.53 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3929, allocations: 1.281 kB / 0.5148 GB, free: 13.53 MB / 382.1 MB Notification: Performance of Templates: time 0.007526/0.4004, allocations: 2.854 MB / 0.5176 GB, free: 13.34 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.1700386316515505] Failed to read output from testmodel.py, exit status != 0: 0.40888763032853603 0.41918698600000004 0.287700818 Calling exit ...