Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008009/0.0008009, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00739/0.00739, allocations: 172 kB / 16.27 MB, free: 6.367 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.517/1.517, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2277/0.2277, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002987, allocations: 12 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3084, allocations: 55.98 MB / 438.6 MB, free: 39.44 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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.Pumps_valve): time 0.02966/0.3381, allocations: 22.13 MB / 460.7 MB, free: 31.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3395, allocations: 432 kB / 461.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.3397, allocations: 3.438 kB / 461.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.937e-05/0.3398, allocations: 32.03 kB / 461.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.3401, allocations: 86.16 kB / 461.2 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.3404, allocations: 89.55 kB / 461.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.3408, allocations: 396.6 kB / 461.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003661/0.3412, allocations: 219.8 kB / 461.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.3414, allocations: 147.8 kB / 462.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.3416, allocations: 195.1 kB / 462.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.568e-05/0.3417, allocations: 23.5 kB / 462.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.3419, allocations: 51.45 kB / 462.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.097e-05/0.3419, allocations: 79.22 kB / 462.4 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.3421, allocations: 201.4 kB / 462.6 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.3425, allocations: 418.7 kB / 463 MB, free: 30.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3425, allocations: 1.5 kB / 463 MB, free: 30.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3425, allocations: 0 / 463 MB, free: 30.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3426, allocations: 0 / 463 MB, free: 30.15 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001169/0.3437, allocations: 0.6336 MB / 463.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.3438, allocations: 14.44 kB / 463.7 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.3439, allocations: 39.5 kB / 463.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.3443, allocations: 305.5 kB / 464 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.3444, allocations: 22.44 kB / 464 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.703e-05/0.3444, allocations: 26.69 kB / 464 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006298/0.3451, allocations: 292.1 kB / 464.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3451, allocations: 192 / 464.3 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.3451, allocations: 18.12 kB / 464.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.3452, allocations: 7.25 kB / 464.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006664/0.3458, allocations: 272.6 kB / 464.6 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.3474, allocations: 0.8218 MB / 465.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.348, allocations: 254.2 kB / 465.7 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003575/0.3484, allocations: 152.8 kB / 465.8 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.3484, allocations: 2 kB / 465.8 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.3484, allocations: 43.97 kB / 465.9 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002171/0.3486, allocations: 44.3 kB / 465.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.893e-06/0.3487, allocations: 0 / 465.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003617/0.3523, allocations: 1.013 MB / 466.9 MB, free: 27.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.3523, allocations: 54.69 kB / 467 MB, free: 27.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.3526, allocations: 282.7 kB / 467.3 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.3526, allocations: 31.8 kB / 467.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.3527, allocations: 185.6 kB / 467.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.3528, allocations: 74.38 kB / 467.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.3529, allocations: 22.8 kB / 467.6 MB, free: 27.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.514e-05/0.3529, allocations: 344.2 kB / 467.9 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.3532, allocations: 110.6 kB / 468 MB, free: 27.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.3535, allocations: 117.7 kB / 468.1 MB, free: 26.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005666/0.3541, allocations: 257.2 kB / 468.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3541, allocations: 4.875 kB / 468.4 MB, free: 26.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001694/0.3558, allocations: 0.5151 MB / 468.9 MB, free: 26.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.3558, allocations: 9.875 kB / 468.9 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3559, allocations: 3.469 kB / 468.9 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.3571, allocations: 193.2 kB / 469.1 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006058/0.3577, allocations: 106.9 kB / 469.2 MB, free: 26.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/0.3609, allocations: 4.409 MB / 473.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.3612, allocations: 19.38 kB / 473.6 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.3612, allocations: 7.328 kB / 473.7 MB, free: 21.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.3614, allocations: 153.7 kB / 473.8 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.3615, allocations: 31.62 kB / 473.8 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.3628, allocations: 0.5258 MB / 474.4 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3628, allocations: 4 kB / 474.4 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3628, allocations: 8 kB / 474.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3628, allocations: 7.406 kB / 474.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.3644, allocations: 0.9545 MB / 475.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3644, allocations: 3.938 kB / 475.3 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005164/0.3649, allocations: 100.5 kB / 475.4 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006537/0.3656, allocations: 152 kB / 475.6 MB, free: 19.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.3656, allocations: 7.234 kB / 475.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.3679, allocations: 4.099 MB / 479.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3679, allocations: 0 / 479.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.3691, allocations: 0.5618 MB / 480.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.3692, allocations: 111.9 kB / 480.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.3692, allocations: 4.141 kB / 480.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/0.3695, allocations: 26.7 kB / 480.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3696, allocations: 38.33 kB / 480.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.3696, allocations: 12 kB / 480.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3698, allocations: 208.2 kB / 480.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3698, allocations: 0 / 480.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005833/0.3704, allocations: 99.84 kB / 480.7 MB, free: 14.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001535/0.3706, allocations: 104.9 kB / 480.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.3724, allocations: 0.6656 MB / 481.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3725, allocations: 0 / 481.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/0.3733, allocations: 476.7 kB / 482 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.3737, allocations: 51.66 kB / 482 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009431/0.3746, allocations: 0.7811 MB / 482.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.3749, allocations: 0.7899 MB / 483.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.375, allocations: 29.56 kB / 483.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.805e-05/0.3751, allocations: 23.44 kB / 483.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of SimCode: time 1.233e-06/0.3751, allocations: 4 kB / 483.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Templates: time 0.009698/0.3848, allocations: 4.634 MB / 488.3 MB, free: 9.242 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)