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.001242/0.001242, allocations: 98.92 kB / 15.05 MB, free: 1.105 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.001649/0.001649, allocations: 177.3 kB / 15.94 MB, free: 228 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.437/1.437, allocations: 223.2 MB / 239.9 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2518/0.2518, allocations: 22.35 MB / 313.3 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004755, allocations: 8 kB / 381.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3312, allocations: 55.99 MB / 437.8 MB, free: 39.38 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.002568/0.3338, allocations: 2.362 MB / 440.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007208/0.3345, allocations: 450.8 kB / 440.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.3347, allocations: 2.812 kB / 440.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.971e-05/0.3348, allocations: 35.44 kB / 440.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.335, allocations: 130.1 kB / 440.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.3353, allocations: 81.19 kB / 440.9 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.3356, allocations: 285.9 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.336, allocations: 199.5 kB / 441.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3361, allocations: 139.1 kB / 441.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.3363, allocations: 186.6 kB / 441.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.3364, allocations: 28.16 kB / 441.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.3365, allocations: 52.91 kB / 441.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.34e-05/0.3366, allocations: 71.97 kB / 441.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.441e-05/0.3367, allocations: 87.3 kB / 441.9 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002854/0.337, allocations: 309 kB / 442.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.337, allocations: 2.844 kB / 442.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.337, allocations: 0 / 442.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.337, allocations: 0 / 442.2 MB, free: 36.63 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.001101/0.3381, allocations: 0.6377 MB / 442.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3382, allocations: 12.78 kB / 442.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.305e-05/0.3383, allocations: 40.69 kB / 442.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003995/0.3387, allocations: 288.7 kB / 443.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.3387, allocations: 19.94 kB / 443.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.717e-05/0.3388, allocations: 24.69 kB / 443.2 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.3393, allocations: 290.3 kB / 443.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3393, allocations: 3.953 kB / 443.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3394, allocations: 10.88 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3394, allocations: 5.625 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.34, allocations: 273.4 kB / 443.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.3413, allocations: 0.8251 MB / 444.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005741/0.3419, allocations: 262.5 kB / 444.9 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.3419, allocations: 4 kB / 444.9 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.3419, allocations: 33.69 kB / 444.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001853/0.3421, allocations: 45.05 kB / 444.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.3421, allocations: 0 / 444.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003239/0.3454, allocations: 1.004 MB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.3454, allocations: 54.38 kB / 446 MB, free: 34.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.3457, allocations: 284.2 kB / 446.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3457, allocations: 29.7 kB / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.3458, allocations: 186.3 kB / 446.5 MB, free: 34.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.3459, allocations: 82.45 kB / 446.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.3459, allocations: 7.938 kB / 446.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.346, allocations: 340.9 kB / 446.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.3462, allocations: 105 kB / 447 MB, free: 33.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.3465, allocations: 124.9 kB / 447.1 MB, free: 33.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3467, allocations: 124.6 kB / 447.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3467, allocations: 0 / 447.2 MB, free: 33.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001591/0.3483, allocations: 0.5174 MB / 447.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3484, allocations: 7.5 kB / 447.8 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3484, allocations: 4 kB / 447.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.3495, allocations: 200.1 kB / 448 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005634/0.3501, allocations: 100.2 kB / 448.1 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003092/0.3532, allocations: 4.429 MB / 452.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.3535, allocations: 27.11 kB / 452.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.3535, allocations: 9.703 kB / 452.5 MB, free: 29.07 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.0001692/0.3537, allocations: 140.5 kB / 452.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.3537, allocations: 26.69 kB / 452.7 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.355, allocations: 0.532 MB / 453.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3551, allocations: 3.781 kB / 453.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3551, allocations: 6.906 kB / 453.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3551, allocations: 0 / 453.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.3555, allocations: 386.5 kB / 453.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3555, allocations: 0 / 453.6 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.356, allocations: 101.3 kB / 453.7 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006884/0.3567, allocations: 153.7 kB / 453.9 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.3567, allocations: 4 kB / 453.9 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.3588, allocations: 4.108 MB / 458 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3588, allocations: 4.125 kB / 458 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.36, allocations: 0.5807 MB / 458.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.3601, allocations: 108.2 kB / 458.7 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.3601, allocations: 14.02 kB / 458.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.3604, allocations: 18.72 kB / 458.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.3604, allocations: 28.69 kB / 458.7 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.3605, allocations: 15.11 kB / 458.7 MB, free: 23.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.3606, allocations: 206.2 kB / 458.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3606, allocations: 0 / 458.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000555/0.3612, allocations: 94.25 kB / 459 MB, free: 23.76 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.000144/0.3614, allocations: 118.2 kB / 459.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.3631, allocations: 0.6736 MB / 459.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3631, allocations: 4 kB / 459.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.3639, allocations: 457.2 kB / 460.3 MB, free: 23.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3642, allocations: 50.83 kB / 460.3 MB, free: 23.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009353/0.3652, allocations: 0.7512 MB / 461.1 MB, free: 22.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.3654, allocations: 0.8038 MB / 461.9 MB, free: 21.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.3655, allocations: 26.16 kB / 461.9 MB, free: 21.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.3655, allocations: 23.84 kB / 461.9 MB, free: 21.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3655, allocations: 0 / 461.9 MB, free: 21.82 MB / 350.1 MB Notification: Performance of Templates: time 0.009119/0.3747, allocations: 4.476 MB / 466.4 MB, free: 21.54 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: