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.006982/0.006982, allocations: 94.8 kB / 15.73 MB, free: 6.047 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.001191/0.001191, allocations: 206.3 kB / 16.68 MB, free: 5.973 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2168/0.2168, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 61.5 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.0906, allocations: 54.97 MB / 491.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003842/0.09447, allocations: 3.574 MB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.09656, allocations: 1.072 MB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003528/0.09693, allocations: 8 kB / 496.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.09722, allocations: 83.09 kB / 496.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006885/0.09794, allocations: 230.3 kB / 496.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.09858, allocations: 231.5 kB / 496.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008607/0.09945, allocations: 0.9121 MB / 497.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006773/0.1001, allocations: 0.619 MB / 498.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.1006, allocations: 426.8 kB / 498.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006543/0.1012, allocations: 0.5919 MB / 499.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.1014, allocations: 104 kB / 499.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.1016, allocations: 132 kB / 499.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.1018, allocations: 283.2 kB / 499.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003773/0.1022, allocations: 457.9 kB / 0.4885 GB, free: 8.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008943/0.1031, allocations: 1.09 MB / 0.4896 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1031, allocations: 0 / 0.4896 GB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.726e-06/0.1031, allocations: 3.984 kB / 0.4896 GB, free: 7.883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.1031, allocations: 0 / 0.4896 GB, free: 7.883 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002559/0.1057, allocations: 1.18 MB / 0.4907 GB, free: 6.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1057, allocations: 11.97 kB / 0.4907 GB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.1059, allocations: 98.69 kB / 0.4908 GB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.1061, allocations: 80.42 kB / 0.4909 GB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.1067, allocations: 495.3 kB / 0.4914 GB, free: 5.938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.1068, allocations: 49.69 kB / 0.4914 GB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.1069, allocations: 52.38 kB / 0.4915 GB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1082, allocations: 0.7715 MB / 0.4922 GB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1083, allocations: 0 / 0.4922 GB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-05/0.1084, allocations: 20 kB / 0.4923 GB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.1084, allocations: 12 kB / 0.4923 GB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.1098, allocations: 0.8289 MB / 0.4931 GB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003998/0.1138, allocations: 2.087 MB / 0.4951 GB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.1149, allocations: 0.6697 MB / 0.4958 GB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006468/0.1156, allocations: 414.3 kB / 0.4962 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.1156, allocations: 12.55 kB / 0.4962 GB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.1157, allocations: 47.12 kB / 0.4962 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006159/0.1163, allocations: 163.4 kB / 0.4964 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.094e-06/0.1163, allocations: 0 / 0.4964 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.0102/0.1265, allocations: 2.553 MB / 0.4989 GB, free: 14.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1266, allocations: 59.97 kB / 0.4989 GB, free: 14.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.1272, allocations: 0.494 MB / 0.4994 GB, free: 13.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.82e-05/0.1273, allocations: 37.64 kB / 0.4994 GB, free: 13.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.1275, allocations: 301 kB / 0.4997 GB, free: 13.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.1277, allocations: 257.8 kB / 0.5 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002852/0.128, allocations: 166.5 kB / 0.5001 GB, free: 12.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1281, allocations: 374.8 kB / 0.5005 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006492/0.1288, allocations: 365.8 kB / 0.5008 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007246/0.1295, allocations: 490.8 kB / 0.5013 GB, free: 11.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.1309, allocations: 0.8775 MB / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.1309, allocations: 0 / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005642/0.1366, allocations: 1.666 MB / 0.5038 GB, free: 8.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1366, allocations: 11.94 kB / 0.5038 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1366, allocations: 4 kB / 0.5038 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004148/0.1408, allocations: 0.7164 MB / 0.5045 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.1422, allocations: 255.7 kB / 0.5048 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005759/0.1479, allocations: 4.153 MB / 0.5088 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.1487, allocations: 28.03 kB / 0.5088 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.872e-05/0.1488, allocations: 43.95 kB / 0.5089 GB, free: 3.504 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 {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003286/0.1491, allocations: 219.1 kB / 0.5091 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.1493, allocations: 63.58 kB / 0.5091 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003564/0.1528, allocations: 1.412 MB / 0.5105 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.1528, allocations: 11.98 kB / 0.5105 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1529, allocations: 7.938 kB / 0.5105 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.1529, allocations: 3.984 kB / 0.5105 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000956/0.1538, allocations: 0.7984 MB / 0.5113 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.1538, allocations: 0 / 0.5113 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.155, allocations: 207.8 kB / 0.5115 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.1571, allocations: 478.2 kB / 0.512 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.289e-05/0.1572, allocations: 35.97 kB / 0.512 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/0.1609, allocations: 3.465 MB / 0.5154 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1609, allocations: 0 / 0.5154 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.1649, allocations: 1.808 MB / 0.5172 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.1651, allocations: 144.6 kB / 0.5173 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.1652, allocations: 31.98 kB / 0.5173 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005283/0.1657, allocations: 28.09 kB / 0.5174 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.1659, allocations: 68.83 kB / 0.5174 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.645e-05/0.166, allocations: 24 kB / 0.5174 GB, free: 10.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003814/0.1663, allocations: 346.9 kB / 0.5178 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1663, allocations: 0 / 0.5178 GB, free: 10.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007868/0.1671, allocations: 243.8 kB / 0.518 GB, free: 9.828 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 (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.00405/0.1712, allocations: 2.337 MB / 0.5203 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00259/0.1738, allocations: 1.179 MB / 0.5214 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1738, allocations: 192 / 0.5214 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001347/0.1752, allocations: 0.6955 MB / 0.5221 GB, free: 5.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006549/0.1758, allocations: 134.4 kB / 0.5223 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01824/0.1941, allocations: 8.424 MB / 0.5305 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.1946, allocations: 0.9317 MB / 0.5314 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005283/0.1952, allocations: 149.2 kB / 0.5315 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.1956, allocations: 267.3 kB / 0.5318 GB, free: 11.44 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1956, allocations: 0 / 0.5318 GB, free: 11.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.2364, allocations: 19.5 MB / 0.5508 GB, free: 8.277 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.31, allocations: 14.58 kB / 0.5508 GB, free: 8.266 MB / 430.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002_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_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)