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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") [/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.1049/0.1049, allocations: 21.45 MB / 36.4 MB, free: 1.195 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.001278/0.001278, allocations: 186.9 kB / 42.63 MB, free: 3.91 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.641/1.641, allocations: 205.4 MB / 254.1 MB, free: 15.3 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.0009087/0.0009086, allocations: 96.92 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 7.531 kB / 373.2 MB, free: 59.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08937, allocations: 52.96 MB / 426.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002158/0.09156, allocations: 2.563 MB / 428.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.09296, allocations: 0.9595 MB / 429.7 MB, free: 9.477 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.0932, allocations: 7.938 kB / 429.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.09337, allocations: 47.61 kB / 429.8 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003583/0.09373, allocations: 179.5 kB / 429.9 MB, free: 9.246 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.0941, allocations: 123.7 kB / 430.1 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.09455, allocations: 428.5 kB / 430.5 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.09494, allocations: 322 kB / 430.8 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.09524, allocations: 251.2 kB / 431 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.09561, allocations: 346.9 kB / 431.4 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-05/0.09572, allocations: 44 kB / 431.4 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.09587, allocations: 71.97 kB / 431.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.09598, allocations: 163.5 kB / 431.6 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.09609, allocations: 117.5 kB / 431.8 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.09646, allocations: 0.5532 MB / 432.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.09647, allocations: 0 / 432.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09648, allocations: 0 / 432.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.0965, allocations: 3.938 kB / 432.3 MB, free: 6.852 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001494/0.098, allocations: 0.8066 MB / 433.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.09804, allocations: 8.031 kB / 433.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.09817, allocations: 55.34 kB / 433.2 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.09859, allocations: 366.7 kB / 433.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.09863, allocations: 29 kB / 433.6 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.09872, allocations: 51.91 kB / 433.6 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007499/0.09947, allocations: 0.5256 MB / 434.1 MB, free: 4.922 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.09949, allocations: 0 / 434.1 MB, free: 4.922 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.09955, allocations: 16 kB / 434.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.09956, allocations: 8 kB / 434.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007903/0.1004, allocations: 0.5309 MB / 434.7 MB, free: 4.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.1031, allocations: 1.519 MB / 436.2 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/0.1038, allocations: 480.2 kB / 436.7 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.1039, allocations: 93.69 kB / 436.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.68e-05/0.104, allocations: 46.92 kB / 436.8 MB, free: 2.152 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002389/0.1042, allocations: 55.58 kB / 436.9 MB, free: 2.098 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.804e-06/0.1042, allocations: 0 / 436.9 MB, free: 2.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003567/0.1078, allocations: 1.198 MB / 438.1 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.1078, allocations: 55.84 kB / 438.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.1081, allocations: 381.5 kB / 438.5 MB, free: 416 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.1082, allocations: 33.7 kB / 438.5 MB, free: 376 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1083, allocations: 244.1 kB / 438.8 MB, free: 128 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.1085, allocations: 177.6 kB / 439 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.1085, allocations: 12 kB / 439 MB, free: 15.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1087, allocations: 358.8 kB / 439.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.1091, allocations: 245.2 kB / 439.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.1096, allocations: 358.1 kB / 439.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.1102, allocations: 298.9 kB / 440.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1102, allocations: 7.781 kB / 440.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003066/0.1133, allocations: 0.9723 MB / 441.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1133, allocations: 14.61 kB / 441.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1133, allocations: 0 / 441.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003373/0.1167, allocations: 345.4 kB / 441.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.118, allocations: 231.7 kB / 441.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.119, allocations: 1.144 MB / 442.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.1196, allocations: 35.97 kB / 442.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.689e-05/0.1197, allocations: 27.98 kB / 443 MB, free: 11.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002756/0.12, allocations: 185.6 kB / 443.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.1201, allocations: 39.53 kB / 443.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00309/0.1232, allocations: 0.9584 MB / 444.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1232, allocations: 4 kB / 444.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.1232, allocations: 3.938 kB / 444.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1232, allocations: 3.984 kB / 444.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008039/0.124, allocations: 0.6068 MB / 444.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.124, allocations: 0 / 444.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.1251, allocations: 191.8 kB / 444.9 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003086/0.1282, allocations: 349.3 kB / 445.3 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.006e-05/0.1283, allocations: 23.98 kB / 445.3 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007277/0.129, allocations: 1.152 MB / 446.5 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.129, allocations: 0 / 446.5 MB, free: 8.184 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/0.1323, allocations: 1.25 MB / 447.7 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/0.1325, allocations: 136.4 kB / 447.8 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.1327, allocations: 16 kB / 447.9 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.1331, allocations: 27.88 kB / 447.9 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.1332, allocations: 40.5 kB / 447.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.1333, allocations: 19.98 kB / 447.9 MB, free: 6.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.1336, allocations: 259.1 kB / 448.2 MB, free: 6.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1336, allocations: 0 / 448.2 MB, free: 6.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006448/0.1342, allocations: 175.9 kB / 448.4 MB, free: 6.238 MB / 314.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 (54): * Single equations (assignments): 52 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002204/0.1345, allocations: 130.9 kB / 448.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.136, allocations: 0.6485 MB / 449.1 MB, free: 5.457 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.136, allocations: 4 kB / 449.1 MB, free: 5.453 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007403/0.1367, allocations: 347 kB / 449.5 MB, free: 5.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.1372, allocations: 101.6 kB / 449.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.1408, allocations: 2.111 MB / 451.7 MB, free: 2.875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.1413, allocations: 0.8715 MB / 452.6 MB, free: 1.977 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005649/0.1419, allocations: 136.3 kB / 452.7 MB, free: 1.844 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.1421, allocations: 55.41 kB / 452.8 MB, free: 1.789 MB / 314.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1421, allocations: 0 / 452.8 MB, free: 1.789 MB / 314.7 MB Notification: Performance of Templates: time 0.01286/0.1549, allocations: 7.366 MB / 460.1 MB, free: 10.42 MB / 330.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)