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_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",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.00106/0.00106, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 195.6 kB / 16.53 MB, free: 6.391 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.25/1.25, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1647/0.1647, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.89 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.211, allocations: 54.94 MB / 435.9 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.00287/0.2139, allocations: 3.01 MB / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.215, allocations: 0.9436 MB / 439.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2151, allocations: 9.875 kB / 439.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.2153, allocations: 58.67 kB / 439.9 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002964/0.2156, allocations: 175.3 kB / 440.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.216, allocations: 191.3 kB / 440.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004054/0.2164, allocations: 0.7069 MB / 441 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.2167, allocations: 396.9 kB / 441.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.2169, allocations: 301.9 kB / 441.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.2173, allocations: 413.1 kB / 442.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.324e-05/0.2174, allocations: 69.41 kB / 442.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.2175, allocations: 103.7 kB / 442.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.2176, allocations: 203 kB / 442.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.2179, allocations: 330.8 kB / 442.7 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004222/0.2183, allocations: 0.7713 MB / 443.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2183, allocations: 0 / 443.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2183, allocations: 0 / 443.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2183, allocations: 0 / 443.5 MB, free: 35.32 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001555/0.2199, allocations: 0.9213 MB / 444.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.2199, allocations: 8.719 kB / 444.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.357e-05/0.22, allocations: 79.72 kB / 444.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.771e-05/0.2201, allocations: 58.22 kB / 444.6 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2205, allocations: 387.9 kB / 445 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2205, allocations: 34.75 kB / 445 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.9e-05/0.2206, allocations: 45.19 kB / 445 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.2213, allocations: 0.5475 MB / 445.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2214, allocations: 0 / 445.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.2214, allocations: 14.78 kB / 445.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.2214, allocations: 11.53 kB / 445.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007944/0.2222, allocations: 0.5359 MB / 446.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.2247, allocations: 1.534 MB / 447.7 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007123/0.2254, allocations: 0.4922 MB / 448.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/0.2258, allocations: 263.2 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.2259, allocations: 11.2 kB / 448.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.185e-05/0.2259, allocations: 37.62 kB / 448.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002265/0.2261, allocations: 62.84 kB / 448.5 MB, free: 32.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/0.2261, allocations: 4.766 kB / 448.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002579/0.2287, allocations: 1.091 MB / 449.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.932e-05/0.2287, allocations: 64.56 kB / 449.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.229, allocations: 387.8 kB / 450.1 MB, free: 31.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.2291, allocations: 36.52 kB / 450.1 MB, free: 31.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.544e-05/0.2292, allocations: 239.5 kB / 450.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.844e-05/0.2293, allocations: 181.5 kB / 450.5 MB, free: 31.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.2294, allocations: 126 kB / 450.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.34e-05/0.2295, allocations: 360.8 kB / 451 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003966/0.2299, allocations: 256.9 kB / 451.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/0.2303, allocations: 367.5 kB / 451.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008201/0.2311, allocations: 0.6205 MB / 452.2 MB, free: 30.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2311, allocations: 0 / 452.2 MB, free: 30.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001683/0.2328, allocations: 0.8583 MB / 453.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.2329, allocations: 11.97 kB / 453.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2329, allocations: 7.219 kB / 453.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.2339, allocations: 174.5 kB / 453.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.2351, allocations: 250 kB / 453.5 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005164/0.2357, allocations: 1.152 MB / 454.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.2361, allocations: 26.61 kB / 454.7 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.2362, allocations: 34.09 kB / 454.7 MB, free: 28.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001718/0.2363, allocations: 184.9 kB / 454.9 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.696e-05/0.2364, allocations: 47.44 kB / 455 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.2381, allocations: 0.8197 MB / 455.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2381, allocations: 9.188 kB / 455.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2381, allocations: 0.7812 kB / 455.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2381, allocations: 4.906 kB / 455.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.2403, allocations: 1.465 MB / 457.3 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.2403, allocations: 7.938 kB / 457.3 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.2414, allocations: 194.8 kB / 457.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007584/0.2421, allocations: 162.8 kB / 457.6 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.2422, allocations: 22.3 kB / 457.6 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004859/0.2427, allocations: 1.159 MB / 458.8 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2427, allocations: 0 / 458.8 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.2446, allocations: 1.132 MB / 459.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.2447, allocations: 122.6 kB / 460 MB, free: 25.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.747e-05/0.2448, allocations: 15.16 kB / 460.1 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.2452, allocations: 20.42 kB / 460.1 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.2453, allocations: 46.44 kB / 460.1 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.2453, allocations: 22.3 kB / 460.2 MB, free: 25.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.2456, allocations: 275.5 kB / 460.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2456, allocations: 0 / 460.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004578/0.246, allocations: 165.1 kB / 460.6 MB, free: 25.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001753/0.2478, allocations: 1.647 MB / 462.2 MB, free: 24.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.2494, allocations: 0.7725 MB / 463 MB, free: 24.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2494, allocations: 0 / 463 MB, free: 24.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007385/0.2501, allocations: 367.3 kB / 463.4 MB, free: 24.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.2507, allocations: 112.2 kB / 463.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008419/0.2591, allocations: 6.07 MB / 469.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.2593, allocations: 0.863 MB / 470.4 MB, free: 20 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004227/0.2598, allocations: 128.4 kB / 470.5 MB, free: 19.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.2601, allocations: 194.7 kB / 470.7 MB, free: 19.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2601, allocations: 0 / 470.7 MB, free: 19.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.054/5.314, allocations: 13.82 MB / 484.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/21.1, allocations: 12.52 kB / 484.6 MB, free: 12.74 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)