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.127/0.127, allocations: 21.61 MB / 37.41 MB, free: 0.75 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.001527/0.001528, allocations: 192.4 kB / 43.64 MB, free: 3.574 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.303/1.303, allocations: 205.1 MB / 254.8 MB, free: 14.28 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.0009298/0.0009294, allocations: 94.28 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 50.73 kB / 372.3 MB, free: 59.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08331/0.08449, allocations: 51.97 MB / 424.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003436/0.08797, allocations: 3.849 MB / 428.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.08933, allocations: 1.103 MB / 429.3 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.08948, allocations: 8 kB / 429.3 MB, free: 9.492 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.08964, allocations: 55.53 kB / 429.3 MB, free: 9.438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.08999, allocations: 182.8 kB / 429.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.09032, allocations: 171.8 kB / 429.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005171/0.09084, allocations: 0.9587 MB / 430.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004597/0.09131, allocations: 0.5437 MB / 431.2 MB, free: 7.582 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.09157, allocations: 378.9 kB / 431.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004536/0.09203, allocations: 0.5685 MB / 432.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.09216, allocations: 72 kB / 432.2 MB, free: 6.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.09234, allocations: 95.97 kB / 432.3 MB, free: 6.477 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.0925, allocations: 247.2 kB / 432.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002563/0.09276, allocations: 410.1 kB / 432.9 MB, free: 5.832 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005503/0.09331, allocations: 1.005 MB / 433.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.09333, allocations: 0 / 433.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.09333, allocations: 0 / 433.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.09335, allocations: 4 kB / 433.9 MB, free: 4.82 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.002068/0.09542, allocations: 1.103 MB / 435 MB, free: 3.668 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.09546, allocations: 8.031 kB / 435 MB, free: 3.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.0956, allocations: 72.09 kB / 435.1 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.09611, allocations: 467 kB / 435.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.09615, allocations: 37.69 kB / 435.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.202e-05/0.09625, allocations: 64.38 kB / 435.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009761/0.09723, allocations: 0.7367 MB / 436.4 MB, free: 2.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.09726, allocations: 0 / 436.4 MB, free: 2.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.461e-05/0.09733, allocations: 24 kB / 436.4 MB, free: 2.227 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.09734, allocations: 12 kB / 436.4 MB, free: 2.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.09846, allocations: 0.8133 MB / 437.2 MB, free: 1.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003448/0.1019, allocations: 2.047 MB / 439.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009339/0.1029, allocations: 0.6558 MB / 439.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005914/0.1035, allocations: 410.3 kB / 440.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.1037, allocations: 105.6 kB / 440.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1037, allocations: 43.11 kB / 440.5 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005561/0.1043, allocations: 151.4 kB / 440.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 2.094e-06/0.1043, allocations: 7.938 kB / 440.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=68): time 0.01017/0.1144, allocations: 2.616 MB / 443.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.1145, allocations: 63.91 kB / 443.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004782/0.115, allocations: 437.8 kB / 443.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.1151, allocations: 41.7 kB / 443.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.1153, allocations: 264.5 kB / 444.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.1155, allocations: 248.5 kB / 444.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.1157, allocations: 162.5 kB / 444.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1159, allocations: 370.7 kB / 444.8 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.1165, allocations: 361.8 kB / 445.2 MB, free: 9.254 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006605/0.1171, allocations: 490.8 kB / 445.7 MB, free: 8.734 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1184, allocations: 0.8651 MB / 446.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.1184, allocations: 0 / 446.5 MB, free: 7.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006306/0.1247, allocations: 1.783 MB / 448.3 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1248, allocations: 4 kB / 448.3 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.1248, allocations: 4 kB / 448.3 MB, free: 6.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006096/0.1309, allocations: 0.8961 MB / 449.2 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.1323, allocations: 259.7 kB / 449.5 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005062/0.1374, allocations: 3.869 MB / 453.3 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006884/0.1381, allocations: 39.92 kB / 453.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.1382, allocations: 39.95 kB / 453.4 MB, free: 0.7188 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 (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,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003113/0.1385, allocations: 201.6 kB / 453.6 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.1386, allocations: 55.34 kB / 453.7 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004701/0.1434, allocations: 1.544 MB / 455.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1434, allocations: 8 kB / 455.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.1434, allocations: 7.984 kB / 455.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1434, allocations: 3.984 kB / 455.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009626/0.1444, allocations: 0.7634 MB / 456 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1444, allocations: 0 / 456 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.1455, allocations: 223.6 kB / 456.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004296/0.1498, allocations: 0.6425 MB / 456.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.085e-05/0.1499, allocations: 23.98 kB / 456.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/0.1533, allocations: 3.226 MB / 460.1 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1533, allocations: 8 kB / 460.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05191/0.2052, allocations: 19.02 MB / 479.1 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/0.2054, allocations: 140.3 kB / 479.3 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.2056, allocations: 24.09 kB / 479.3 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/0.2061, allocations: 31.91 kB / 479.3 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.2063, allocations: 60.84 kB / 479.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.285e-05/0.2064, allocations: 31.98 kB / 479.4 MB, free: 5.812 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003049/0.2067, allocations: 303.1 kB / 479.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2067, allocations: 0 / 479.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001178/0.2079, allocations: 379.8 kB / 480.1 MB, free: 5.145 MB / 346.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 (67): * Single equations (assignments): 64 * 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002071/0.2081, allocations: 131.2 kB / 480.2 MB, free: 5.008 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.2102, allocations: 1.148 MB / 481.3 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2103, allocations: 0 / 481.3 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.2114, allocations: 0.6649 MB / 482 MB, free: 3.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005957/0.212, allocations: 125.8 kB / 482.1 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005658/0.2177, allocations: 3.389 MB / 485.5 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.2182, allocations: 0.944 MB / 486.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007085/0.2189, allocations: 161.1 kB / 486.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003471/0.2193, allocations: 71.41 kB / 486.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2193, allocations: 4 kB / 486.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of Templates: time 0.02906/0.2483, allocations: 20.61 MB / 0.4954 GB, free: 9.738 MB / 378.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)