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: translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, 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.001598/0.001598, allocations: 193.6 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.208/0.208, allocations: 22.35 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2771, allocations: 54.95 MB / 435 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003789/0.2809, allocations: 2.85 MB / 437.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.282, allocations: 418 kB / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.2823, allocations: 9.125 kB / 438.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.2825, allocations: 32.02 kB / 438.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.2829, allocations: 99.08 kB / 438.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.2831, allocations: 61.88 kB / 438.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.2835, allocations: 351.2 kB / 438.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.2838, allocations: 140.5 kB / 439 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.284, allocations: 147.8 kB / 439.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.2842, allocations: 123.5 kB / 439.2 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.2842, allocations: 15.53 kB / 439.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.2844, allocations: 38.98 kB / 439.3 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.2844, allocations: 47.05 kB / 439.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.2845, allocations: 136.1 kB / 439.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.2848, allocations: 293.9 kB / 439.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2848, allocations: 0 / 439.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2848, allocations: 0 / 439.8 MB, free: 36.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2848, allocations: 0 / 439.8 MB, free: 36.52 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.0007324/0.2856, allocations: 0.5691 MB / 440.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2856, allocations: 12.44 kB / 440.3 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.2857, allocations: 30.69 kB / 440.4 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.286, allocations: 297.6 kB / 440.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.286, allocations: 12.94 kB / 440.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.2861, allocations: 17.47 kB / 440.7 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.2864, allocations: 212 kB / 440.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.2864, allocations: 192 / 440.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.2864, allocations: 7.938 kB / 440.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2864, allocations: 5.656 kB / 440.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.2866, allocations: 133.5 kB / 441 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008101/0.2874, allocations: 0.8304 MB / 441.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.2877, allocations: 94.91 kB / 442 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.2877, allocations: 45.72 kB / 442 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.2878, allocations: 0 / 442 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.2878, allocations: 44.56 kB / 442.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.22e-07/0.2878, allocations: 0 / 442.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002865/0.2881, allocations: 145.8 kB / 442.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.2881, allocations: 51.41 kB / 442.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.2884, allocations: 292.8 kB / 442.5 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.2884, allocations: 25.7 kB / 442.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.2885, allocations: 174 kB / 442.7 MB, free: 34.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.2885, allocations: 33.34 kB / 442.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.2886, allocations: 40.64 kB / 442.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.2887, allocations: 335.1 kB / 443.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.072e-05/0.2888, allocations: 36.89 kB / 443.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.412e-05/0.2889, allocations: 65.72 kB / 443.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.2901, allocations: 250.3 kB / 443.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2901, allocations: 0 / 443.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002826/0.2904, allocations: 172.2 kB / 443.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.2904, allocations: 5.438 kB / 443.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2905, allocations: 0 / 443.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.2905, allocations: 10.75 kB / 443.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.2907, allocations: 39.14 kB / 443.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.2907, allocations: 4.359 kB / 443.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.2909, allocations: 17.62 kB / 443.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.2909, allocations: 6.234 kB / 443.7 MB, free: 33.62 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.0002865/0.2912, allocations: 143.5 kB / 443.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.2912, allocations: 27.06 kB / 443.9 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.2916, allocations: 154.3 kB / 444 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2916, allocations: 3.938 kB / 444 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.2916, allocations: 0 / 444 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2916, allocations: 6.938 kB / 444.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.2919, allocations: 280.3 kB / 444.3 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.2919, allocations: 11.36 kB / 444.3 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.2921, allocations: 30.62 kB / 444.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.2921, allocations: 0 / 444.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.2921, allocations: 6.812 kB / 444.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.2922, allocations: 3.938 kB / 444.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2922, allocations: 0 / 444.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.2925, allocations: 273.8 kB / 444.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.2925, allocations: 101 kB / 444.7 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.2926, allocations: 11.97 kB / 444.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.2927, allocations: 7.938 kB / 444.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.2928, allocations: 12.58 kB / 444.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.2928, allocations: 2.781 kB / 444.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001649/0.293, allocations: 208.9 kB / 445 MB, free: 32.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.293, allocations: 3.938 kB / 445 MB, free: 32.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000298/0.2933, allocations: 54.88 kB / 445 MB, free: 32.67 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.0001256/0.2934, allocations: 100.3 kB / 445.1 MB, free: 32.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.2936, allocations: 100.3 kB / 445.2 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2936, allocations: 0 / 445.2 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.571e-05/0.2937, allocations: 54.97 kB / 445.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.2941, allocations: 52.58 kB / 445.3 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000954/0.2951, allocations: 0.6686 MB / 446 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.2953, allocations: 0.7531 MB / 446.8 MB, free: 31.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.2954, allocations: 38.08 kB / 446.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.045e-05/0.2955, allocations: 23.12 kB / 446.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2955, allocations: 3.938 kB / 446.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of Templates: time 0.006073/0.3016, allocations: 2.626 MB / 449.5 MB, free: 31.15 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (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)