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.001459/0.001459, allocations: 111.1 kB / 16.41 MB, free: 6.027 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.001658/0.001658, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.281/1.281, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08868/0.08868, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 59.89 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1157, allocations: 54.96 MB / 492.7 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.004059/0.1199, allocations: 2.568 MB / 495.2 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1209, allocations: 358.7 kB / 495.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002818/0.1212, allocations: 11.94 kB / 495.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1214, allocations: 39.52 kB / 495.6 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004674/0.1218, allocations: 119 kB / 495.8 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.1222, allocations: 67.84 kB / 495.8 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004905/0.1227, allocations: 366.2 kB / 496.2 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003741/0.1231, allocations: 165.7 kB / 496.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.1234, allocations: 167.3 kB / 496.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.1236, allocations: 123.4 kB / 496.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.686e-05/0.1237, allocations: 20 kB / 496.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.1238, allocations: 51.97 kB / 496.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.836e-05/0.1239, allocations: 47.78 kB / 496.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.1241, allocations: 143.3 kB / 496.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003807/0.1244, allocations: 302.9 kB / 497.2 MB, free: 252 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1245, allocations: 0 / 497.2 MB, free: 252 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1245, allocations: 0 / 497.2 MB, free: 252 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1245, allocations: 0 / 497.2 MB, free: 252 kB / 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.000946/0.1254, allocations: 0.5765 MB / 497.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1255, allocations: 8.031 kB / 497.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.632e-05/0.1256, allocations: 36.5 kB / 497.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004774/0.1261, allocations: 290.6 kB / 498.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.1261, allocations: 16.75 kB / 498.1 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.1261, allocations: 16.38 kB / 498.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.1265, allocations: 200.6 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.1265, allocations: 4.172 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.1266, allocations: 15.94 kB / 498.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1266, allocations: 4 kB / 498.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.1268, allocations: 132.7 kB / 498.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1279, allocations: 0.8339 MB / 499.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.1282, allocations: 90.73 kB / 499.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.114e-05/0.1283, allocations: 48.84 kB / 499.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.1283, allocations: 4 kB / 499.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.1284, allocations: 38.48 kB / 499.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.1284, allocations: 0 / 499.5 MB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003562/0.1288, allocations: 153.5 kB / 499.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1288, allocations: 51.5 kB / 499.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.1291, allocations: 292.5 kB / 500 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1291, allocations: 25.7 kB / 500 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.1293, allocations: 175.6 kB / 0.4884 GB, free: 13.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.1293, allocations: 35.45 kB / 0.4885 GB, free: 13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.1294, allocations: 33.7 kB / 0.4885 GB, free: 12.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1295, allocations: 334.8 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.281e-05/0.1296, allocations: 39.98 kB / 0.4889 GB, free: 12.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.379e-05/0.1297, allocations: 62.55 kB / 0.4889 GB, free: 12.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.1309, allocations: 252.8 kB / 0.4892 GB, free: 12.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1309, allocations: 0 / 0.4892 GB, free: 12.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002838/0.1312, allocations: 173.2 kB / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1312, allocations: 4 kB / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1312, allocations: 0 / 0.4893 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.1312, allocations: 7.938 kB / 0.4893 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.1314, allocations: 39.91 kB / 0.4894 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1315, allocations: 0 / 0.4894 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.1316, allocations: 15.84 kB / 0.4894 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.1316, allocations: 8 kB / 0.4894 GB, free: 12.02 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.0001855/0.1318, allocations: 133.9 kB / 0.4895 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.1319, allocations: 27.62 kB / 0.4895 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003375/0.1322, allocations: 163.4 kB / 0.4897 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1322, allocations: 11.88 kB / 0.4897 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1322, allocations: 0 / 0.4897 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1323, allocations: 0 / 0.4897 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.1326, allocations: 277.5 kB / 0.49 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1326, allocations: 4 kB / 0.49 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.1328, allocations: 23.98 kB / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.1328, allocations: 0 / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.1328, allocations: 4 kB / 0.49 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1328, allocations: 7.938 kB / 0.49 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1328, allocations: 0 / 0.49 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003664/0.1332, allocations: 275.1 kB / 0.4903 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.736e-05/0.1333, allocations: 104.8 kB / 0.4904 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/0.1333, allocations: 4 kB / 0.4904 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.1335, allocations: 7.938 kB / 0.4904 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.1335, allocations: 15.97 kB / 0.4904 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1335, allocations: 0 / 0.4904 GB, free: 10.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.1337, allocations: 219.1 kB / 0.4906 GB, free: 10.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1338, allocations: 0 / 0.4906 GB, free: 10.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.1341, allocations: 59.91 kB / 0.4907 GB, free: 10.61 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.0001576/0.1342, allocations: 103.1 kB / 0.4908 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.1345, allocations: 95.72 kB / 0.4909 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1345, allocations: 7.938 kB / 0.4909 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.092e-05/0.1346, allocations: 47.97 kB / 0.4909 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.135, allocations: 59.19 kB / 0.491 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.136, allocations: 0.6088 MB / 0.4916 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.1363, allocations: 0.748 MB / 0.4923 GB, free: 8.879 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.276e-05/0.1364, allocations: 31.42 kB / 0.4923 GB, free: 8.848 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1364, allocations: 0 / 0.4923 GB, free: 8.848 MB / 382.1 MB Notification: Performance of Templates: time 0.005753/0.1422, allocations: 3.108 MB / 0.4954 GB, free: 5.75 MB / 382.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)