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: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 108.4 kB / 16.41 MB, free: 6.453 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.001157/0.001157, allocations: 187 kB / 17.34 MB, free: 5.719 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08987/0.08987, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 437.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1039, allocations: 54.96 MB / 492.7 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.00457/0.1085, allocations: 3.439 MB / 496.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.1107, allocations: 1.033 MB / 497.2 MB, free: 208 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.1112, allocations: 4 kB / 497.2 MB, free: 204 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.1115, allocations: 75.22 kB / 497.2 MB, free: 128 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006539/0.1122, allocations: 210.4 kB / 497.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006651/0.1129, allocations: 219.6 kB / 497.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008508/0.1137, allocations: 0.8652 MB / 498.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006986/0.1145, allocations: 0.584 MB / 499.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000446/0.1149, allocations: 402.9 kB / 499.5 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006695/0.1156, allocations: 0.5647 MB / 0.4884 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1157, allocations: 96 kB / 0.4884 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.116, allocations: 132 kB / 0.4886 GB, free: 13.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.1162, allocations: 275.2 kB / 0.4888 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003869/0.1166, allocations: 430.2 kB / 0.4892 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000945/0.1175, allocations: 1.04 MB / 0.4903 GB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1176, allocations: 0 / 0.4903 GB, free: 11.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1176, allocations: 0 / 0.4903 GB, free: 11.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.1176, allocations: 4 kB / 0.4903 GB, free: 11.32 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002481/0.1201, allocations: 1.091 MB / 0.4913 GB, free: 10.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1201, allocations: 12.03 kB / 0.4913 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.1203, allocations: 72.09 kB / 0.4914 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006356/0.1209, allocations: 463.1 kB / 0.4919 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.121, allocations: 49.56 kB / 0.4919 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.1211, allocations: 60.31 kB / 0.492 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.1223, allocations: 0.7367 MB / 0.4927 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1224, allocations: 0 / 0.4927 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/0.1224, allocations: 20 kB / 0.4927 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.1225, allocations: 20 kB / 0.4927 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1238, allocations: 0.8015 MB / 0.4935 GB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004771/0.1286, allocations: 2.4 MB / 0.4958 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.1298, allocations: 0.6366 MB / 0.4965 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008112/0.1306, allocations: 426.3 kB / 0.4969 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1306, allocations: 16.53 kB / 0.4969 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.1307, allocations: 43.11 kB / 0.4969 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006181/0.1313, allocations: 159.4 kB / 0.4971 GB, free: 4.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.665e-06/0.1313, allocations: 0 / 0.4971 GB, free: 4.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.009489/0.1408, allocations: 2.365 MB / 0.4994 GB, free: 1.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1409, allocations: 59.97 kB / 0.4994 GB, free: 1.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.1414, allocations: 449.8 kB / 0.4999 GB, free: 1.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.079e-05/0.1415, allocations: 41.7 kB / 0.4999 GB, free: 1.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.1417, allocations: 268.6 kB / 0.5002 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.1419, allocations: 236.6 kB / 0.5004 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002612/0.1422, allocations: 158.5 kB / 0.5005 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1423, allocations: 370.8 kB / 0.5009 GB, free: 136 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2181/0.3604, allocations: 333.8 kB / 0.5012 GB, free: 21.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/0.3611, allocations: 468.5 kB / 0.5017 GB, free: 21.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3622, allocations: 0.8314 MB / 0.5025 GB, free: 21.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3623, allocations: 3.562 kB / 0.5025 GB, free: 21.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005321/0.3676, allocations: 1.563 MB / 0.504 GB, free: 21.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3676, allocations: 8.938 kB / 0.504 GB, free: 21.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3677, allocations: 4.453 kB / 0.504 GB, free: 21.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004642/0.3723, allocations: 0.8062 MB / 0.5048 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.3737, allocations: 247 kB / 0.505 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005375/0.3791, allocations: 4.078 MB / 0.509 GB, free: 18.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007919/0.3799, allocations: 30.94 kB / 0.5091 GB, free: 18.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.818e-05/0.38, allocations: 45.97 kB / 0.5091 GB, free: 18.77 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003026/0.3803, allocations: 201.4 kB / 0.5093 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.3805, allocations: 57.88 kB / 0.5093 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.3839, allocations: 1.304 MB / 0.5106 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3839, allocations: 8.438 kB / 0.5106 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.3839, allocations: 5.484 kB / 0.5106 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.384, allocations: 7.734 kB / 0.5106 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004165/0.3881, allocations: 2.019 MB / 0.5126 GB, free: 18.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3882, allocations: 0 / 0.5126 GB, free: 18.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.3893, allocations: 211.4 kB / 0.5128 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002433/0.3918, allocations: 0.5134 MB / 0.5133 GB, free: 18.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.3919, allocations: 28.11 kB / 0.5133 GB, free: 18.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.3952, allocations: 3.404 MB / 0.5167 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3952, allocations: 4 kB / 0.5167 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003967/0.3992, allocations: 1.661 MB / 0.5183 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.3994, allocations: 134.9 kB / 0.5184 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.3996, allocations: 28.55 kB / 0.5184 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.4001, allocations: 26.14 kB / 0.5185 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.4003, allocations: 65.88 kB / 0.5185 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.367e-05/0.4003, allocations: 26.58 kB / 0.5186 GB, free: 15.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004467/0.4008, allocations: 318.3 kB / 0.5189 GB, free: 15.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4008, allocations: 0 / 0.5189 GB, free: 15.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009835/0.4018, allocations: 232.7 kB / 0.5191 GB, free: 15.04 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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002345/0.402, allocations: 131.3 kB / 0.5192 GB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.4046, allocations: 1.11 MB / 0.5203 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4046, allocations: 1.094 kB / 0.5203 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.4059, allocations: 0.6484 MB / 0.5209 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.4066, allocations: 129.2 kB / 0.5211 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/0.4105, allocations: 2.058 MB / 0.5231 GB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.4109, allocations: 0.9152 MB / 0.524 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003063/0.4112, allocations: 70.81 kB / 0.524 GB, free: 12.96 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4113, allocations: 1.125 kB / 0.524 GB, free: 12.96 MB / 382.1 MB Notification: Performance of Templates: time 0.01604/0.4273, allocations: 15.47 MB / 0.5391 GB, free: 3.918 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)