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.001475/0.001475, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002596/0.002596, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2073/0.2073, allocations: 22.36 MB / 312.7 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 55.91 kB / 380.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3196, allocations: 54.95 MB / 435.8 MB, free: 39.55 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.Pumps_valve): time 0.03113/0.3508, allocations: 22.23 MB / 458 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3519, allocations: 385.9 kB / 458.4 MB, free: 31.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.3521, allocations: 2.312 kB / 458.4 MB, free: 31.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.3522, allocations: 46.72 kB / 458.4 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.3524, allocations: 106.7 kB / 458.5 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.3527, allocations: 107 kB / 458.6 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003617/0.3531, allocations: 413.6 kB / 459 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.3535, allocations: 254.3 kB / 459.3 MB, free: 30.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.3536, allocations: 155.8 kB / 459.4 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.3539, allocations: 214.5 kB / 459.6 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.16e-05/0.354, allocations: 36.53 kB / 459.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.3542, allocations: 66.61 kB / 459.7 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.306e-05/0.3542, allocations: 86.73 kB / 459.8 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.3544, allocations: 200.3 kB / 460 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004253/0.3549, allocations: 433.1 kB / 460.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3549, allocations: 3.938 kB / 460.4 MB, free: 30.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3549, allocations: 3.938 kB / 460.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.3549, allocations: 1.031 kB / 460.5 MB, free: 30.16 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.001195/0.3561, allocations: 0.6804 MB / 461.1 MB, free: 29.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3562, allocations: 9.281 kB / 461.1 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.17e-05/0.3563, allocations: 38.66 kB / 461.2 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.3566, allocations: 304.8 kB / 461.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.3566, allocations: 20.09 kB / 461.5 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.3567, allocations: 29.38 kB / 461.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.3573, allocations: 287.2 kB / 461.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.3573, allocations: 192 / 461.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3573, allocations: 14.34 kB / 461.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3573, allocations: 6.594 kB / 461.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006322/0.358, allocations: 245.9 kB / 462.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3593, allocations: 0.8223 MB / 462.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005264/0.3599, allocations: 231.4 kB / 463.1 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.3602, allocations: 143.6 kB / 463.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.3603, allocations: 2.656 kB / 463.3 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.3603, allocations: 51.11 kB / 463.3 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001991/0.3605, allocations: 42.72 kB / 463.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3605, allocations: 5.344 kB / 463.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003556/0.3641, allocations: 0.9604 MB / 464.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.3641, allocations: 54.62 kB / 464.4 MB, free: 27.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.3645, allocations: 302 kB / 464.7 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3645, allocations: 31.27 kB / 464.7 MB, free: 27.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3646, allocations: 182.6 kB / 464.9 MB, free: 27.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.339e-05/0.3647, allocations: 71.55 kB / 464.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.352e-05/0.3648, allocations: 53.7 kB / 465 MB, free: 27.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.299e-05/0.3649, allocations: 339.2 kB / 465.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.3651, allocations: 105.2 kB / 465.4 MB, free: 27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002665/0.3654, allocations: 103.4 kB / 465.5 MB, free: 26.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005498/0.366, allocations: 227.7 kB / 465.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.366, allocations: 3.938 kB / 465.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001749/0.3677, allocations: 0.4948 MB / 466.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.3678, allocations: 7.25 kB / 466.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3678, allocations: 5.031 kB / 466.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.369, allocations: 200.9 kB / 466.5 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005708/0.3696, allocations: 93 kB / 466.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/0.3729, allocations: 4.766 MB / 471.3 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.3732, allocations: 15.41 kB / 471.3 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.3732, allocations: 11.19 kB / 471.3 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.0002025/0.3734, allocations: 150.5 kB / 471.5 MB, free: 21.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.3735, allocations: 27.72 kB / 471.5 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.3748, allocations: 0.5098 MB / 472 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3749, allocations: 4.062 kB / 472 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3749, allocations: 8 kB / 472 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3749, allocations: 7.172 kB / 472 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.3765, allocations: 0.9329 MB / 473 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3766, allocations: 0 / 473 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.377, allocations: 95.34 kB / 473.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005618/0.3776, allocations: 155.7 kB / 473.2 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.3776, allocations: 4 kB / 473.2 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002123/0.3798, allocations: 4.425 MB / 477.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3798, allocations: 0 / 477.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.3809, allocations: 0.5538 MB / 478.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.381, allocations: 108.6 kB / 478.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.3811, allocations: 11.28 kB / 478.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.3813, allocations: 15.42 kB / 478.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.3814, allocations: 33.03 kB / 478.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.3814, allocations: 12 kB / 478.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001964/0.3816, allocations: 207.5 kB / 478.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3816, allocations: 0 / 478.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.3822, allocations: 102.8 kB / 478.7 MB, free: 14.37 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.0001736/0.3824, allocations: 105.7 kB / 478.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.3842, allocations: 0.6601 MB / 479.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3842, allocations: 0 / 479.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007255/0.3849, allocations: 452.6 kB / 479.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.3853, allocations: 52.53 kB / 479.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008655/0.3862, allocations: 0.6328 MB / 480.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000171/0.3864, allocations: 0.7945 MB / 481.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.3865, allocations: 33.31 kB / 481.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.3866, allocations: 23.44 kB / 481.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3866, allocations: 0 / 481.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Templates: time 0.008632/0.3952, allocations: 5.054 MB / 486.5 MB, free: 8.891 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)