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.0007612/0.0007613, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004479/0.004479, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.342/1.342, allocations: 223.3 MB / 240.3 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.2062/0.2062, allocations: 22.35 MB / 313.8 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002842, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2417, allocations: 55.97 MB / 438.7 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002197/0.2439, allocations: 2.917 MB / 441.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.2451, allocations: 0.9703 MB / 442.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.2452, allocations: 9.625 kB / 442.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2454, allocations: 42.89 kB / 442.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003034/0.2457, allocations: 157.6 kB / 442.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.246, allocations: 166 kB / 442.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004971/0.2465, allocations: 0.7943 MB / 443.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003399/0.2469, allocations: 347 kB / 444.1 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.2471, allocations: 270.5 kB / 444.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.2475, allocations: 400.8 kB / 444.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.138e-05/0.2476, allocations: 44.5 kB / 444.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.2477, allocations: 74.23 kB / 444.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2478, allocations: 181.6 kB / 445 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.248, allocations: 321.8 kB / 445.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.2485, allocations: 0.7368 MB / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2485, allocations: 2.781 kB / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2485, allocations: 0 / 446.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2485, allocations: 0 / 446.1 MB, free: 34.83 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.001521/0.25, allocations: 0.8128 MB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.2501, allocations: 12.97 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.389e-05/0.2502, allocations: 89.78 kB / 447 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.156e-05/0.2503, allocations: 55.22 kB / 447 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.2506, allocations: 382 kB / 447.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.2507, allocations: 36.38 kB / 447.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/0.2508, allocations: 45.69 kB / 447.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.2516, allocations: 0.5484 MB / 448 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2517, allocations: 3.938 kB / 448 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.2517, allocations: 22.72 kB / 448.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2517, allocations: 8.469 kB / 448.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008732/0.2526, allocations: 0.5399 MB / 448.6 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.2552, allocations: 1.54 MB / 450.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007637/0.256, allocations: 494.9 kB / 450.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004267/0.2564, allocations: 265.4 kB / 450.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.436e-05/0.2565, allocations: 11.2 kB / 450.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.417e-05/0.2565, allocations: 40.77 kB / 451 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002317/0.2567, allocations: 66.05 kB / 451 MB, free: 32.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.703e-06/0.2568, allocations: 0 / 451 MB, free: 32.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002793/0.2596, allocations: 1.089 MB / 452.1 MB, free: 31.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.2596, allocations: 65.28 kB / 452.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.2599, allocations: 388.2 kB / 452.5 MB, free: 31.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.26, allocations: 40.05 kB / 452.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.2601, allocations: 239.7 kB / 452.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2602, allocations: 177.7 kB / 453 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.2602, allocations: 57.64 kB / 453.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.63e-05/0.2603, allocations: 356.8 kB / 453.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.2607, allocations: 253.2 kB / 453.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.2612, allocations: 376.9 kB / 454 MB, free: 30.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008835/0.2621, allocations: 0.6309 MB / 454.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2621, allocations: 0 / 454.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00181/0.2639, allocations: 0.8482 MB / 455.5 MB, free: 29.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2639, allocations: 6.344 kB / 455.5 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.264, allocations: 6.906 kB / 455.5 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.2651, allocations: 176.6 kB / 455.7 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.2664, allocations: 240.2 kB / 455.9 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005638/0.267, allocations: 1.165 MB / 457.1 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004923/0.2675, allocations: 25.97 kB / 457.1 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-05/0.2676, allocations: 29.77 kB / 457.1 MB, free: 28.53 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.0001964/0.2678, allocations: 195.8 kB / 457.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-05/0.2679, allocations: 44.56 kB / 457.4 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.2698, allocations: 0.8205 MB / 458.2 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.2698, allocations: 6.281 kB / 458.2 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2698, allocations: 1.031 kB / 458.2 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2698, allocations: 7.141 kB / 458.2 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.2722, allocations: 1.468 MB / 459.7 MB, free: 27.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.2722, allocations: 0 / 459.7 MB, free: 27.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.2733, allocations: 201.7 kB / 459.9 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009372/0.2743, allocations: 180.3 kB / 460 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.2743, allocations: 18.36 kB / 460.1 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005278/0.2749, allocations: 1.162 MB / 461.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2749, allocations: 3.938 kB / 461.2 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.277, allocations: 1.129 MB / 462.4 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.321e-05/0.2771, allocations: 128.4 kB / 462.5 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.2772, allocations: 15.98 kB / 462.5 MB, free: 25.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.2776, allocations: 23.02 kB / 462.5 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2777, allocations: 42.48 kB / 462.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/0.2778, allocations: 18.81 kB / 462.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.278, allocations: 277 kB / 462.8 MB, free: 25.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.278, allocations: 0 / 462.8 MB, free: 25.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005139/0.2785, allocations: 168.8 kB / 463 MB, free: 25.19 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.001977/0.2805, allocations: 1.636 MB / 464.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.2819, allocations: 0.6704 MB / 465.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2819, allocations: 4.688 kB / 465.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007925/0.2827, allocations: 365.4 kB / 465.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.2833, allocations: 106.9 kB / 465.8 MB, free: 23.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009442/0.2928, allocations: 6.419 MB / 472.2 MB, free: 20.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.2931, allocations: 0.864 MB / 473.1 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000461/0.2936, allocations: 131 kB / 473.2 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.2939, allocations: 190.7 kB / 473.4 MB, free: 19.2 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2939, allocations: 0 / 473.4 MB, free: 19.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.3179, allocations: 12.96 MB / 486.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/0.3181, allocations: 284.6 kB / 486.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.426, allocations: 4 kB / 486.6 MB, free: 12.56 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)