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.007846/0.007846, allocations: 100.3 kB / 15.73 MB, free: 6 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.002138/0.002138, allocations: 195.1 kB / 16.67 MB, free: 5.922 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09096/0.09096, allocations: 22.33 MB / 312.9 MB, free: 8.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 436.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1154, allocations: 54.96 MB / 491.5 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.005115/0.1205, allocations: 3.557 MB / 495.1 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.1232, allocations: 1.076 MB / 496.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004364/0.1236, allocations: 4 kB / 496.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003207/0.124, allocations: 79.16 kB / 496.2 MB, free: 460 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007444/0.1248, allocations: 214.3 kB / 496.4 MB, free: 244 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007766/0.1256, allocations: 243.5 kB / 496.7 MB, free: 0 / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.1272, allocations: 0.9121 MB / 497.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.1283, allocations: 0.6113 MB / 498.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008228/0.1291, allocations: 430.7 kB / 498.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.1303, allocations: 0.5919 MB / 499.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002824/0.1306, allocations: 100 kB / 499.3 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004498/0.1311, allocations: 132 kB / 499.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005032/0.1316, allocations: 291.2 kB / 499.7 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006736/0.1323, allocations: 446.1 kB / 0.4884 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.1337, allocations: 1.091 MB / 0.4895 GB, free: 11.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1337, allocations: 4 kB / 0.4895 GB, free: 11.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1337, allocations: 0 / 0.4895 GB, free: 11.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.511e-05/0.1338, allocations: 0 / 0.4895 GB, free: 11.4 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004138/0.1379, allocations: 1.169 MB / 0.4906 GB, free: 10.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/0.138, allocations: 8.031 kB / 0.4907 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003335/0.1383, allocations: 98.64 kB / 0.4907 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003555/0.1387, allocations: 76 kB / 0.4908 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.1397, allocations: 487 kB / 0.4913 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.373e-05/0.1398, allocations: 45.69 kB / 0.4913 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.14, allocations: 52.38 kB / 0.4914 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.1416, allocations: 0.7716 MB / 0.4921 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.1417, allocations: 0 / 0.4921 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.583e-05/0.1418, allocations: 23.94 kB / 0.4922 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.1418, allocations: 15.94 kB / 0.4922 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.1434, allocations: 0.8327 MB / 0.493 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004665/0.148, allocations: 2.078 MB / 0.495 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.1493, allocations: 0.676 MB / 0.4957 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006791/0.15, allocations: 411.1 kB / 0.4961 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-05/0.1501, allocations: 12.55 kB / 0.4961 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.1501, allocations: 47.12 kB / 0.4961 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006361/0.1507, allocations: 163.3 kB / 0.4963 GB, free: 4.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 3.417e-06/0.1508, allocations: 0 / 0.4963 GB, free: 4.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01015/0.1609, allocations: 2.556 MB / 0.4988 GB, free: 1.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.161, allocations: 59.97 kB / 0.4988 GB, free: 1.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.1615, allocations: 493.9 kB / 0.4993 GB, free: 1.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.092e-05/0.1616, allocations: 41.7 kB / 0.4993 GB, free: 1.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/0.1618, allocations: 296.5 kB / 0.4996 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.1621, allocations: 244.4 kB / 0.4999 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.1623, allocations: 166.5 kB / 0.5 GB, free: 352 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.2413/0.4036, allocations: 374.8 kB / 0.5004 GB, free: 21.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.4047, allocations: 362.9 kB / 0.5007 GB, free: 21.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/0.4054, allocations: 491.6 kB / 0.5012 GB, free: 21.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.4066, allocations: 0.8769 MB / 0.502 GB, free: 21.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4066, allocations: 1 kB / 0.502 GB, free: 21.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005522/0.4121, allocations: 1.656 MB / 0.5037 GB, free: 21.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.4122, allocations: 5.844 kB / 0.5037 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4122, allocations: 3.203 kB / 0.5037 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004224/0.4165, allocations: 0.729 MB / 0.5044 GB, free: 21.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4181, allocations: 251 kB / 0.5046 GB, free: 21.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005787/0.4239, allocations: 4.144 MB / 0.5087 GB, free: 18.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009841/0.4249, allocations: 29.66 kB / 0.5087 GB, free: 18.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.425, allocations: 47.67 kB / 0.5087 GB, free: 18.56 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.0003981/0.4254, allocations: 210.9 kB / 0.5089 GB, free: 18.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.4255, allocations: 61.28 kB / 0.509 GB, free: 18.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003599/0.4291, allocations: 1.413 MB / 0.5104 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4292, allocations: 10.53 kB / 0.5104 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4292, allocations: 3.422 kB / 0.5104 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4292, allocations: 4.5 kB / 0.5104 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.4302, allocations: 0.799 MB / 0.5112 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4303, allocations: 3.625 kB / 0.5112 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.4314, allocations: 213.6 kB / 0.5114 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/0.4335, allocations: 482.3 kB / 0.5119 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.652e-05/0.4336, allocations: 25.33 kB / 0.5119 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/0.437, allocations: 3.462 MB / 0.5153 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.437, allocations: 1.562 kB / 0.5153 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004257/0.4412, allocations: 1.8 MB / 0.517 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.4415, allocations: 145.6 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.4416, allocations: 26.45 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.4421, allocations: 26.59 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.4424, allocations: 63.47 kB / 0.5173 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.938e-05/0.4424, allocations: 28.03 kB / 0.5173 GB, free: 15.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004546/0.4429, allocations: 345 kB / 0.5176 GB, free: 15.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4429, allocations: 0.8438 kB / 0.5176 GB, free: 15.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009778/0.4439, allocations: 246 kB / 0.5179 GB, free: 15.01 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 (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.00473/0.4486, allocations: 2.327 MB / 0.5201 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003037/0.4517, allocations: 1.185 MB / 0.5213 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4517, allocations: 4.062 kB / 0.5213 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.4531, allocations: 0.6913 MB / 0.522 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007904/0.4539, allocations: 136.2 kB / 0.5221 GB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/0.4736, allocations: 8.406 MB / 0.5303 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.4741, allocations: 0.9349 MB / 0.5312 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005962/0.4747, allocations: 151.5 kB / 0.5314 GB, free: 8.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004038/0.4751, allocations: 262.9 kB / 0.5316 GB, free: 8.152 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4751, allocations: 0 / 0.5316 GB, free: 8.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04574/0.5209, allocations: 20.01 MB / 0.5512 GB, free: 6.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.94, allocations: 12.11 kB / 0.5512 GB, free: 6.859 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 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)