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.001201/0.001201, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001391/0.001391, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2391/0.2391, allocations: 22.35 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004321/0.0004322, allocations: 11.98 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4068, allocations: 55.97 MB / 437.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004917/0.4118, allocations: 2.986 MB / 440.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.4154, allocations: 1.097 MB / 442 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008202/0.4162, allocations: 5.188 kB / 442 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005186/0.4168, allocations: 60.17 kB / 442 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.4183, allocations: 212.8 kB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.4195, allocations: 165.2 kB / 442.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.4208, allocations: 0.5358 MB / 443 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009626/0.4217, allocations: 0.4915 MB / 443.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000739/0.4225, allocations: 343.8 kB / 443.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.4235, allocations: 0.4958 MB / 444.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000269/0.4238, allocations: 63.84 kB / 444.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003854/0.4242, allocations: 93.19 kB / 444.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.4245, allocations: 226.1 kB / 444.6 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.4248, allocations: 144.2 kB / 444.8 MB, free: 35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009896/0.4258, allocations: 0.7534 MB / 445.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4259, allocations: 4 kB / 445.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4259, allocations: 0 / 445.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.4259, allocations: 0 / 445.5 MB, free: 34.83 MB / 350.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.003684/0.4296, allocations: 0.9545 MB / 446.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.4297, allocations: 8.812 kB / 446.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002257/0.4299, allocations: 95.86 kB / 446.6 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002951/0.4302, allocations: 67.59 kB / 446.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009996/0.4312, allocations: 445.2 kB / 447.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.304e-05/0.4313, allocations: 40.31 kB / 447.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.4316, allocations: 64.58 kB / 447.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.433, allocations: 0.7309 MB / 447.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.433, allocations: 3.953 kB / 447.9 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.887e-05/0.4331, allocations: 25.47 kB / 448 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.4331, allocations: 12.88 kB / 448 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.4343, allocations: 0.8003 MB / 448.8 MB, free: 33.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004326/0.4386, allocations: 2.375 MB / 451.2 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.4398, allocations: 0.6459 MB / 451.8 MB, free: 31.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.248e-05/0.4399, allocations: 17.42 kB / 451.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.4399, allocations: 37.97 kB / 451.9 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006139/0.4405, allocations: 148.4 kB / 452 MB, free: 31.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.655e-06/0.4405, allocations: 0 / 452 MB, free: 31.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008834/0.4494, allocations: 2.327 MB / 454.3 MB, free: 30.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.4494, allocations: 60.28 kB / 454.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004672/0.4499, allocations: 451.2 kB / 454.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.45, allocations: 36.73 kB / 454.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4502, allocations: 263.6 kB / 455.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.4503, allocations: 239 kB / 455.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.4504, allocations: 15.31 kB / 455.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.4505, allocations: 373.7 kB / 455.7 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/0.4511, allocations: 336.1 kB / 456.1 MB, free: 29.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006776/0.4518, allocations: 471.2 kB / 456.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006797/0.4524, allocations: 396 kB / 456.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4525, allocations: 1.281 kB / 456.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005459/0.4579, allocations: 1.541 MB / 458.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.458, allocations: 6.125 kB / 458.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.458, allocations: 3.203 kB / 458.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004975/0.463, allocations: 0.7598 MB / 459.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.4646, allocations: 254.7 kB / 459.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005324/0.4699, allocations: 3.856 MB / 463.3 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009505/0.4709, allocations: 31.45 kB / 463.4 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.471, allocations: 45.02 kB / 463.4 MB, free: 25.46 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003585/0.4714, allocations: 194.9 kB / 463.6 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.4715, allocations: 58.53 kB / 463.6 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.4751, allocations: 1.301 MB / 464.9 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4751, allocations: 8.438 kB / 465 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4752, allocations: 2.172 kB / 465 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.4752, allocations: 5.672 kB / 465 MB, free: 24.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.4765, allocations: 0.7318 MB / 465.7 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.4765, allocations: 4 kB / 465.7 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.4777, allocations: 212 kB / 465.9 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002438/0.4801, allocations: 0.4939 MB / 466.4 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4803, allocations: 27.14 kB / 466.4 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003293/0.4836, allocations: 3.211 MB / 469.6 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4836, allocations: 1.281 kB / 469.6 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/0.4874, allocations: 1.629 MB / 471.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.4877, allocations: 150.7 kB / 471.4 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4878, allocations: 20.16 kB / 471.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004946/0.4883, allocations: 26.98 kB / 471.5 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.4885, allocations: 59.66 kB / 471.5 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.101e-05/0.4886, allocations: 23.14 kB / 471.5 MB, free: 20.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004621/0.4891, allocations: 323.5 kB / 471.9 MB, free: 20.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4891, allocations: 3.938 kB / 471.9 MB, free: 20.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001168/0.4903, allocations: 231.1 kB / 472.1 MB, free: 20.35 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/0.4949, allocations: 2.165 MB / 474.3 MB, free: 19.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00377/0.4988, allocations: 1.107 MB / 475.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4988, allocations: 0 / 475.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.5003, allocations: 0.6477 MB / 476 MB, free: 18.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006765/0.501, allocations: 119.8 kB / 476.1 MB, free: 18.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/0.5065, allocations: 4.819 MB / 480.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005346/0.5071, allocations: 0.9296 MB / 481.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006506/0.5077, allocations: 152 kB / 482 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003869/0.5081, allocations: 249.1 kB / 482.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5081, allocations: 0 / 482.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04339/0.5515, allocations: 16.67 MB / 498.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000522/0.5521, allocations: 267.5 kB / 499.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.01, allocations: 0 / 499.2 MB, free: 15.28 MB / 366.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/linux/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) Environment - environmentSimulation: