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.007646/0.007646, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001762/0.001762, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.345/1.345, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2039/0.2039, allocations: 22.35 MB / 313 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2501, allocations: 54.94 MB / 435.7 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003132/0.2533, allocations: 2.872 MB / 438.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006936/0.254, allocations: 410.3 kB / 439 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2542, allocations: 7.688 kB / 439 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.513e-05/0.2543, allocations: 32.14 kB / 439 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.2545, allocations: 104.8 kB / 439.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.2547, allocations: 57.5 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.2549, allocations: 349.6 kB / 439.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.2551, allocations: 150.5 kB / 439.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.2553, allocations: 143.8 kB / 439.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2554, allocations: 120.1 kB / 439.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.2555, allocations: 12.25 kB / 439.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.2556, allocations: 42.55 kB / 440 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.515e-05/0.2556, allocations: 47.7 kB / 440 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2557, allocations: 134 kB / 440.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.2559, allocations: 220.1 kB / 440.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2559, allocations: 0 / 440.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.2559, allocations: 4 kB / 440.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.2559, allocations: 0 / 440.4 MB, free: 36.49 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.000663/0.2566, allocations: 0.5653 MB / 440.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2566, allocations: 12.09 kB / 440.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.2567, allocations: 32.34 kB / 441 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.257, allocations: 290 kB / 441.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.257, allocations: 18.16 kB / 441.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.257, allocations: 22.12 kB / 441.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.2573, allocations: 215.1 kB / 441.5 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2573, allocations: 192 / 441.5 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.2573, allocations: 11.5 kB / 441.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.2574, allocations: 3.75 kB / 441.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.2576, allocations: 126.5 kB / 441.6 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.2584, allocations: 0.8335 MB / 442.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.2586, allocations: 91.2 kB / 442.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.904e-05/0.2587, allocations: 52.48 kB / 442.6 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.2587, allocations: 0 / 442.6 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.2587, allocations: 33.5 kB / 442.6 MB, free: 34.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.2588, allocations: 4 kB / 442.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002861/0.259, allocations: 150.2 kB / 442.8 MB, free: 34.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.976e-05/0.2591, allocations: 51.41 kB / 442.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.2593, allocations: 287.7 kB / 443.1 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.2593, allocations: 29.7 kB / 443.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.2594, allocations: 167.8 kB / 443.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.2594, allocations: 40.89 kB / 443.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.2595, allocations: 31.64 kB / 443.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.2595, allocations: 342.4 kB / 443.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.2596, allocations: 35.61 kB / 443.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.335e-05/0.2597, allocations: 65.09 kB / 443.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.2608, allocations: 253.4 kB / 444.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2608, allocations: 0 / 444.1 MB, free: 33.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002349/0.2611, allocations: 172.4 kB / 444.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2611, allocations: 6.5 kB / 444.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2611, allocations: 0 / 444.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.2611, allocations: 3.938 kB / 444.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.2613, allocations: 39.97 kB / 444.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2614, allocations: 3.188 kB / 444.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.2615, allocations: 15.03 kB / 444.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.2615, allocations: 13.91 kB / 444.3 MB, free: 33.59 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.0001853/0.2617, allocations: 140.7 kB / 444.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.2617, allocations: 27.31 kB / 444.5 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.262, allocations: 157.3 kB / 444.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.262, allocations: 3.938 kB / 444.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.262, allocations: 0 / 444.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2621, allocations: 0 / 444.6 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.2623, allocations: 280.8 kB / 444.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2623, allocations: 4 kB / 444.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.2625, allocations: 39.34 kB / 445 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2625, allocations: 0 / 445 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.2625, allocations: 0 / 445 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2625, allocations: 6.844 kB / 445 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2625, allocations: 0 / 445 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.2628, allocations: 272.9 kB / 445.2 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.2629, allocations: 104.7 kB / 445.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.2629, allocations: 3.906 kB / 445.3 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.2631, allocations: 12 kB / 445.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.2631, allocations: 9.188 kB / 445.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.2631, allocations: 2.719 kB / 445.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.2633, allocations: 214 kB / 445.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2633, allocations: 0 / 445.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.2636, allocations: 57.84 kB / 445.6 MB, free: 32.65 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.0001028/0.2637, allocations: 100 kB / 445.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002011/0.2639, allocations: 101.9 kB / 445.8 MB, free: 32.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2639, allocations: 4.125 kB / 445.8 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.267e-05/0.264, allocations: 47.62 kB / 445.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.2644, allocations: 56.39 kB / 445.9 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008761/0.2652, allocations: 0.6955 MB / 446.6 MB, free: 31.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001357/0.2654, allocations: 0.7549 MB / 447.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.008e-05/0.2655, allocations: 24.81 kB / 447.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2655, allocations: 0 / 447.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of Templates: time 0.004002/0.2695, allocations: 3.073 MB / 450.5 MB, free: 31.06 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)