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_004_LTI.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_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI",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.004932/0.004932, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.00126/0.00126, allocations: 191.1 kB / 16.68 MB, free: 5.965 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08938/0.08938, allocations: 22.33 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.89 kB / 436.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09609, allocations: 54.96 MB / 491.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002136/0.09826, allocations: 0.9821 MB / 492.5 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.09987, allocations: 1.202 MB / 493.7 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.58e-05/0.1, allocations: 8 kB / 493.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.1003, allocations: 31.78 kB / 493.7 MB, free: 3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.1005, allocations: 55.75 kB / 493.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.1007, allocations: 67.89 kB / 493.9 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.101, allocations: 207.6 kB / 494.1 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.1011, allocations: 33.38 kB / 494.1 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1013, allocations: 83.73 kB / 494.2 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.1014, allocations: 87.7 kB / 494.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.1015, allocations: 8 kB / 494.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.267e-05/0.1015, allocations: 11.94 kB / 494.3 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.433e-05/0.1016, allocations: 35.89 kB / 494.3 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.312e-05/0.1017, allocations: 55.59 kB / 494.4 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.1019, allocations: 119.5 kB / 494.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1019, allocations: 0 / 494.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1019, allocations: 0 / 494.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1019, allocations: 0 / 494.5 MB, free: 2.242 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001083/0.103, allocations: 0.4949 MB / 495 MB, free: 1.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.103, allocations: 8.031 kB / 495 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.1031, allocations: 42.75 kB / 495 MB, free: 1.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.163e-05/0.1031, allocations: 12.75 kB / 495 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005082/0.1036, allocations: 276.6 kB / 495.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1037, allocations: 8.375 kB / 495.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.1037, allocations: 4.375 kB / 495.3 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.1039, allocations: 101.8 kB / 495.4 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1039, allocations: 0 / 495.4 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1039, allocations: 4 kB / 495.4 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.1039, allocations: 0 / 495.4 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.1041, allocations: 83.88 kB / 495.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007066/0.1048, allocations: 424.5 kB / 495.9 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.1052, allocations: 150.7 kB / 496.1 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.744e-05/0.1053, allocations: 44.84 kB / 496.1 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.1053, allocations: 8 kB / 496.1 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.1053, allocations: 34.56 kB / 496.2 MB, free: 404 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1054, allocations: 0 / 496.2 MB, free: 404 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.002391/0.1077, allocations: 487 kB / 496.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.1078, allocations: 51.41 kB / 496.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.1083, allocations: 233.4 kB / 496.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1083, allocations: 29.7 kB / 496.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.442e-05/0.1084, allocations: 112.1 kB / 497.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.1084, allocations: 39.44 kB / 497.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.175e-05/0.1085, allocations: 30.08 kB / 497.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1086, allocations: 326.8 kB / 497.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.666e-05/0.1087, allocations: 31.98 kB / 497.5 MB, free: 15.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.334e-05/0.1088, allocations: 47.84 kB / 497.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.1101, allocations: 288.5 kB / 497.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1101, allocations: 0 / 497.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008852/0.111, allocations: 246.2 kB / 498 MB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.111, allocations: 4 kB / 498 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.111, allocations: 0 / 498 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008092/0.1119, allocations: 112.8 kB / 498.2 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/0.112, allocations: 15.98 kB / 498.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/0.1154, allocations: 1.876 MB / 0.4883 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1157, allocations: 32 kB / 0.4884 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.1157, allocations: 4 kB / 0.4884 GB, free: 12.23 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.1159, allocations: 134.6 kB / 0.4885 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.1159, allocations: 19.75 kB / 0.4885 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008078/0.1168, allocations: 263.7 kB / 0.4888 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1168, allocations: 4 kB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1168, allocations: 3.938 kB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1168, allocations: 0 / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002744/0.1171, allocations: 245.4 kB / 0.489 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1171, allocations: 4 kB / 0.489 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.353e-05/0.1172, allocations: 8 kB / 0.489 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005836/0.1178, allocations: 112.8 kB / 0.4891 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1178, allocations: 3.984 kB / 0.4891 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/0.1203, allocations: 1.809 MB / 0.4909 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1204, allocations: 0 / 0.4909 GB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008432/0.1212, allocations: 399.6 kB / 0.4913 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.1213, allocations: 89.05 kB / 0.4914 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.1213, allocations: 8.031 kB / 0.4914 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.1216, allocations: 35.83 kB / 0.4914 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.1216, allocations: 11.98 kB / 0.4914 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.1216, allocations: 4 kB / 0.4914 GB, free: 8.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003631/0.122, allocations: 192.8 kB / 0.4916 GB, free: 8.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.122, allocations: 4 kB / 0.4916 GB, free: 8.668 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1223, allocations: 35.84 kB / 0.4916 GB, free: 8.633 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001146/0.1235, allocations: 0.92 MB / 0.4925 GB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.124, allocations: 246.6 kB / 0.4928 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.124, allocations: 0 / 0.4928 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002638/0.1243, allocations: 202.5 kB / 0.493 GB, free: 7.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.1247, allocations: 31.98 kB / 0.493 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004005/0.1287, allocations: 2.159 MB / 0.4951 GB, free: 4.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.129, allocations: 0.7202 MB / 0.4958 GB, free: 4.203 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.546e-05/0.1291, allocations: 28.62 kB / 0.4958 GB, free: 4.176 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.377e-05/0.1292, allocations: 39.42 kB / 0.4959 GB, free: 4.141 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1292, allocations: 0 / 0.4959 GB, free: 4.141 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.1561, allocations: 4.338 MB / 0.5001 GB, free: 32 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.17, allocations: 10.91 kB / 0.5001 GB, free: 28 kB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-09 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_004_LTI.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)