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.0009838/0.0009839, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007615/0.007615, allocations: 170.4 kB / 16.26 MB, free: 6.617 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.312/1.312, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1881/0.1881, allocations: 22.34 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002876, allocations: 11.98 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.227, allocations: 55.97 MB / 438.7 MB, free: 39.52 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.000882/0.228, allocations: 0.6909 MB / 439.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2291, allocations: 1.201 MB / 440.6 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.781e-05/0.2292, allocations: 0 / 440.6 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.2294, allocations: 29.75 kB / 440.6 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.2296, allocations: 48.81 kB / 440.7 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001392/0.2297, allocations: 64.39 kB / 440.7 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.2299, allocations: 190.6 kB / 440.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.707e-05/0.23, allocations: 23.39 kB / 440.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.7e-05/0.2301, allocations: 77.44 kB / 441 MB, free: 38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2302, allocations: 85.72 kB / 441.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.2303, allocations: 5.188 kB / 441.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.703e-05/0.2303, allocations: 3.062 kB / 441.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.392e-05/0.2304, allocations: 36.23 kB / 441.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.601e-05/0.2304, allocations: 62.53 kB / 441.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.56e-05/0.2305, allocations: 108.3 kB / 441.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2305, allocations: 2.969 kB / 441.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2305, allocations: 0 / 441.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.2305, allocations: 0 / 441.3 MB, free: 37.86 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.0008264/0.2314, allocations: 487.8 kB / 441.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.2314, allocations: 19.06 kB / 441.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.014e-05/0.2314, allocations: 37.62 kB / 441.8 MB, free: 37.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.2315, allocations: 17.59 kB / 441.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.2319, allocations: 270.8 kB / 442.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.2319, allocations: 3.312 kB / 442.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.232, allocations: 10.22 kB / 442.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.2321, allocations: 108.1 kB / 442.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.2321, allocations: 0 / 442.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2321, allocations: 0 / 442.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.2322, allocations: 7 kB / 442.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.2323, allocations: 84.34 kB / 442.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005192/0.2328, allocations: 422.9 kB / 442.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.2331, allocations: 146 kB / 442.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.729e-05/0.2332, allocations: 50.94 kB / 442.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.2332, allocations: 2.906 kB / 442.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.2333, allocations: 41.88 kB / 443 MB, free: 36.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.2333, allocations: 3.938 kB / 443 MB, free: 36.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002452/0.2357, allocations: 492.7 kB / 443.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.529e-05/0.2358, allocations: 54.06 kB / 443.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.2361, allocations: 235.1 kB / 443.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.2362, allocations: 25.7 kB / 443.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.467e-05/0.2362, allocations: 111.9 kB / 443.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.2362, allocations: 32.66 kB / 443.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.2363, allocations: 19.77 kB / 443.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.781e-05/0.2363, allocations: 327.9 kB / 444.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.705e-05/0.2364, allocations: 41.45 kB / 444.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.004e-05/0.2364, allocations: 36.75 kB / 444.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.2378, allocations: 290 kB / 444.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2378, allocations: 0 / 444.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008936/0.2387, allocations: 250.7 kB / 444.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.2387, allocations: 3.062 kB / 444.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2387, allocations: 3.656 kB / 444.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008677/0.2396, allocations: 116.1 kB / 445 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.094e-05/0.2396, allocations: 12.72 kB / 445 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002901/0.2426, allocations: 1.765 MB / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.2428, allocations: 24.7 kB / 446.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2428, allocations: 10.22 kB / 446.8 MB, free: 34.01 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 8.346e-05/0.2429, allocations: 130 kB / 446.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.2429, allocations: 13.84 kB / 446.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000757/0.2437, allocations: 278.3 kB / 447.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.2437, allocations: 0 / 447.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2437, allocations: 0 / 447.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2437, allocations: 0 / 447.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.2439, allocations: 239.9 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2439, allocations: 2.594 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.244, allocations: 10.41 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006016/0.2446, allocations: 123.1 kB / 447.6 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.2446, allocations: 7.422 kB / 447.6 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.2465, allocations: 1.677 MB / 449.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2465, allocations: 64 / 449.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007739/0.2473, allocations: 406.1 kB / 449.6 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.2474, allocations: 96.83 kB / 449.7 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.03e-05/0.2474, allocations: 3.469 kB / 449.7 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002238/0.2476, allocations: 29.39 kB / 449.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.2477, allocations: 12.41 kB / 449.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.2477, allocations: 3.062 kB / 449.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003262/0.248, allocations: 190.9 kB / 450 MB, free: 31.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.248, allocations: 3.938 kB / 450 MB, free: 31.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000266/0.2483, allocations: 31.72 kB / 450 MB, free: 31.62 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009108/0.2492, allocations: 0.9326 MB / 450.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003229/0.2495, allocations: 238.2 kB / 451.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2496, allocations: 4.062 kB / 451.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.2497, allocations: 193.1 kB / 451.4 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.25, allocations: 23.25 kB / 451.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.2536, allocations: 2.209 MB / 453.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.2537, allocations: 0.7319 MB / 454.3 MB, free: 28.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.548e-05/0.2538, allocations: 19.8 kB / 454.4 MB, free: 28.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.2538, allocations: 36.73 kB / 454.4 MB, free: 28.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2538, allocations: 0 / 454.4 MB, free: 28.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2797/0.5336, allocations: 3.899 MB / 458.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/0.5338, allocations: 290.6 kB / 458.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.322, allocations: 3.438 kB / 458.6 MB, free: 27.69 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/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)