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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Pumps_valve,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Pumps_valve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 99.86 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.001816/0.001816, 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.387/1.387, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2812/0.2812, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003303/0.0003305, allocations: 8 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2894, allocations: 55.98 MB / 437.9 MB, free: 39.29 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.002392/0.2918, allocations: 2.366 MB / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006105/0.2925, allocations: 434.2 kB / 440.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.602e-05/0.2926, allocations: 2.594 kB / 440.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.71e-05/0.2926, allocations: 34.42 kB / 440.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.2928, allocations: 135.9 kB / 440.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.2931, allocations: 80.95 kB / 440.9 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002263/0.2933, allocations: 278.1 kB / 441.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.2936, allocations: 203.8 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.2937, allocations: 143.8 kB / 441.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2939, allocations: 182.9 kB / 441.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.247e-05/0.2939, allocations: 24 kB / 441.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.2941, allocations: 57.03 kB / 441.8 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.2941, allocations: 68.72 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.2942, allocations: 84.58 kB / 442 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.2944, allocations: 319.4 kB / 442.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2944, allocations: 4 kB / 442.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2944, allocations: 0 / 442.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2945, allocations: 0 / 442.3 MB, free: 36.54 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.0009419/0.2954, allocations: 0.6364 MB / 442.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2955, allocations: 8.5 kB / 442.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.499e-05/0.2955, allocations: 61.7 kB / 443 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.178e-05/0.2956, allocations: 38.16 kB / 443 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.2959, allocations: 291.3 kB / 443.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.2959, allocations: 24.16 kB / 443.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.539e-05/0.296, allocations: 22.56 kB / 443.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/0.2964, allocations: 287.7 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2964, allocations: 2.781 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.2965, allocations: 10.94 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.2965, allocations: 9.844 kB / 443.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005231/0.297, allocations: 273.2 kB / 443.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.2982, allocations: 0.8302 MB / 444.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005557/0.2988, allocations: 261.8 kB / 445 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.2988, allocations: 3.984 kB / 445 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.585e-05/0.2988, allocations: 37.44 kB / 445 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001905/0.299, allocations: 40.56 kB / 445.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.299, allocations: 0 / 445.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.003185/0.3022, allocations: 1.012 MB / 446.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.3022, allocations: 57.2 kB / 446.1 MB, free: 34.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.3025, allocations: 279.8 kB / 446.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3025, allocations: 32.67 kB / 446.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.086e-05/0.3026, allocations: 183.3 kB / 446.6 MB, free: 33.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.3026, allocations: 82.2 kB / 446.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.3027, allocations: 4 kB / 446.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.3027, allocations: 339.3 kB / 447 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.303, allocations: 114.2 kB / 447.2 MB, free: 33.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.3032, allocations: 120 kB / 447.3 MB, free: 33.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3035, allocations: 122.1 kB / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3035, allocations: 0 / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001565/0.3051, allocations: 0.5148 MB / 447.9 MB, free: 33.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3051, allocations: 2.781 kB / 447.9 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3051, allocations: 6.734 kB / 447.9 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.3067, allocations: 214.2 kB / 448.1 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008772/0.3076, allocations: 85.22 kB / 448.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004668/0.3123, allocations: 4.431 MB / 452.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.3128, allocations: 20.27 kB / 452.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3128, allocations: 9.031 kB / 452.7 MB, free: 28.93 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.0002348/0.3131, allocations: 148.2 kB / 452.8 MB, free: 28.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.678e-05/0.3132, allocations: 27.56 kB / 452.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.3151, allocations: 0.5325 MB / 453.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3152, allocations: 2.719 kB / 453.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3152, allocations: 2.75 kB / 453.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.3152, allocations: 3.469 kB / 453.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006029/0.3158, allocations: 387.3 kB / 453.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3158, allocations: 0 / 453.8 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007758/0.3166, allocations: 100.2 kB / 453.9 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009471/0.3176, allocations: 160.6 kB / 454 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.3176, allocations: 6.781 kB / 454 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003153/0.3208, allocations: 4.095 MB / 458.1 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3208, allocations: 0 / 458.1 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.3226, allocations: 0.5808 MB / 458.7 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.3228, allocations: 111.9 kB / 458.8 MB, free: 23.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.3228, allocations: 8 kB / 458.8 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003313/0.3232, allocations: 28.77 kB / 458.8 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3233, allocations: 29.77 kB / 458.9 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.3233, allocations: 11.88 kB / 458.9 MB, free: 23.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003173/0.3237, allocations: 204.2 kB / 459.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3237, allocations: 0 / 459.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009624/0.3247, allocations: 106.2 kB / 459.2 MB, free: 23.62 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.001767/0.3264, allocations: 1.094 MB / 460.3 MB, free: 22.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.3292, allocations: 0.6726 MB / 461 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3292, allocations: 0 / 461 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.3304, allocations: 471.7 kB / 461.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005469/0.331, allocations: 43.86 kB / 461.5 MB, free: 22.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3327, allocations: 1.01 MB / 462.5 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.3331, allocations: 0.7951 MB / 463.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3333, allocations: 28.5 kB / 463.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3335, allocations: 112.2 kB / 463.4 MB, free: 20.64 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3335, allocations: 0 / 463.4 MB, free: 20.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.3658, allocations: 7.194 MB / 470.6 MB, free: 20.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.366, allocations: 202.2 kB / 470.8 MB, free: 19.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.23, allocations: 10.19 kB / 470.8 MB, free: 19.93 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Pumps_valve_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Pumps_valve.fmu > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1) Environment - environmentSimulation: