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_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",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.006311/0.006311, allocations: 99.84 kB / 15.73 MB, free: 6.043 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.001461/0.001461, allocations: 188.3 kB / 16.67 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2183/0.2183, allocations: 22.38 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 62.69 kB / 436.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1285, allocations: 54.95 MB / 491.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004149/0.1327, allocations: 3.018 MB / 494.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.1348, allocations: 0.9549 MB / 495.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000312/0.1352, allocations: 4 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.1354, allocations: 55.38 kB / 495.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005457/0.136, allocations: 182.7 kB / 495.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.1366, allocations: 187.6 kB / 495.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006914/0.1373, allocations: 0.7136 MB / 496.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005158/0.1378, allocations: 403.6 kB / 497.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.1382, allocations: 299.1 kB / 497.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004701/0.1386, allocations: 414.6 kB / 497.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.019e-05/0.1387, allocations: 68 kB / 497.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.1389, allocations: 107.9 kB / 497.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.1391, allocations: 203.4 kB / 498.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.1394, allocations: 326.5 kB / 498.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007939/0.1402, allocations: 0.7796 MB / 499.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.1403, allocations: 0 / 499.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1403, allocations: 0 / 499.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1403, allocations: 0 / 499.2 MB, free: 10.03 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00207/0.1424, allocations: 0.9196 MB / 0.4884 GB, free: 9.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1424, allocations: 8.031 kB / 0.4884 GB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1425, allocations: 82.72 kB / 0.4885 GB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.1426, allocations: 56.28 kB / 0.4886 GB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007137/0.1434, allocations: 387.7 kB / 0.4889 GB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.1434, allocations: 33.38 kB / 0.489 GB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.1435, allocations: 48.36 kB / 0.489 GB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.1445, allocations: 0.5414 MB / 0.4895 GB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1446, allocations: 0 / 0.4895 GB, free: 7.859 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.1446, allocations: 24 kB / 0.4896 GB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.1446, allocations: 8 kB / 0.4896 GB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009695/0.1456, allocations: 0.5348 MB / 0.4901 GB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.1487, allocations: 1.531 MB / 0.4916 GB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009041/0.1497, allocations: 492.1 kB / 0.4921 GB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005553/0.1502, allocations: 258 kB / 0.4923 GB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/0.1503, allocations: 12.58 kB / 0.4923 GB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.1503, allocations: 39 kB / 0.4923 GB, free: 4.906 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002452/0.1506, allocations: 71.44 kB / 0.4924 GB, free: 4.836 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.693e-06/0.1506, allocations: 0.7656 kB / 0.4924 GB, free: 4.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.00302/0.1536, allocations: 1.084 MB / 0.4935 GB, free: 3.703 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.1537, allocations: 63.78 kB / 0.4935 GB, free: 3.629 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.1542, allocations: 393.5 kB / 0.4939 GB, free: 3.234 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.1542, allocations: 29.7 kB / 0.4939 GB, free: 3.199 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.1545, allocations: 248.1 kB / 0.4942 GB, free: 2.953 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.1546, allocations: 177.4 kB / 0.4943 GB, free: 2.777 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.1548, allocations: 122.2 kB / 0.4945 GB, free: 2.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.155, allocations: 358.8 kB / 0.4948 GB, free: 2.293 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/0.1555, allocations: 257.2 kB / 0.4951 GB, free: 2.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006111/0.1561, allocations: 374.1 kB / 0.4954 GB, free: 1.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1571, allocations: 0.6187 MB / 0.496 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.1571, allocations: 8 kB / 0.496 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001912/0.159, allocations: 0.8549 MB / 0.4969 GB, free: 104 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1591, allocations: 6.656 kB / 0.4969 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1591, allocations: 4 kB / 0.4969 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.1602, allocations: 182 kB / 0.497 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.1615, allocations: 239.7 kB / 0.4973 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009385/0.1624, allocations: 1.163 MB / 0.4984 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/0.1629, allocations: 23.98 kB / 0.4984 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.423e-05/0.163, allocations: 31.97 kB / 0.4985 GB, free: 14.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003396/0.1633, allocations: 186.4 kB / 0.4986 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1634, allocations: 47.44 kB / 0.4987 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.1655, allocations: 0.826 MB / 0.4995 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1655, allocations: 8 kB / 0.4995 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1655, allocations: 0 / 0.4995 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.1656, allocations: 3.984 kB / 0.4995 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.1684, allocations: 1.456 MB / 0.5009 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1684, allocations: 7.938 kB / 0.5009 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.1695, allocations: 203.7 kB / 0.5011 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008498/0.1703, allocations: 161.6 kB / 0.5013 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.611e-05/0.1704, allocations: 19.98 kB / 0.5013 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000802/0.1712, allocations: 1.163 MB / 0.5024 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1712, allocations: 0 / 0.5024 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.1736, allocations: 1.134 MB / 0.5035 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1737, allocations: 128.6 kB / 0.5037 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/0.1738, allocations: 12 kB / 0.5037 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.1742, allocations: 27.91 kB / 0.5037 GB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.1743, allocations: 40.5 kB / 0.5037 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.057e-05/0.1744, allocations: 19.98 kB / 0.5038 GB, free: 8.797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.1747, allocations: 279.2 kB / 0.504 GB, free: 8.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1747, allocations: 0 / 0.504 GB, free: 8.523 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000528/0.1752, allocations: 167.8 kB / 0.5042 GB, free: 8.359 MB / 382.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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002304/0.1775, allocations: 1.64 MB / 0.5058 GB, free: 6.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.1791, allocations: 0.6829 MB / 0.5065 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.1791, allocations: 4.75 kB / 0.5065 GB, free: 5.988 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007956/0.1799, allocations: 359.1 kB / 0.5068 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.1805, allocations: 105.7 kB / 0.5069 GB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.1911, allocations: 6.014 MB / 0.5128 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.1916, allocations: 0.8596 MB / 0.5136 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.1921, allocations: 128.5 kB / 0.5137 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003793/0.1925, allocations: 195.4 kB / 0.5139 GB, free: 14.16 MB / 398.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1925, allocations: 0 / 0.5139 GB, free: 14.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04157/0.2341, allocations: 14.03 MB / 0.5276 GB, free: 456 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.86, allocations: 17.09 kB / 0.5276 GB, free: 448 kB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)