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.001362/0.001362, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001508/0.001508, allocations: 191 kB / 17.29 MB, free: 5.516 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1324/0.1324, allocations: 22.32 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001374, allocations: 67.52 kB / 382.3 MB, free: 40.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.09277, allocations: 54.96 MB / 437.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004667/0.09748, allocations: 3.437 MB / 440.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.09939, allocations: 1.044 MB / 441.7 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.09959, allocations: 4 kB / 441.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.09986, allocations: 75.22 kB / 441.8 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.1003, allocations: 214.4 kB / 442 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.1009, allocations: 215.6 kB / 442.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008683/0.1018, allocations: 0.8576 MB / 443.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007377/0.1025, allocations: 0.5918 MB / 443.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.103, allocations: 406.8 kB / 444 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006697/0.1036, allocations: 0.5608 MB / 444.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.1038, allocations: 96 kB / 444.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.104, allocations: 132 kB / 444.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.1043, allocations: 267.2 kB / 445.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004004/0.1047, allocations: 430.1 kB / 445.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009276/0.1056, allocations: 1.044 MB / 446.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1056, allocations: 4 kB / 446.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1056, allocations: 0 / 446.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.1057, allocations: 0 / 446.6 MB, free: 2.816 MB / 318.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.002485/0.1081, allocations: 1.084 MB / 447.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1082, allocations: 16.03 kB / 447.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.1084, allocations: 68.09 kB / 447.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/0.1091, allocations: 471.1 kB / 448.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.1091, allocations: 37.69 kB / 448.2 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.1093, allocations: 52.38 kB / 448.3 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.1105, allocations: 0.7484 MB / 449 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.1106, allocations: 0 / 449 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.5e-05/0.1106, allocations: 20 kB / 449 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1107, allocations: 19.94 kB / 449.1 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1121, allocations: 0.8055 MB / 449.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004906/0.117, allocations: 2.389 MB / 452.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1182, allocations: 0.6447 MB / 452.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007929/0.119, allocations: 426.3 kB / 453.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.291e-05/0.1191, allocations: 16.55 kB / 453.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.1192, allocations: 39.12 kB / 453.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000685/0.1199, allocations: 163.3 kB / 453.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.835e-06/0.1199, allocations: 0 / 453.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.009438/0.1293, allocations: 2.361 MB / 455.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.1294, allocations: 63.97 kB / 455.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.13, allocations: 449.8 kB / 456.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.92e-05/0.1301, allocations: 33.7 kB / 456.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.1303, allocations: 268.7 kB / 456.7 MB, free: 8.395 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.1305, allocations: 236.5 kB / 456.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.1308, allocations: 162.6 kB / 457.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1309, allocations: 362.8 kB / 457.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000605/0.1316, allocations: 341.8 kB / 457.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006896/0.1323, allocations: 470.8 kB / 458.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.1337, allocations: 0.826 MB / 459 MB, free: 5.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.1337, allocations: 7.938 kB / 459.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005325/0.139, allocations: 1.572 MB / 460.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1391, allocations: 8 kB / 460.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1391, allocations: 4 kB / 460.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00455/0.1436, allocations: 0.8065 MB / 461.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.145, allocations: 247.7 kB / 461.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005603/0.1506, allocations: 4.08 MB / 465.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007216/0.1514, allocations: 32.02 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.254e-05/0.1515, allocations: 44.06 kB / 465.8 MB, free: 14.91 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 (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.0003035/0.1518, allocations: 201.6 kB / 466 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.1519, allocations: 59.19 kB / 466.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/0.1552, allocations: 1.31 MB / 467.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.1553, allocations: 11.94 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1553, allocations: 8 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.1553, allocations: 3.984 kB / 467.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.1592, allocations: 1.995 MB / 469.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1593, allocations: 0 / 469.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.1604, allocations: 219.7 kB / 469.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/0.1626, allocations: 0.5136 MB / 470.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.048e-05/0.1627, allocations: 24.11 kB / 470.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003407/0.1661, allocations: 3.404 MB / 473.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1662, allocations: 0 / 473.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.1697, allocations: 1.665 MB / 475.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.1699, allocations: 136.4 kB / 475.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.735e-05/0.17, allocations: 23.94 kB / 475.4 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.1705, allocations: 27.97 kB / 475.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.1706, allocations: 60.91 kB / 475.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.428e-05/0.1707, allocations: 20.11 kB / 475.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.171, allocations: 331.1 kB / 475.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.171, allocations: 0 / 475.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000723/0.1717, allocations: 231.8 kB / 476.1 MB, free: 4.352 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 (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.0001959/0.1719, allocations: 133.6 kB / 476.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002229/0.1742, allocations: 1.113 MB / 477.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1742, allocations: 448 / 477.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.1754, allocations: 0.6408 MB / 477.9 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.176, allocations: 138.2 kB / 478.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.1795, allocations: 2.021 MB / 480.1 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.18, allocations: 0.9196 MB / 481 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004036/0.1804, allocations: 145.1 kB / 481.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.1806, allocations: 63.41 kB / 481.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1806, allocations: 0 / 481.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Templates: time 0.02004/0.2006, allocations: 12.44 MB / 493.7 MB, free: 2.793 MB / 366.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)