Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.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_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",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.001016/0.001016, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001327/0.001327, allocations: 168.7 kB / 15.95 MB, free: 204 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.374/1.374, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1953/0.1953, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 12 kB / 382.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2868, allocations: 55.98 MB / 438 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.001141/0.288, allocations: 0.6766 MB / 438.7 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2892, allocations: 1.181 MB / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.935e-05/0.2893, allocations: 0 / 439.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.2896, allocations: 30.44 kB / 439.9 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.2897, allocations: 47.23 kB / 440 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001395/0.2899, allocations: 55.11 kB / 440 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002055/0.2901, allocations: 160.6 kB / 440.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.2902, allocations: 23.19 kB / 440.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2903, allocations: 95.23 kB / 440.3 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.2905, allocations: 80.64 kB / 440.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.2905, allocations: 2.969 kB / 440.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.888e-05/0.2905, allocations: 5.562 kB / 440.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.621e-05/0.2906, allocations: 32.81 kB / 440.4 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.2906, allocations: 35.95 kB / 440.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.632e-05/0.2907, allocations: 80.89 kB / 440.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.2907, allocations: 3 kB / 440.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2908, allocations: 0 / 440.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.2908, allocations: 0 / 440.5 MB, free: 37.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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008779/0.2916, allocations: 496.2 kB / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2917, allocations: 11.97 kB / 441 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.845e-05/0.2917, allocations: 37.98 kB / 441.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.2918, allocations: 13.59 kB / 441.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.2922, allocations: 270.3 kB / 441.3 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.2922, allocations: 9.219 kB / 441.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.2922, allocations: 7.344 kB / 441.4 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.2924, allocations: 103.4 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2924, allocations: 3.953 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.2924, allocations: 2.688 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2925, allocations: 0 / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.2926, allocations: 83.73 kB / 441.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.2932, allocations: 420.2 kB / 442 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.2935, allocations: 146.2 kB / 442.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.79e-05/0.2936, allocations: 50.55 kB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.2936, allocations: 4 kB / 442.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.358e-05/0.2936, allocations: 41.34 kB / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.2936, allocations: 0 / 442.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002004/0.2956, allocations: 494.1 kB / 442.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.2957, allocations: 55.36 kB / 442.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.296, allocations: 236.7 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.2961, allocations: 25.7 kB / 443 MB, free: 35.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.2961, allocations: 111.4 kB / 443.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.2962, allocations: 31.94 kB / 443.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.2962, allocations: 0 / 443.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.2962, allocations: 332.9 kB / 443.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.464e-05/0.2963, allocations: 37 kB / 443.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.173e-05/0.2964, allocations: 36.55 kB / 443.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.606e-05/0.2964, allocations: 44.5 kB / 443.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2965, allocations: 0 / 443.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0007372/0.2972, allocations: 251.8 kB / 443.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2972, allocations: 6.125 kB / 443.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.2972, allocations: 0 / 443.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007156/0.298, allocations: 114.2 kB / 443.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.243e-05/0.298, allocations: 12.53 kB / 443.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.3006, allocations: 1.752 MB / 445.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.3008, allocations: 22.19 kB / 445.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.3008, allocations: 10.22 kB / 445.7 MB, free: 33.88 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.301, allocations: 133.7 kB / 445.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.301, allocations: 17.58 kB / 445.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006708/0.3017, allocations: 270 kB / 446.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3017, allocations: 0 / 446.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3017, allocations: 3.953 kB / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3017, allocations: 2.938 kB / 446.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.3019, allocations: 232.9 kB / 446.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3019, allocations: 2.938 kB / 446.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.256e-05/0.302, allocations: 10.16 kB / 446.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000483/0.3025, allocations: 118.4 kB / 446.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3025, allocations: 4 kB / 446.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001735/0.3043, allocations: 1.691 MB / 448.2 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3043, allocations: 0 / 448.2 MB, free: 31.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006622/0.3049, allocations: 399.3 kB / 448.6 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.404e-05/0.305, allocations: 94.25 kB / 448.7 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.305, allocations: 4 kB / 448.7 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.3052, allocations: 28.56 kB / 448.7 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.3052, allocations: 12.91 kB / 448.7 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.3053, allocations: 7.125 kB / 448.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.3055, allocations: 189.5 kB / 448.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3055, allocations: 4 kB / 448.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.3058, allocations: 27.03 kB / 448.9 MB, free: 31.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008382/0.3067, allocations: 0.9279 MB / 449.9 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.307, allocations: 253.5 kB / 450.1 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3071, allocations: 0 / 450.1 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.3072, allocations: 189.4 kB / 450.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.3076, allocations: 26.75 kB / 450.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.3098, allocations: 1.181 MB / 451.5 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.3099, allocations: 0.7281 MB / 452.2 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.654e-05/0.31, allocations: 18.44 kB / 452.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.87e-05/0.31, allocations: 43.05 kB / 452.3 MB, free: 29.1 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.31, allocations: 2.25 kB / 452.3 MB, free: 29.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/0.3234, allocations: 3.926 MB / 456.2 MB, free: 28.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.3236, allocations: 273.5 kB / 456.5 MB, free: 28.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.174, allocations: 0 / 456.5 MB, free: 28.47 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-09 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1) Environment - environmentSimulation: