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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 109.4 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 207.2 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.515/1.515, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1063/0.1063, allocations: 24.03 MB / 333.6 MB, free: 1.562 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003285/0.003285, allocations: 72.78 kB / 469.1 MB, free: 31.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1271, allocations: 59.55 MB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002885/0.13, allocations: 0.974 MB / 0.5172 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.1322, allocations: 1.28 MB / 0.5185 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1324, allocations: 4 kB / 0.5185 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.1327, allocations: 31.72 kB / 0.5185 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.1329, allocations: 51.77 kB / 0.5186 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.1331, allocations: 67.89 kB / 0.5186 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002828/0.1334, allocations: 211.6 kB / 0.5188 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.1335, allocations: 21.44 kB / 0.5189 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.1337, allocations: 79.8 kB / 0.5189 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.1339, allocations: 103.6 kB / 0.519 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.1339, allocations: 8 kB / 0.519 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.239e-05/0.1339, allocations: 8 kB / 0.519 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.134, allocations: 39.89 kB / 0.5191 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.699e-05/0.1341, allocations: 51.66 kB / 0.5191 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.1343, allocations: 119.4 kB / 0.5192 GB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1343, allocations: 0 / 0.5192 GB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1343, allocations: 0 / 0.5192 GB, free: 8.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.1343, allocations: 4 kB / 0.5192 GB, free: 8.523 MB / 382.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.001137/0.1354, allocations: 0.4987 MB / 0.5197 GB, free: 7.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1355, allocations: 12.03 kB / 0.5197 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.1355, allocations: 34.75 kB / 0.5198 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.1355, allocations: 12.89 kB / 0.5198 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005812/0.1361, allocations: 280.6 kB / 0.5201 GB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1361, allocations: 12.31 kB / 0.5201 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.1362, allocations: 8.375 kB / 0.5201 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.1364, allocations: 101.8 kB / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1364, allocations: 0 / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.1364, allocations: 0 / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1364, allocations: 0 / 0.5202 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.1366, allocations: 83.94 kB / 0.5203 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007154/0.1373, allocations: 428.5 kB / 0.5207 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.1377, allocations: 142.7 kB / 0.5208 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.627e-05/0.1378, allocations: 44.84 kB / 0.5208 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1378, allocations: 0 / 0.5208 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1378, allocations: 42.55 kB / 0.5209 GB, free: 6.672 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1378, allocations: 4 kB / 0.5209 GB, free: 6.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.00264/0.1405, allocations: 479.1 kB / 0.5213 GB, free: 6.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.1405, allocations: 55.41 kB / 0.5214 GB, free: 6.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004848/0.141, allocations: 239.2 kB / 0.5216 GB, free: 5.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.141, allocations: 25.7 kB / 0.5216 GB, free: 5.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.1411, allocations: 108.1 kB / 0.5218 GB, free: 5.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.931e-05/0.1411, allocations: 35.83 kB / 0.5218 GB, free: 5.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.1412, allocations: 29.7 kB / 0.5218 GB, free: 5.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1414, allocations: 322.8 kB / 0.5221 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.016e-05/0.1414, allocations: 35.98 kB / 0.5222 GB, free: 5.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.161e-05/0.1415, allocations: 43.91 kB / 0.5222 GB, free: 5.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.1429, allocations: 289 kB / 0.5225 GB, free: 4.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1429, allocations: 3.938 kB / 0.5225 GB, free: 4.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009921/0.1439, allocations: 250.2 kB / 0.5227 GB, free: 4.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1439, allocations: 10.5 kB / 0.5227 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1439, allocations: 3.938 kB / 0.5227 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009265/0.1449, allocations: 116.7 kB / 0.5228 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.199e-05/0.1449, allocations: 11.98 kB / 0.5229 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003867/0.1488, allocations: 1.873 MB / 0.5247 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002167/0.149, allocations: 31.92 kB / 0.5247 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.149, allocations: 4 kB / 0.5247 GB, free: 2.5 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.000156/0.1492, allocations: 140.6 kB / 0.5249 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.1492, allocations: 15.84 kB / 0.5249 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008737/0.1501, allocations: 263.6 kB / 0.5251 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1501, allocations: 4 kB / 0.5251 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1501, allocations: 4.125 kB / 0.5251 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1501, allocations: 0 / 0.5251 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.1504, allocations: 245.5 kB / 0.5254 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1504, allocations: 0 / 0.5254 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.401e-05/0.1505, allocations: 8 kB / 0.5254 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006412/0.1511, allocations: 108.8 kB / 0.5255 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1512, allocations: 7.984 kB / 0.5255 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00283/0.154, allocations: 1.809 MB / 0.5272 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.154, allocations: 0 / 0.5272 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000953/0.1549, allocations: 398.1 kB / 0.5276 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.155, allocations: 96.98 kB / 0.5277 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.155, allocations: 7.938 kB / 0.5277 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.1553, allocations: 23.95 kB / 0.5277 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.1553, allocations: 19.92 kB / 0.5278 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1553, allocations: 0 / 0.5278 GB, free: 15.13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004051/0.1557, allocations: 191.9 kB / 0.5279 GB, free: 14.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1557, allocations: 0 / 0.5279 GB, free: 14.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.156, allocations: 32 kB / 0.528 GB, free: 14.91 MB / 398.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.001259/0.1573, allocations: 0.9272 MB / 0.5289 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.1577, allocations: 238.5 kB / 0.5291 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1577, allocations: 3.938 kB / 0.5291 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.158, allocations: 190.5 kB / 0.5293 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.1583, allocations: 19.94 kB / 0.5293 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004353/0.1627, allocations: 2.187 MB / 0.5315 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.163, allocations: 0.7241 MB / 0.5322 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.653e-05/0.1631, allocations: 24.41 kB / 0.5322 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.172e-05/0.1632, allocations: 43.42 kB / 0.5322 GB, free: 10.41 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1632, allocations: 0 / 0.5322 GB, free: 10.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.1941, allocations: 4.379 MB / 0.5365 GB, free: 6.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/11.94, allocations: 16.78 kB / 0.5365 GB, free: 6.25 MB / 398.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.859837313881144] Failed to read output from testmodel.py, exit status != 0: 12.0317509600427 12.045489092 11.90815603 Calling exit ...