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_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",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.004652/0.004652, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001098/0.001098, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2064/0.2064, allocations: 22.35 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 68.27 kB / 436.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1067, allocations: 54.97 MB / 491.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004464/0.1112, allocations: 3.435 MB / 495 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.1135, allocations: 1.041 MB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.1138, allocations: 8 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.114, allocations: 75.22 kB / 496.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005603/0.1146, allocations: 214.4 kB / 496.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.1153, allocations: 223.6 kB / 496.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009936/0.1163, allocations: 0.8575 MB / 497.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007721/0.1171, allocations: 0.5957 MB / 498 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004267/0.1176, allocations: 402.8 kB / 498.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007083/0.1183, allocations: 0.5647 MB / 499 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.1184, allocations: 96 kB / 499.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.1187, allocations: 128 kB / 499.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/0.1189, allocations: 271.2 kB / 499.4 MB, free: 9.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004033/0.1194, allocations: 434.1 kB / 499.9 MB, free: 9.363 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.1204, allocations: 1.028 MB / 0.4892 GB, free: 8.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1204, allocations: 0 / 0.4892 GB, free: 8.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1204, allocations: 4 kB / 0.4892 GB, free: 8.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.1204, allocations: 0 / 0.4892 GB, free: 8.328 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002667/0.1231, allocations: 1.124 MB / 0.4903 GB, free: 7.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.573e-05/0.1232, allocations: 8.031 kB / 0.4903 GB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.1234, allocations: 94.7 kB / 0.4904 GB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.1235, allocations: 72.47 kB / 0.4904 GB, free: 6.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007501/0.1243, allocations: 475.4 kB / 0.4909 GB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.1244, allocations: 37.69 kB / 0.4909 GB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1245, allocations: 56.38 kB / 0.491 GB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1259, allocations: 0.7443 MB / 0.4917 GB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.1259, allocations: 0 / 0.4917 GB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.126, allocations: 20 kB / 0.4917 GB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.1261, allocations: 12 kB / 0.4917 GB, free: 5.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.1276, allocations: 0.8093 MB / 0.4925 GB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.1326, allocations: 2.405 MB / 0.4949 GB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.1338, allocations: 0.6307 MB / 0.4955 GB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008634/0.1347, allocations: 430.3 kB / 0.4959 GB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.1348, allocations: 16.53 kB / 0.4959 GB, free: 1.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.1348, allocations: 43.12 kB / 0.4959 GB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006562/0.1355, allocations: 159.5 kB / 0.4961 GB, free: 1.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.464e-06/0.1355, allocations: 7.938 kB / 0.4961 GB, free: 1.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.009955/0.1454, allocations: 2.37 MB / 0.4984 GB, free: 14.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/0.1455, allocations: 59.97 kB / 0.4985 GB, free: 14.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004917/0.146, allocations: 453.8 kB / 0.4989 GB, free: 14.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.1461, allocations: 41.7 kB / 0.499 GB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1463, allocations: 265.2 kB / 0.4992 GB, free: 13.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/0.1466, allocations: 253.9 kB / 0.4994 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.1468, allocations: 162.5 kB / 0.4996 GB, free: 13.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.147, allocations: 370.8 kB / 0.5 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006613/0.1477, allocations: 333.8 kB / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007317/0.1484, allocations: 474.8 kB / 0.5007 GB, free: 12.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.1498, allocations: 0.8182 MB / 0.5015 GB, free: 11.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.1499, allocations: 8 kB / 0.5015 GB, free: 11.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005762/0.1556, allocations: 1.561 MB / 0.5031 GB, free: 9.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.1557, allocations: 8.375 kB / 0.5031 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1557, allocations: 8 kB / 0.5031 GB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004833/0.1605, allocations: 0.8022 MB / 0.5039 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.162, allocations: 247.7 kB / 0.5041 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006253/0.1682, allocations: 4.097 MB / 0.5081 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008093/0.1691, allocations: 28.02 kB / 0.5081 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.119e-05/0.1692, allocations: 43.95 kB / 0.5082 GB, free: 4.258 MB / 382.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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003895/0.1696, allocations: 210.6 kB / 0.5084 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.1697, allocations: 59.62 kB / 0.5084 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.1732, allocations: 1.314 MB / 0.5097 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.171e-05/0.1733, allocations: 8 kB / 0.5097 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1733, allocations: 4 kB / 0.5097 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1733, allocations: 3.984 kB / 0.5097 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004337/0.1777, allocations: 2.008 MB / 0.5117 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1777, allocations: 4 kB / 0.5117 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.1789, allocations: 207.7 kB / 0.5119 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/0.1814, allocations: 0.5139 MB / 0.5124 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.1815, allocations: 27.97 kB / 0.5124 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004022/0.1855, allocations: 3.42 MB / 0.5157 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1856, allocations: 0 / 0.5157 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.1897, allocations: 1.669 MB / 0.5174 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.1899, allocations: 144.7 kB / 0.5175 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.19, allocations: 23.98 kB / 0.5175 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/0.1906, allocations: 23.98 kB / 0.5176 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.1907, allocations: 56.91 kB / 0.5176 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/0.1908, allocations: 23.98 kB / 0.5176 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003901/0.1912, allocations: 323.1 kB / 0.5179 GB, free: 9.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1912, allocations: 0 / 0.5179 GB, free: 9.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009058/0.1921, allocations: 235.8 kB / 0.5182 GB, free: 9.66 MB / 398.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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003984/0.1961, allocations: 2.198 MB / 0.5203 GB, free: 7.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.1986, allocations: 1.102 MB / 0.5214 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1986, allocations: 0 / 0.5214 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.2, allocations: 0.6484 MB / 0.522 GB, free: 5.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006782/0.2007, allocations: 130.4 kB / 0.5222 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01869/0.2194, allocations: 8.128 MB / 0.5301 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.22, allocations: 0.9157 MB / 0.531 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005736/0.2206, allocations: 141.1 kB / 0.5311 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004339/0.2211, allocations: 239.3 kB / 0.5313 GB, free: 11.9 MB / 414.1 MB Notification: Performance of SimCode: time 3.567e-06/0.2211, allocations: 0 / 0.5313 GB, free: 11.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04702/0.2681, allocations: 18.49 MB / 0.5494 GB, free: 9.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.06, allocations: 4.219 kB / 0.5494 GB, free: 9.75 MB / 430.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)