Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009073/0.0009073, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001171/0.001171, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2539/0.2539, allocations: 22.34 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004198/0.0004203, allocations: 12 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3561, allocations: 55.97 MB / 437.9 MB, free: 39.22 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.00291/0.359, allocations: 2.63 MB / 440.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008244/0.3599, allocations: 444.2 kB / 441 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.36, allocations: 12.25 kB / 441 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.311e-05/0.3601, allocations: 39.39 kB / 441 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003517/0.3605, allocations: 155.3 kB / 441.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.3606, allocations: 53.78 kB / 441.2 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.3609, allocations: 396.2 kB / 441.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.3613, allocations: 201.2 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.3615, allocations: 167.2 kB / 442 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.3617, allocations: 165.7 kB / 442.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.3617, allocations: 22.25 kB / 442.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.3618, allocations: 51.14 kB / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.3619, allocations: 58.22 kB / 442.3 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.29e-05/0.362, allocations: 87.7 kB / 442.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.3623, allocations: 288.2 kB / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3623, allocations: 0 / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3623, allocations: 3.938 kB / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.3623, allocations: 0 / 442.6 MB, free: 36.22 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008982/0.3632, allocations: 0.5773 MB / 443.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3633, allocations: 10.59 kB / 443.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.766e-05/0.3633, allocations: 36.41 kB / 443.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.3637, allocations: 306 kB / 443.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.3637, allocations: 12.5 kB / 443.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3638, allocations: 23.12 kB / 443.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.3642, allocations: 280.2 kB / 443.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3642, allocations: 0 / 443.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.3643, allocations: 15.14 kB / 443.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.3643, allocations: 9.734 kB / 443.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.3646, allocations: 189.8 kB / 444.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.3658, allocations: 0.9113 MB / 445 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.3662, allocations: 165.7 kB / 445.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3664, allocations: 105.4 kB / 445.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3664, allocations: 0 / 445.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.3664, allocations: 33.62 kB / 445.3 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000179/0.3666, allocations: 40.92 kB / 445.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.3666, allocations: 6.781 kB / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001157/0.3678, allocations: 444.2 kB / 445.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.3678, allocations: 54.31 kB / 445.8 MB, free: 34.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.3681, allocations: 296.3 kB / 446.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.3681, allocations: 32.42 kB / 446.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.624e-05/0.3682, allocations: 184.2 kB / 446.3 MB, free: 33.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.878e-05/0.3682, allocations: 59.67 kB / 446.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.3683, allocations: 4 kB / 446.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.3683, allocations: 338.5 kB / 446.7 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.3684, allocations: 69.97 kB / 446.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3686, allocations: 90.31 kB / 446.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.3687, allocations: 76.5 kB / 446.9 MB, free: 33.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3687, allocations: 0 / 446.9 MB, free: 33.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006448/0.3694, allocations: 308.6 kB / 447.2 MB, free: 33.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3694, allocations: 6.375 kB / 447.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3694, allocations: 3.422 kB / 447.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007187/0.3701, allocations: 100.2 kB / 447.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.3704, allocations: 48.39 kB / 447.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003015/0.3707, allocations: 0.5807 MB / 448 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.3708, allocations: 4 kB / 448 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.3708, allocations: 9.141 kB / 448 MB, free: 32.49 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.371, allocations: 144.8 kB / 448.1 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.467e-05/0.3711, allocations: 33.22 kB / 448.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007302/0.3718, allocations: 361.7 kB / 448.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3718, allocations: 6.906 kB / 448.5 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3719, allocations: 3.984 kB / 448.5 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3719, allocations: 3.375 kB / 448.5 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009378/0.3728, allocations: 0.7336 MB / 449.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3728, allocations: 0 / 449.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.373, allocations: 43.66 kB / 449.3 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004979/0.3735, allocations: 109.4 kB / 449.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3736, allocations: 6.75 kB / 449.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002432/0.3738, allocations: 0.5934 MB / 450 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3738, allocations: 10.64 kB / 450 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.3746, allocations: 0.4958 MB / 450.5 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.3746, allocations: 112.8 kB / 450.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/0.3747, allocations: 6.844 kB / 450.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.3748, allocations: 0 / 450.6 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.3749, allocations: 20.27 kB / 450.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3749, allocations: 5.656 kB / 450.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.375, allocations: 218.2 kB / 450.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.375, allocations: 0 / 450.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000323/0.3754, allocations: 77.03 kB / 451 MB, free: 30.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001449/0.3755, allocations: 108.3 kB / 451.1 MB, free: 30.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004193/0.376, allocations: 191.8 kB / 451.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.376, allocations: 64 / 451.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3762, allocations: 120.5 kB / 451.4 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.3766, allocations: 68.69 kB / 451.4 MB, free: 30.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.3776, allocations: 0.832 MB / 452.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.3778, allocations: 0.7808 MB / 453 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001741/0.378, allocations: 47.62 kB / 453.1 MB, free: 29.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.3781, allocations: 33.05 kB / 453.1 MB, free: 29.01 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3781, allocations: 0 / 453.1 MB, free: 29.01 MB / 350.1 MB Notification: Performance of Templates: time 0.006865/0.385, allocations: 3.69 MB / 456.8 MB, free: 28.77 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)