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.005082/0.005082, allocations: 105.5 kB / 15.74 MB, free: 6.039 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.001186/0.001186, allocations: 188.4 kB / 16.67 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.368/1.368, 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.2103/0.2103, allocations: 22.35 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 61.78 kB / 436.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09766, allocations: 54.97 MB / 491.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004201/0.1019, allocations: 3.45 MB / 495 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.1044, allocations: 1.029 MB / 496 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004151/0.1048, allocations: 7.938 kB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.1051, allocations: 75.22 kB / 496.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007294/0.1059, allocations: 206.4 kB / 496.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007029/0.1066, allocations: 231.5 kB / 496.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009832/0.1076, allocations: 0.8575 MB / 497.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008008/0.1084, allocations: 0.5878 MB / 498 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006347/0.1091, allocations: 406.8 kB / 498.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000875/0.11, allocations: 0.5608 MB / 498.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002317/0.1102, allocations: 96 kB / 499 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003014/0.1105, allocations: 124 kB / 499.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.1108, allocations: 275.2 kB / 499.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005084/0.1113, allocations: 426.1 kB / 499.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009654/0.1123, allocations: 1.041 MB / 0.4891 GB, free: 8.312 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1123, allocations: 0 / 0.4891 GB, free: 8.312 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1123, allocations: 0 / 0.4891 GB, free: 8.312 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.1123, allocations: 0 / 0.4891 GB, free: 8.312 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.00267/0.115, allocations: 1.111 MB / 0.4902 GB, free: 7.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1151, allocations: 12.03 kB / 0.4902 GB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001438/0.1152, allocations: 90.7 kB / 0.4903 GB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.1154, allocations: 72.09 kB / 0.4904 GB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.116, allocations: 463.2 kB / 0.4908 GB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.1161, allocations: 41.69 kB / 0.4909 GB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1162, allocations: 52.38 kB / 0.4909 GB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.1175, allocations: 0.7443 MB / 0.4917 GB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1175, allocations: 3.938 kB / 0.4917 GB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.1176, allocations: 24 kB / 0.4917 GB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1176, allocations: 12 kB / 0.4917 GB, free: 5.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1189, allocations: 0.8015 MB / 0.4925 GB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004661/0.1236, allocations: 2.389 MB / 0.4948 GB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.1247, allocations: 0.6311 MB / 0.4954 GB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007968/0.1255, allocations: 430.3 kB / 0.4958 GB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.199e-05/0.1256, allocations: 20.42 kB / 0.4959 GB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.1257, allocations: 43.11 kB / 0.4959 GB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005945/0.1263, allocations: 171.2 kB / 0.4961 GB, free: 1.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.066e-06/0.1263, allocations: 0 / 0.4961 GB, free: 1.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.009567/0.1358, allocations: 2.361 MB / 0.4984 GB, free: 14.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.1359, allocations: 59.97 kB / 0.4984 GB, free: 14.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/0.1367, allocations: 453.8 kB / 0.4989 GB, free: 14.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.522e-05/0.1368, allocations: 33.7 kB / 0.4989 GB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.137, allocations: 268.7 kB / 0.4991 GB, free: 13.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.1372, allocations: 236.6 kB / 0.4994 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/0.1375, allocations: 162.5 kB / 0.4995 GB, free: 13.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1376, allocations: 366.8 kB / 0.4999 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006153/0.1382, allocations: 337.8 kB / 0.5002 GB, free: 12.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006899/0.1389, allocations: 478.7 kB / 0.5007 GB, free: 12.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.1404, allocations: 0.8221 MB / 0.5015 GB, free: 11.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.1404, allocations: 4 kB / 0.5015 GB, free: 11.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005431/0.1458, allocations: 1.564 MB / 0.503 GB, free: 9.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1458, allocations: 14.64 kB / 0.503 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1459, allocations: 4 kB / 0.503 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004711/0.1506, allocations: 0.7986 MB / 0.5038 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.152, allocations: 263.6 kB / 0.504 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005674/0.1577, allocations: 4.069 MB / 0.508 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007534/0.1585, allocations: 28.03 kB / 0.508 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.1586, allocations: 51.95 kB / 0.5081 GB, free: 4.297 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.000345/0.1589, allocations: 202.5 kB / 0.5083 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.1591, allocations: 51.34 kB / 0.5083 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.1626, allocations: 1.318 MB / 0.5096 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.1626, allocations: 8 kB / 0.5096 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1626, allocations: 0 / 0.5096 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1626, allocations: 7.984 kB / 0.5096 GB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/0.1669, allocations: 2.008 MB / 0.5116 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1669, allocations: 0 / 0.5116 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.168, allocations: 215.8 kB / 0.5118 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/0.1704, allocations: 0.5138 MB / 0.5123 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.101e-05/0.1705, allocations: 23.98 kB / 0.5123 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003637/0.1742, allocations: 3.418 MB / 0.5157 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1742, allocations: 0 / 0.5157 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.178, allocations: 1.669 MB / 0.5173 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002185/0.1782, allocations: 132.3 kB / 0.5174 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.1783, allocations: 19.94 kB / 0.5174 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.1789, allocations: 27.97 kB / 0.5175 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.1791, allocations: 60.91 kB / 0.5175 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.509e-05/0.1791, allocations: 24.09 kB / 0.5175 GB, free: 10.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003667/0.1795, allocations: 323.2 kB / 0.5178 GB, free: 9.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1795, allocations: 4 kB / 0.5179 GB, free: 9.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008652/0.1804, allocations: 231.8 kB / 0.5181 GB, free: 9.723 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.003782/0.1842, allocations: 2.193 MB / 0.5202 GB, free: 7.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002364/0.1866, allocations: 1.109 MB / 0.5213 GB, free: 6.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1866, allocations: 4.062 kB / 0.5213 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.1879, allocations: 0.6329 MB / 0.5219 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.1885, allocations: 138.5 kB / 0.5221 GB, free: 5.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/0.2063, allocations: 8.099 MB / 0.53 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/0.2068, allocations: 0.9157 MB / 0.5309 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004461/0.2072, allocations: 141.1 kB / 0.531 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/0.2076, allocations: 243.3 kB / 0.5312 GB, free: 11.99 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2076, allocations: 4 kB / 0.5312 GB, free: 11.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.2508, allocations: 18.97 MB / 0.5498 GB, free: 9.359 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.68, allocations: 7.875 kB / 0.5498 GB, free: 9.355 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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)