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.001022/0.001022, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.00129/0.00129, allocations: 172.7 kB / 15.95 MB, free: 208 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.51/1.51, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2425/0.2425, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003245/0.0003248, allocations: 12 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3327, allocations: 55.97 MB / 437.9 MB, free: 39.16 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.002456/0.3352, allocations: 2.526 MB / 440.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006696/0.3359, allocations: 419.7 kB / 440.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.336, allocations: 2.844 kB / 440.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.39e-05/0.3361, allocations: 36.25 kB / 440.9 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.3363, allocations: 107.5 kB / 441 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.3365, allocations: 75.28 kB / 441.1 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003017/0.3369, allocations: 388.4 kB / 441.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003097/0.3372, allocations: 202.1 kB / 441.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.3373, allocations: 147.4 kB / 441.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.3375, allocations: 192.8 kB / 442 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.872e-05/0.3376, allocations: 25.38 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.3377, allocations: 59.8 kB / 442.1 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.3377, allocations: 69.27 kB / 442.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.218e-05/0.3378, allocations: 89.3 kB / 442.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.3381, allocations: 316.8 kB / 442.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3381, allocations: 0 / 442.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3381, allocations: 0 / 442.5 MB, free: 36.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3381, allocations: 0 / 442.5 MB, free: 36.26 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.0009081/0.339, allocations: 0.6342 MB / 443.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.339, allocations: 11.09 kB / 443.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.3391, allocations: 38.22 kB / 443.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.3394, allocations: 292.2 kB / 443.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.3395, allocations: 17 kB / 443.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.67e-05/0.3395, allocations: 24.56 kB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.34, allocations: 295.2 kB / 443.8 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.34, allocations: 3.953 kB / 443.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.3401, allocations: 11 kB / 443.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3401, allocations: 8.5 kB / 443.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005094/0.3406, allocations: 268.9 kB / 444.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.3418, allocations: 0.8246 MB / 444.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.3423, allocations: 243.2 kB / 445.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/0.3426, allocations: 159.6 kB / 445.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.3426, allocations: 2.812 kB / 445.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.3426, allocations: 44.64 kB / 445.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001796/0.3428, allocations: 33.95 kB / 445.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3428, allocations: 0 / 445.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003021/0.3458, allocations: 1.012 MB / 446.4 MB, free: 34.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.3459, allocations: 65.44 kB / 446.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.3461, allocations: 282.3 kB / 446.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.3462, allocations: 32.92 kB / 446.8 MB, free: 33.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.548e-05/0.3463, allocations: 180.4 kB / 447 MB, free: 33.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/0.3463, allocations: 78.52 kB / 447 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.565e-05/0.3463, allocations: 7 kB / 447 MB, free: 33.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.3464, allocations: 338.1 kB / 447.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.3466, allocations: 116 kB / 447.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.3469, allocations: 113.9 kB / 447.6 MB, free: 33.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.3471, allocations: 125.6 kB / 447.7 MB, free: 33.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3471, allocations: 0 / 447.7 MB, free: 33.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001512/0.3487, allocations: 0.5147 MB / 448.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3487, allocations: 7.969 kB / 448.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3487, allocations: 3.953 kB / 448.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.3497, allocations: 203.4 kB / 448.4 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.3503, allocations: 91.33 kB / 448.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003093/0.3534, allocations: 4.412 MB / 452.9 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.3536, allocations: 23.98 kB / 453 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.3537, allocations: 8.562 kB / 453 MB, free: 28.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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.3538, allocations: 156.6 kB / 453.1 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.017e-05/0.3539, allocations: 27.5 kB / 453.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001197/0.3551, allocations: 0.5257 MB / 453.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.3551, allocations: 6.453 kB / 453.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3551, allocations: 3.625 kB / 453.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3551, allocations: 0 / 453.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.3566, allocations: 0.9493 MB / 454.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3566, allocations: 0 / 454.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.3571, allocations: 92.62 kB / 454.7 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005941/0.3577, allocations: 159.9 kB / 454.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.3577, allocations: 6.781 kB / 454.9 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/0.3599, allocations: 4.09 MB / 459 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3599, allocations: 6.609 kB / 459 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.361, allocations: 0.5606 MB / 459.5 MB, free: 23.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.3611, allocations: 114.8 kB / 459.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.3612, allocations: 7.844 kB / 459.7 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.3614, allocations: 26.27 kB / 459.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.3615, allocations: 30.33 kB / 459.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.3615, allocations: 14.22 kB / 459.7 MB, free: 23.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.3616, allocations: 201.8 kB / 459.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3616, allocations: 0 / 459.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005462/0.3622, allocations: 102.1 kB / 460 MB, free: 23.09 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001328/0.3623, allocations: 121.3 kB / 460.2 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.364, allocations: 0.6629 MB / 460.8 MB, free: 22.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.364, allocations: 2.812 kB / 460.8 MB, free: 22.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006972/0.3647, allocations: 468.1 kB / 461.3 MB, free: 22.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003964/0.3651, allocations: 58.27 kB / 461.3 MB, free: 22.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.3661, allocations: 0.7372 MB / 462.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.3664, allocations: 0.7889 MB / 462.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.3665, allocations: 31.16 kB / 462.9 MB, free: 21.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.3666, allocations: 22.12 kB / 462.9 MB, free: 21.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3666, allocations: 3.938 kB / 462.9 MB, free: 21.14 MB / 350.1 MB Notification: Performance of Templates: time 0.01044/0.377, allocations: 4.523 MB / 467.4 MB, free: 20.85 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)