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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001186/0.001186, allocations: 196.9 kB / 16.14 MB, free: 6.648 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.218/1.218, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1787/0.1787, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.89 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2072, allocations: 54.94 MB / 435.2 MB, free: 39.45 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.001735/0.209, allocations: 1.029 MB / 436.2 MB, free: 38.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008624/0.2099, allocations: 1.206 MB / 437.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.872e-05/0.2099, allocations: 2.875 kB / 437.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002167/0.2102, allocations: 30.3 kB / 437.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.2103, allocations: 48.36 kB / 437.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001137/0.2104, allocations: 65.88 kB / 437.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2106, allocations: 190.2 kB / 437.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.907e-05/0.2106, allocations: 30.11 kB / 437.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.717e-05/0.2107, allocations: 76.83 kB / 437.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.2109, allocations: 88.03 kB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.2109, allocations: 5.062 kB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.961e-05/0.2109, allocations: 7.188 kB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.211, allocations: 41.28 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.211, allocations: 39.73 kB / 438 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.427e-05/0.2111, allocations: 99.73 kB / 438.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2111, allocations: 3.234 kB / 438.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2111, allocations: 0 / 438.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.2111, allocations: 2.406 kB / 438.1 MB, free: 37.61 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.0008056/0.2119, allocations: 0.4921 MB / 438.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.861e-05/0.212, allocations: 19.88 kB / 438.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.627e-05/0.212, allocations: 41.66 kB / 438.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.2121, allocations: 17.78 kB / 438.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.2124, allocations: 273.2 kB / 439 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.2125, allocations: 7.188 kB / 439 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.2125, allocations: 6.375 kB / 439 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.2126, allocations: 103.8 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.2126, allocations: 3.938 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2127, allocations: 4 kB / 439.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2127, allocations: 2.5 kB / 439.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.2128, allocations: 80.41 kB / 439.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.2133, allocations: 423.1 kB / 439.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.2136, allocations: 161.5 kB / 439.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.192e-05/0.2137, allocations: 46.77 kB / 439.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.2137, allocations: 3.938 kB / 439.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.25e-05/0.2137, allocations: 41.72 kB / 439.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.2137, allocations: 0 / 439.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002124/0.2158, allocations: 485.4 kB / 440.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.461e-05/0.2159, allocations: 54.25 kB / 440.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.2162, allocations: 233 kB / 440.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.148e-06/0.2162, allocations: 25.7 kB / 440.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.2163, allocations: 113.1 kB / 440.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.2163, allocations: 33.73 kB / 440.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.2163, allocations: 28.97 kB / 440.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.529e-05/0.2164, allocations: 323.1 kB / 441.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.32e-05/0.2164, allocations: 40.67 kB / 441.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.816e-05/0.2165, allocations: 39.69 kB / 441.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.2177, allocations: 289.8 kB / 441.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2177, allocations: 3.938 kB / 441.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0007821/0.2185, allocations: 244.9 kB / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.2185, allocations: 6.906 kB / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.2185, allocations: 0 / 441.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/0.2193, allocations: 114.7 kB / 441.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-05/0.2193, allocations: 6.781 kB / 441.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.2219, allocations: 1.761 MB / 443.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.222, allocations: 27.45 kB / 443.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2221, allocations: 6.781 kB / 443.6 MB, free: 33.74 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 7.626e-05/0.2221, allocations: 131.8 kB / 443.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.2222, allocations: 13.38 kB / 443.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007015/0.2229, allocations: 275.5 kB / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2229, allocations: 2.688 kB / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.2229, allocations: 0 / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2229, allocations: 0 / 444 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.2231, allocations: 238.1 kB / 444.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2231, allocations: 0 / 444.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.141e-05/0.2232, allocations: 12.33 kB / 444.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005315/0.2237, allocations: 116.5 kB / 444.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.2237, allocations: 6.75 kB / 444.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.2255, allocations: 1.679 MB / 446.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2255, allocations: 0 / 446.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006924/0.2262, allocations: 404.7 kB / 446.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.996e-05/0.2262, allocations: 96 kB / 446.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.2262, allocations: 0 / 446.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.2265, allocations: 27.11 kB / 446.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.2265, allocations: 9.141 kB / 446.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.2265, allocations: 10.41 kB / 446.6 MB, free: 31.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003042/0.2268, allocations: 194 kB / 446.8 MB, free: 31.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2268, allocations: 0 / 446.8 MB, free: 31.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.2271, allocations: 27.06 kB / 446.8 MB, free: 31.37 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.0008271/0.2279, allocations: 0.9358 MB / 447.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002857/0.2282, allocations: 247.5 kB / 448 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2282, allocations: 0 / 448 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.2284, allocations: 184.2 kB / 448.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2287, allocations: 25.92 kB / 448.2 MB, free: 30.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.2318, allocations: 2.198 MB / 450.4 MB, free: 28.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.232, allocations: 0.732 MB / 451.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.393e-05/0.232, allocations: 22.83 kB / 451.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.058e-05/0.2321, allocations: 39.67 kB / 451.2 MB, free: 28.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2321, allocations: 4 kB / 451.2 MB, free: 28.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3616/0.5937, allocations: 3.979 MB / 455.2 MB, free: 27.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.5939, allocations: 287.6 kB / 455.5 MB, free: 27.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.376, allocations: 2.5 kB / 455.5 MB, free: 27.34 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)