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.007027/0.007027, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001356/0.001356, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1005/0.1005, allocations: 22.33 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 59.91 kB / 436.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1029, allocations: 54.96 MB / 491.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004091/0.107, allocations: 3.011 MB / 494.5 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1089, allocations: 0.9432 MB / 495.5 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1091, allocations: 4 kB / 495.5 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.1094, allocations: 59.38 kB / 495.5 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005062/0.1099, allocations: 182.7 kB / 495.7 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006591/0.1106, allocations: 191.5 kB / 495.9 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008406/0.1114, allocations: 0.7137 MB / 496.6 MB, free: 96 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006724/0.1121, allocations: 395.8 kB / 497 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004836/0.1126, allocations: 303 kB / 497.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000656/0.1133, allocations: 410.6 kB / 497.7 MB, free: 15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.1134, allocations: 68 kB / 497.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.1137, allocations: 104 kB / 497.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.1139, allocations: 207.4 kB / 498.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003542/0.1143, allocations: 326.5 kB / 498.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008124/0.1151, allocations: 0.7823 MB / 499.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1151, allocations: 0 / 499.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1151, allocations: 4 kB / 499.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.1152, allocations: 4 kB / 499.2 MB, free: 13.51 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002219/0.1174, allocations: 0.9192 MB / 0.4884 GB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1174, allocations: 12.03 kB / 0.4884 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/0.1176, allocations: 74.72 kB / 0.4885 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1178, allocations: 60.56 kB / 0.4885 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.1183, allocations: 403.9 kB / 0.4889 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.1184, allocations: 29.38 kB / 0.4889 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001542/0.1185, allocations: 48.31 kB / 0.489 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.1196, allocations: 0.5492 MB / 0.4895 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1196, allocations: 0 / 0.4895 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.709e-05/0.1197, allocations: 16 kB / 0.4895 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1197, allocations: 12 kB / 0.4895 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1208, allocations: 0.5387 MB / 0.4901 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.1242, allocations: 1.527 MB / 0.4916 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.1251, allocations: 492.7 kB / 0.492 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004947/0.1256, allocations: 262 kB / 0.4923 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.15e-05/0.1257, allocations: 16.58 kB / 0.4923 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.1257, allocations: 35 kB / 0.4923 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003687/0.1261, allocations: 63.59 kB / 0.4924 GB, free: 8.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 5.851e-06/0.1261, allocations: 0 / 0.4924 GB, free: 8.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003371/0.1295, allocations: 1.1 MB / 0.4935 GB, free: 7.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1295, allocations: 63.72 kB / 0.4935 GB, free: 7.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005307/0.1301, allocations: 389.6 kB / 0.4939 GB, free: 6.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.1301, allocations: 33.7 kB / 0.4939 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.1303, allocations: 248.5 kB / 0.4942 GB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.1305, allocations: 186.4 kB / 0.4943 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/0.1308, allocations: 122.3 kB / 0.4945 GB, free: 6.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.131, allocations: 358.8 kB / 0.4948 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004875/0.1314, allocations: 257.2 kB / 0.495 GB, free: 5.492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005903/0.132, allocations: 370.1 kB / 0.4954 GB, free: 5.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.1332, allocations: 0.6305 MB / 0.496 GB, free: 4.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1332, allocations: 0 / 0.496 GB, free: 4.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002202/0.1354, allocations: 0.8513 MB / 0.4968 GB, free: 3.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1355, allocations: 6.188 kB / 0.4968 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.1355, allocations: 4.375 kB / 0.4969 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.1367, allocations: 177.5 kB / 0.497 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/0.138, allocations: 247.7 kB / 0.4973 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.1389, allocations: 1.152 MB / 0.4984 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.1394, allocations: 23.98 kB / 0.4984 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.1395, allocations: 35.97 kB / 0.4984 GB, free: 1.863 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.0002644/0.1398, allocations: 182.5 kB / 0.4986 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1399, allocations: 51.81 kB / 0.4987 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.142, allocations: 0.8296 MB / 0.4995 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.142, allocations: 8 kB / 0.4995 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.142, allocations: 3.938 kB / 0.4995 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.142, allocations: 3.984 kB / 0.4995 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2415/0.3835, allocations: 1.453 MB / 0.5009 GB, free: 21.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.3836, allocations: 0 / 0.5009 GB, free: 21.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.3847, allocations: 201.4 kB / 0.5011 GB, free: 21.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009484/0.3857, allocations: 159.9 kB / 0.5013 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.601e-05/0.3858, allocations: 19.61 kB / 0.5013 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007161/0.3865, allocations: 1.159 MB / 0.5024 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3865, allocations: 2.719 kB / 0.5024 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.3888, allocations: 1.137 MB / 0.5035 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.389, allocations: 133.3 kB / 0.5036 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.3891, allocations: 18.05 kB / 0.5037 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004121/0.3895, allocations: 20.09 kB / 0.5037 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3897, allocations: 44.84 kB / 0.5037 GB, free: 20.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.3897, allocations: 14.53 kB / 0.5037 GB, free: 20.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003304/0.39, allocations: 275.3 kB / 0.504 GB, free: 20.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.39, allocations: 0 / 0.504 GB, free: 20.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005574/0.3906, allocations: 172.5 kB / 0.5042 GB, free: 20.46 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.002013/0.3926, allocations: 1.637 MB / 0.5058 GB, free: 19.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001712/0.3944, allocations: 0.685 MB / 0.5064 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3944, allocations: 0.6562 kB / 0.5064 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009169/0.3953, allocations: 368.9 kB / 0.5068 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.396, allocations: 110.9 kB / 0.5069 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.4067, allocations: 6.024 MB / 0.5128 GB, free: 17.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.4071, allocations: 0.8635 MB / 0.5136 GB, free: 16.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.4077, allocations: 128.6 kB / 0.5137 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.4081, allocations: 193.3 kB / 0.5139 GB, free: 16.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4081, allocations: 0 / 0.5139 GB, free: 16.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.4465, allocations: 14.03 MB / 0.5276 GB, free: 12.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.82, allocations: 6.141 kB / 0.5276 GB, free: 12.52 MB / 382.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 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)