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_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",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.00101/0.00101, 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.007699/0.007699, allocations: 173.9 kB / 16.26 MB, free: 6.613 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.321/1.321, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1938/0.1938, allocations: 22.36 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.000325, allocations: 8 kB / 382.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2366, allocations: 55.97 MB / 438.7 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.002495/0.2392, allocations: 3.533 MB / 442.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2405, allocations: 1.117 MB / 443.3 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.2407, allocations: 5.531 kB / 443.3 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.2408, allocations: 61.17 kB / 443.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.2412, allocations: 194.5 kB / 443.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.2416, allocations: 204.7 kB / 443.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.2422, allocations: 0.9854 MB / 444.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000485/0.2427, allocations: 0.5397 MB / 445.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.2429, allocations: 393.3 kB / 445.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005039/0.2435, allocations: 0.5769 MB / 446.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.924e-05/0.2436, allocations: 69.34 kB / 446.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.2437, allocations: 97.28 kB / 446.4 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2439, allocations: 244.9 kB / 446.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.2442, allocations: 443 kB / 447.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.2448, allocations: 1.032 MB / 448.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2448, allocations: 0 / 448.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2448, allocations: 0 / 448.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.2448, allocations: 0 / 448.1 MB, free: 33.82 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002061/0.2469, allocations: 1.013 MB / 449.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2469, allocations: 12.59 kB / 449.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.247, allocations: 96.7 kB / 449.3 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.2472, allocations: 80.41 kB / 449.3 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005032/0.2477, allocations: 488.5 kB / 449.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.2477, allocations: 46.16 kB / 449.9 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.2479, allocations: 54.88 kB / 449.9 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.249, allocations: 0.7591 MB / 450.7 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.249, allocations: 0 / 450.7 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.521e-05/0.2491, allocations: 22.09 kB / 450.7 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.2491, allocations: 11.78 kB / 450.7 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.2503, allocations: 0.8269 MB / 451.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.2539, allocations: 2.092 MB / 453.6 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009013/0.2548, allocations: 0.6665 MB / 454.3 MB, free: 30.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005536/0.2553, allocations: 409.8 kB / 454.7 MB, free: 30.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.2554, allocations: 16.42 kB / 454.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.2554, allocations: 41.75 kB / 454.8 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005401/0.256, allocations: 143.8 kB / 454.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.204e-06/0.256, allocations: 0 / 454.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009978/0.266, allocations: 2.53 MB / 457.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.34e-05/0.266, allocations: 58.31 kB / 457.5 MB, free: 29.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000501/0.2665, allocations: 0.4883 MB / 458 MB, free: 29.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.2666, allocations: 42 kB / 458 MB, free: 29.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2667, allocations: 290.4 kB / 458.3 MB, free: 29.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.2669, allocations: 248.4 kB / 458.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.267, allocations: 76.05 kB / 458.6 MB, free: 28.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.2671, allocations: 372.7 kB / 459 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006316/0.2677, allocations: 364 kB / 459.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006806/0.2684, allocations: 498.9 kB / 459.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.2697, allocations: 0.8727 MB / 460.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.2697, allocations: 1.25 kB / 460.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005697/0.2754, allocations: 1.63 MB / 462.3 MB, free: 26.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2755, allocations: 10.81 kB / 462.3 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2755, allocations: 7.062 kB / 462.3 MB, free: 26.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004302/0.2798, allocations: 0.6802 MB / 463 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.2812, allocations: 257.2 kB / 463.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005053/0.2863, allocations: 3.901 MB / 467.2 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007381/0.287, allocations: 34.28 kB / 467.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.379e-05/0.2871, allocations: 46.5 kB / 467.3 MB, free: 23.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002749/0.2874, allocations: 207 kB / 467.5 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.2875, allocations: 66.28 kB / 467.5 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003678/0.2912, allocations: 1.392 MB / 468.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.2912, allocations: 13.48 kB / 468.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2912, allocations: 1.531 kB / 468.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.2913, allocations: 6.406 kB / 468.9 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009563/0.2922, allocations: 0.8054 MB / 469.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2922, allocations: 5.125 kB / 469.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.2934, allocations: 214.7 kB / 470 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00221/0.2956, allocations: 446 kB / 470.4 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-05/0.2957, allocations: 24.34 kB / 470.4 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003141/0.2989, allocations: 3.253 MB / 473.7 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2989, allocations: 3.938 kB / 473.7 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003992/0.3029, allocations: 1.786 MB / 475.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.303, allocations: 144.1 kB / 475.6 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.3032, allocations: 24.12 kB / 475.6 MB, free: 18.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005671/0.3037, allocations: 40.03 kB / 475.7 MB, free: 18.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.3039, allocations: 63.09 kB / 475.7 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-05/0.304, allocations: 28.81 kB / 475.7 MB, free: 18.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.3043, allocations: 344.2 kB / 476.1 MB, free: 18.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3044, allocations: 0 / 476.1 MB, free: 18.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008167/0.3052, allocations: 238.8 kB / 476.3 MB, free: 18.55 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003807/0.309, allocations: 2.302 MB / 478.6 MB, free: 17.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.3114, allocations: 1.177 MB / 479.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3114, allocations: 0 / 479.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.3128, allocations: 0.6964 MB / 480.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000679/0.3135, allocations: 129.2 kB / 480.6 MB, free: 16.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01742/0.3309, allocations: 8.934 MB / 489.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3312, allocations: 0.9356 MB / 490.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00052/0.3317, allocations: 153.2 kB / 490.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.3321, allocations: 265.4 kB / 490.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3321, allocations: 0 / 490.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.3611, allocations: 18.02 MB / 0.497 GB, free: 6.145 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.3613, allocations: 277.1 kB / 0.4973 GB, free: 5.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.31/2.672, allocations: 4.062 kB / 0.4973 GB, free: 5.766 MB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)