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.005073/0.005072, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001045/0.001045, allocations: 196.4 kB / 16.67 MB, free: 5.977 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1929/0.1929, allocations: 22.37 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.06 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08449/0.08587, allocations: 54.97 MB / 491.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.001904/0.08781, allocations: 0.9791 MB / 492.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.08911, allocations: 1.213 MB / 493.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.734e-05/0.08923, allocations: 0 / 493.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003286/0.08957, allocations: 35.77 kB / 493.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.08978, allocations: 51.75 kB / 493.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001862/0.08998, allocations: 63.89 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.09025, allocations: 195.7 kB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.09039, allocations: 37.42 kB / 494.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.09054, allocations: 91.66 kB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.09073, allocations: 83.72 kB / 494.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.09077, allocations: 8 kB / 494.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.248e-05/0.0908, allocations: 11.94 kB / 494.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-05/0.09089, allocations: 47.89 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.684e-05/0.09096, allocations: 55.66 kB / 494.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.09114, allocations: 107.5 kB / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.09115, allocations: 0 / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09116, allocations: 0 / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.09117, allocations: 0 / 494.5 MB, free: 14.69 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.001075/0.09225, allocations: 0.4957 MB / 495 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.0923, allocations: 8.031 kB / 495 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.099e-05/0.09236, allocations: 38.75 kB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.09241, allocations: 16.73 kB / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.09294, allocations: 280.6 kB / 495.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.09297, allocations: 4.375 kB / 495.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.093, allocations: 8.375 kB / 495.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.09321, allocations: 97.7 kB / 495.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.09322, allocations: 3.938 kB / 495.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.09325, allocations: 4 kB / 495.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.09326, allocations: 4 kB / 495.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.09341, allocations: 79.94 kB / 495.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006691/0.09409, allocations: 416.5 kB / 496 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.09444, allocations: 150.7 kB / 496.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.323e-05/0.09453, allocations: 60.77 kB / 496.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.09456, allocations: 11.97 kB / 496.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.09459, allocations: 34.5 kB / 496.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.09459, allocations: 0 / 496.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.002298/0.09689, allocations: 483 kB / 496.7 MB, free: 12.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.09695, allocations: 55.41 kB / 496.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004/0.09736, allocations: 233.6 kB / 497 MB, free: 12.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.09738, allocations: 29.7 kB / 497 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.09744, allocations: 108 kB / 497.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.09749, allocations: 31.7 kB / 497.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.09755, allocations: 29.7 kB / 497.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.197e-05/0.09765, allocations: 326.8 kB / 497.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.139e-05/0.09772, allocations: 35.97 kB / 497.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.351e-05/0.09778, allocations: 35.92 kB / 497.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.09905, allocations: 288.7 kB / 497.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.09906, allocations: 0 / 497.8 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008665/0.09994, allocations: 254 kB / 498.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.09996, allocations: 4 kB / 498.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.09997, allocations: 0 / 498.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007972/0.1008, allocations: 116.8 kB / 498.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.578e-05/0.1008, allocations: 16 kB / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003345/0.1042, allocations: 1.879 MB / 0.4884 GB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.1044, allocations: 31.94 kB / 0.4884 GB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.1044, allocations: 7.984 kB / 0.4884 GB, free: 8.668 MB / 366.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.0001141/0.1046, allocations: 126.6 kB / 0.4885 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.1046, allocations: 19.75 kB / 0.4886 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007501/0.1054, allocations: 267.7 kB / 0.4888 GB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1054, allocations: 4 kB / 0.4888 GB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1054, allocations: 3.938 kB / 0.4888 GB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1054, allocations: 4 kB / 0.4888 GB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.1056, allocations: 229.6 kB / 0.489 GB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1056, allocations: 0 / 0.489 GB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.067e-05/0.1057, allocations: 12.12 kB / 0.4891 GB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000553/0.1063, allocations: 116.7 kB / 0.4892 GB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1063, allocations: 4 kB / 0.4892 GB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.1087, allocations: 1.817 MB / 0.4909 GB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1087, allocations: 0 / 0.4909 GB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000802/0.1095, allocations: 407 kB / 0.4913 GB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.1095, allocations: 92.97 kB / 0.4914 GB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.1096, allocations: 7.938 kB / 0.4914 GB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.1098, allocations: 23.97 kB / 0.4915 GB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.644e-05/0.1098, allocations: 12.05 kB / 0.4915 GB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.1098, allocations: 4 kB / 0.4915 GB, free: 5.297 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003328/0.1102, allocations: 192.8 kB / 0.4917 GB, free: 5.109 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1102, allocations: 0 / 0.4917 GB, free: 5.109 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.1105, allocations: 28 kB / 0.4917 GB, free: 5.082 MB / 366.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.001058/0.1115, allocations: 0.9364 MB / 0.4926 GB, free: 4.117 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.1119, allocations: 238.5 kB / 0.4928 GB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.112, allocations: 0 / 0.4928 GB, free: 3.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.1122, allocations: 198.7 kB / 0.493 GB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.1125, allocations: 23.92 kB / 0.493 GB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.1163, allocations: 2.166 MB / 0.4951 GB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.1165, allocations: 0.7319 MB / 0.4959 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.85e-05/0.1166, allocations: 16.64 kB / 0.4959 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.985e-05/0.1167, allocations: 39.42 kB / 0.4959 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1167, allocations: 0 / 0.4959 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.1394, allocations: 4.426 MB / 0.5002 GB, free: 12.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.81, allocations: 5.766 kB / 0.5002 GB, free: 12.39 MB / 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)