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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 77.86 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 162.4 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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.1084/0.1084, allocations: 17.8 MB / 277.6 MB, free: 15.34 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003134/0.003134, allocations: 71.83 kB / 414.6 MB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1319, allocations: 59.56 MB / 474.2 MB, free: 8.816 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003805/0.1357, allocations: 2.421 MB / 476.6 MB, free: 6.383 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008148/0.1365, allocations: 362.7 kB / 477 MB, free: 6.027 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.1366, allocations: 15.88 kB / 477 MB, free: 6.012 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.405e-05/0.1367, allocations: 35.64 kB / 477 MB, free: 5.977 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003028/0.137, allocations: 127 kB / 477.2 MB, free: 5.852 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.1373, allocations: 71.8 kB / 477.2 MB, free: 5.781 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003941/0.1377, allocations: 362.2 kB / 477.6 MB, free: 5.426 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.138, allocations: 142 kB / 477.7 MB, free: 5.281 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.1382, allocations: 155.4 kB / 477.9 MB, free: 5.129 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1384, allocations: 107.4 kB / 478 MB, free: 5.023 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.1384, allocations: 20 kB / 478 MB, free: 5.004 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.1386, allocations: 47.97 kB / 478 MB, free: 4.957 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.562e-05/0.1386, allocations: 59.7 kB / 478.1 MB, free: 4.898 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1388, allocations: 115.5 kB / 478.2 MB, free: 4.785 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003818/0.1391, allocations: 302.7 kB / 478.5 MB, free: 4.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1391, allocations: 4 kB / 478.5 MB, free: 4.484 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1391, allocations: 0 / 478.5 MB, free: 4.484 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1392, allocations: 3.938 kB / 478.5 MB, free: 4.48 MB / 446.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.0008878/0.14, allocations: 0.5009 MB / 479 MB, free: 3.941 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1401, allocations: 12.92 kB / 479 MB, free: 3.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.7e-05/0.1401, allocations: 36.7 kB / 479.1 MB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004076/0.1406, allocations: 225.4 kB / 479.3 MB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.1406, allocations: 12.75 kB / 479.3 MB, free: 3.637 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.1406, allocations: 24.33 kB / 479.3 MB, free: 3.613 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00036/0.141, allocations: 208.8 kB / 479.5 MB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.141, allocations: 192 / 479.5 MB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.141, allocations: 15.94 kB / 479.5 MB, free: 3.375 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.141, allocations: 4 kB / 479.5 MB, free: 3.371 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.1413, allocations: 124.9 kB / 479.7 MB, free: 3.25 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.1423, allocations: 0.7013 MB / 480.4 MB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.1426, allocations: 90.67 kB / 480.5 MB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.945e-05/0.1426, allocations: 36.84 kB / 480.5 MB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1427, allocations: 4 kB / 480.5 MB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.1427, allocations: 42.55 kB / 480.5 MB, free: 2.312 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.1427, allocations: 0 / 480.5 MB, free: 2.312 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003286/0.143, allocations: 137.5 kB / 480.7 MB, free: 2.172 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.1431, allocations: 59.34 kB / 480.7 MB, free: 2.102 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.1434, allocations: 245.9 kB / 481 MB, free: 1.855 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.1434, allocations: 25.7 kB / 481 MB, free: 1.824 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.1435, allocations: 180.1 kB / 481.2 MB, free: 1.645 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.1436, allocations: 43.67 kB / 481.2 MB, free: 1.602 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.291e-05/0.1436, allocations: 37.66 kB / 481.3 MB, free: 1.559 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1438, allocations: 326.8 kB / 481.6 MB, free: 1.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.373e-05/0.1439, allocations: 43.92 kB / 481.6 MB, free: 1.188 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.144, allocations: 66.48 kB / 481.7 MB, free: 1.113 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.1452, allocations: 261.2 kB / 481.9 MB, free: 0.8555 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1452, allocations: 0 / 481.9 MB, free: 0.8555 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002912/0.1455, allocations: 169.4 kB / 482.1 MB, free: 0.6836 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1455, allocations: 4 kB / 482.1 MB, free: 0.6797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.1455, allocations: 0 / 482.1 MB, free: 0.6797 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1455, allocations: 8.062 kB / 482.1 MB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.1457, allocations: 39.98 kB / 482.1 MB, free: 0.6328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.1457, allocations: 3.938 kB / 482.2 MB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1458, allocations: 11.89 kB / 482.2 MB, free: 0.6172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.1459, allocations: 7.984 kB / 482.2 MB, free: 0.6094 MB / 446.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.0001885/0.146, allocations: 146.7 kB / 482.3 MB, free: 468 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.1461, allocations: 27.86 kB / 482.3 MB, free: 440 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000298/0.1464, allocations: 139.4 kB / 482.5 MB, free: 296 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1464, allocations: 4.375 kB / 482.5 MB, free: 292 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1464, allocations: 3.938 kB / 482.5 MB, free: 288 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1464, allocations: 0 / 482.5 MB, free: 288 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.1467, allocations: 205.1 kB / 482.7 MB, free: 52 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1467, allocations: 7.875 kB / 482.7 MB, free: 44 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1468, allocations: 31.98 kB / 482.7 MB, free: 12 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1468, allocations: 0 / 482.7 MB, free: 12 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1469, allocations: 0 / 482.7 MB, free: 12 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1469, allocations: 4 kB / 482.7 MB, free: 8 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1469, allocations: 0 / 482.7 MB, free: 8 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3126/0.4595, allocations: 271.7 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.586e-05/0.4595, allocations: 19.78 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.4596, allocations: 14.25 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.4597, allocations: 3.75 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/0.4598, allocations: 8 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.4598, allocations: 6.5 kB / 483 MB, free: 52.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.46, allocations: 179.2 kB / 483.2 MB, free: 52.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.46, allocations: 3.281 kB / 483.2 MB, free: 52.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00044/0.4604, allocations: 60.25 kB / 483.3 MB, free: 52.1 MB / 446.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.0001382/0.4605, allocations: 104.4 kB / 483.4 MB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002443/0.4608, allocations: 88.95 kB / 483.5 MB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4608, allocations: 3.312 kB / 483.5 MB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 7.649e-05/0.4609, allocations: 51.16 kB / 483.5 MB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.4613, allocations: 56.73 kB / 483.6 MB, free: 52.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.4623, allocations: 0.5773 MB / 484.2 MB, free: 51.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.4624, allocations: 145.9 kB / 484.3 MB, free: 51.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.4625, allocations: 32.67 kB / 484.3 MB, free: 51.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.674e-05/0.4626, allocations: 24.16 kB / 484.4 MB, free: 51.64 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4626, allocations: 0 / 484.4 MB, free: 51.64 MB / 446.1 MB Notification: Performance of Templates: time 0.006664/0.4692, allocations: 2.773 MB / 487.1 MB, free: 51.38 MB / 446.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 -s ida -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.0102365569910035] Failed to read output from testmodel.py, exit status != 0: 0.4795326250605285 0.48911794300000005 0.347481711 Calling exit ...