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_004_LTI.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_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",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.007757/0.007757, allocations: 99.45 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.001963/0.001963, allocations: 194.2 kB / 16.68 MB, free: 5.969 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09856/0.09856, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 59.91 kB / 436.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1187, allocations: 54.96 MB / 491.5 MB, free: 5.262 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002436/0.1212, allocations: 0.9791 MB / 492.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.1231, allocations: 1.213 MB / 493.7 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.895e-05/0.1232, allocations: 4 kB / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003263/0.1235, allocations: 35.77 kB / 493.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1238, allocations: 55.75 kB / 493.8 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.124, allocations: 63.89 kB / 493.9 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003063/0.1244, allocations: 207.6 kB / 494.1 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.1245, allocations: 25.44 kB / 494.1 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.1247, allocations: 87.72 kB / 494.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.1249, allocations: 87.7 kB / 494.3 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.125, allocations: 15.94 kB / 494.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.186e-05/0.125, allocations: 8 kB / 494.3 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.1251, allocations: 35.91 kB / 494.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.19e-05/0.1252, allocations: 59.66 kB / 494.4 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.1253, allocations: 111.4 kB / 494.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1254, allocations: 0 / 494.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1254, allocations: 0 / 494.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.1254, allocations: 0 / 494.5 MB, free: 2.262 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001292/0.1267, allocations: 0.4987 MB / 495 MB, free: 1.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1267, allocations: 8.031 kB / 495 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.1268, allocations: 42.73 kB / 495 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.1268, allocations: 12.84 kB / 495 MB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005698/0.1274, allocations: 284.7 kB / 495.3 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.1274, allocations: 8.375 kB / 495.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.1275, allocations: 4.375 kB / 495.3 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.1277, allocations: 101.7 kB / 495.4 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1277, allocations: 0 / 495.4 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.1277, allocations: 0 / 495.4 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1278, allocations: 8 kB / 495.4 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.1279, allocations: 79.94 kB / 495.5 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007206/0.1287, allocations: 420.6 kB / 495.9 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004398/0.1291, allocations: 150.6 kB / 496.1 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.437e-05/0.1292, allocations: 52.83 kB / 496.1 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1293, allocations: 4 kB / 496.1 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.1293, allocations: 30.56 kB / 496.2 MB, free: 416 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.1293, allocations: 0 / 496.2 MB, free: 416 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.002669/0.132, allocations: 491.1 kB / 496.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.132, allocations: 59.33 kB / 496.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004762/0.1325, allocations: 229.4 kB / 496.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1326, allocations: 25.7 kB / 497 MB, free: 15.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1327, allocations: 112.2 kB / 497.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.893e-05/0.1328, allocations: 43.64 kB / 497.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.301e-05/0.1329, allocations: 25.72 kB / 497.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.133, allocations: 322.8 kB / 497.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1331, allocations: 39.97 kB / 497.5 MB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.836e-05/0.1332, allocations: 31.92 kB / 497.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.1347, allocations: 296.5 kB / 497.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1347, allocations: 0 / 497.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009846/0.1357, allocations: 238.3 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.1358, allocations: 4 kB / 498 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1358, allocations: 7.938 kB / 498 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000892/0.1367, allocations: 112.8 kB / 498.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1368, allocations: 8 kB / 498.2 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/0.1408, allocations: 1.899 MB / 0.4883 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.1412, allocations: 27.94 kB / 0.4884 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/0.1412, allocations: 8 kB / 0.4884 GB, free: 12.23 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001951/0.1414, allocations: 133.5 kB / 0.4885 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.459e-05/0.1415, allocations: 19.91 kB / 0.4885 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009445/0.1424, allocations: 259.7 kB / 0.4888 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1425, allocations: 4 kB / 0.4888 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1425, allocations: 7.938 kB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1425, allocations: 0 / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.1428, allocations: 241.5 kB / 0.489 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1428, allocations: 0 / 0.489 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-05/0.1429, allocations: 11.98 kB / 0.489 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006396/0.1436, allocations: 104.8 kB / 0.4891 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.1436, allocations: 4 kB / 0.4891 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002869/0.1465, allocations: 1.821 MB / 0.4909 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1465, allocations: 0 / 0.4909 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009696/0.1475, allocations: 399.7 kB / 0.4913 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/0.1476, allocations: 93.03 kB / 0.4914 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.1476, allocations: 11.94 kB / 0.4914 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.1478, allocations: 24.03 kB / 0.4914 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.1479, allocations: 19.91 kB / 0.4914 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.1479, allocations: 7.984 kB / 0.4914 GB, free: 8.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003882/0.1483, allocations: 184.8 kB / 0.4916 GB, free: 8.676 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1483, allocations: 0 / 0.4916 GB, free: 8.676 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003529/0.1487, allocations: 35.94 kB / 0.4916 GB, free: 8.641 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00124/0.1499, allocations: 0.9317 MB / 0.4926 GB, free: 7.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005776/0.1505, allocations: 238.5 kB / 0.4928 GB, free: 7.434 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1505, allocations: 3.938 kB / 0.4928 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.1508, allocations: 194.7 kB / 0.493 GB, free: 7.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.1512, allocations: 28.3 kB / 0.493 GB, free: 7.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004496/0.1557, allocations: 2.164 MB / 0.4951 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.1561, allocations: 0.728 MB / 0.4958 GB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.36e-05/0.1562, allocations: 20.64 kB / 0.4958 GB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.406e-05/0.1563, allocations: 35.42 kB / 0.4959 GB, free: 4.148 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1563, allocations: 0 / 0.4959 GB, free: 4.148 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.1856, allocations: 4.334 MB / 0.5001 GB, free: 44 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.21, allocations: 14.48 kB / 0.5001 GB, free: 36 kB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.04 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)