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_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.123/0.123, allocations: 21.46 MB / 36.43 MB, free: 1.164 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 183.1 kB / 42.65 MB, free: 3.988 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 254.1 MB, free: 15.2 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007929/0.0007929, allocations: 89.77 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004238/0.0004238, allocations: 7.312 kB / 373.3 MB, free: 59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 52.96 MB / 426.2 MB, free: 13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003729/0.1094, allocations: 3.248 MB / 429.5 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.1113, allocations: 1.06 MB / 430.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.1116, allocations: 4 kB / 430.5 MB, free: 8.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.1118, allocations: 67.45 kB / 430.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005823/0.1124, allocations: 218.4 kB / 430.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004919/0.1129, allocations: 143.8 kB / 431 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007346/0.1137, allocations: 0.8495 MB / 431.8 MB, free: 7.387 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.1143, allocations: 0.5152 MB / 432.3 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003736/0.1147, allocations: 370.9 kB / 432.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006662/0.1154, allocations: 0.5452 MB / 433.2 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.1156, allocations: 67.98 kB / 433.3 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000242/0.1158, allocations: 95.97 kB / 433.4 MB, free: 5.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.116, allocations: 227.3 kB / 433.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.1162, allocations: 141.4 kB / 433.7 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006564/0.1168, allocations: 0.7557 MB / 434.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1169, allocations: 0 / 434.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1169, allocations: 0 / 434.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.1169, allocations: 0 / 434.5 MB, free: 4.672 MB / 298.7 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.002608/0.1195, allocations: 0.9471 MB / 435.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1195, allocations: 12.03 kB / 435.5 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.1197, allocations: 67.16 kB / 435.5 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006961/0.1205, allocations: 462 kB / 436 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.1205, allocations: 41.31 kB / 436 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.1207, allocations: 52 kB / 436.1 MB, free: 3.012 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.1223, allocations: 0.7247 MB / 436.8 MB, free: 2.281 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.1223, allocations: 0 / 436.8 MB, free: 2.281 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.1224, allocations: 28 kB / 436.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.1224, allocations: 12 kB / 436.8 MB, free: 2.242 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.1242, allocations: 0.7976 MB / 437.6 MB, free: 1.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005092/0.1293, allocations: 2.008 MB / 439.6 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.1309, allocations: 0.6499 MB / 440.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000937/0.1318, allocations: 399.1 kB / 440.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002044/0.132, allocations: 101.6 kB / 440.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.1321, allocations: 43.12 kB / 440.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000854/0.1329, allocations: 143.3 kB / 441 MB, free: 14.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.727e-06/0.133, allocations: 3.938 kB / 441 MB, free: 14.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=68): time 0.01515/0.1481, allocations: 2.576 MB / 443.5 MB, free: 11.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.1482, allocations: 55.97 kB / 443.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006884/0.1489, allocations: 433.8 kB / 444 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.1491, allocations: 37.7 kB / 444.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/0.1493, allocations: 264.6 kB / 444.3 MB, free: 10.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.1496, allocations: 244.5 kB / 444.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.1497, allocations: 16 kB / 444.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1498, allocations: 362.8 kB / 444.9 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009404/0.1508, allocations: 357.8 kB / 445.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.1518, allocations: 486.7 kB / 445.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.1529, allocations: 414.9 kB / 446.2 MB, free: 8.668 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1529, allocations: 0 / 446.2 MB, free: 8.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.01087/0.1638, allocations: 1.736 MB / 447.9 MB, free: 6.918 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.1639, allocations: 14.28 kB / 447.9 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.1639, allocations: 4.375 kB / 447.9 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006687/0.1706, allocations: 0.8451 MB / 448.8 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.172, allocations: 243.7 kB / 449 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005637/0.1777, allocations: 3.866 MB / 452.9 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008442/0.1785, allocations: 35.95 kB / 452.9 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.323e-05/0.1786, allocations: 43.97 kB / 452.9 MB, free: 1.668 MB / 314.7 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000348/0.179, allocations: 193.7 kB / 453.1 MB, free: 1.469 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.1791, allocations: 55.34 kB / 453.2 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004604/0.1837, allocations: 1.512 MB / 454.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.1838, allocations: 8 kB / 454.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1838, allocations: 4 kB / 454.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.1838, allocations: 3.984 kB / 454.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009455/0.1847, allocations: 0.7633 MB / 455.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.1847, allocations: 0 / 455.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.1859, allocations: 211.7 kB / 455.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004407/0.1903, allocations: 0.6035 MB / 456.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.1905, allocations: 23.98 kB / 456.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003642/0.1941, allocations: 3.22 MB / 459.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1941, allocations: 0 / 459.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005231/0.1994, allocations: 1.878 MB / 461.4 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.1996, allocations: 140.3 kB / 461.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.925e-05/0.1997, allocations: 19.98 kB / 461.6 MB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.2002, allocations: 27.89 kB / 461.6 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.2003, allocations: 64.86 kB / 461.6 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-05/0.2004, allocations: 27.98 kB / 461.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003074/0.2007, allocations: 299.1 kB / 462 MB, free: 8.309 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2007, allocations: 0 / 462 MB, free: 8.309 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007449/0.2014, allocations: 235.9 kB / 462.2 MB, free: 8.078 MB / 330.7 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 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002112/0.2017, allocations: 142.9 kB / 462.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.2037, allocations: 1.125 MB / 463.5 MB, free: 6.793 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2038, allocations: 0 / 463.5 MB, free: 6.793 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.2049, allocations: 0.6643 MB / 464.1 MB, free: 6.117 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.2055, allocations: 133.6 kB / 464.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.2092, allocations: 2.429 MB / 466.7 MB, free: 3.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.2097, allocations: 0.9235 MB / 467.6 MB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004946/0.2102, allocations: 141.1 kB / 467.7 MB, free: 2.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.2104, allocations: 67.34 kB / 467.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2104, allocations: 0 / 467.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of Templates: time 0.01649/0.2269, allocations: 10.95 MB / 478.8 MB, free: 7.422 MB / 346.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)