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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001385/0.001386, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2795/0.2795, allocations: 22.35 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003967, allocations: 11.94 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3264, allocations: 55.97 MB / 437.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.00271/0.3292, allocations: 2.783 MB / 440.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3305, allocations: 0.9315 MB / 441.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.3307, allocations: 9.719 kB / 441.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.3308, allocations: 49.88 kB / 441.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.3312, allocations: 186.3 kB / 441.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.3315, allocations: 139.9 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005267/0.3321, allocations: 0.7125 MB / 442.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003774/0.3325, allocations: 332.6 kB / 443 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.3327, allocations: 265.7 kB / 443.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003723/0.3331, allocations: 393.2 kB / 443.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.498e-05/0.3332, allocations: 45.03 kB / 443.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.3333, allocations: 69.78 kB / 443.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.3335, allocations: 188.4 kB / 444 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3336, allocations: 119.4 kB / 444.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.334, allocations: 0.5681 MB / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.334, allocations: 0 / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.334, allocations: 0 / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.334, allocations: 0 / 444.7 MB, free: 35.48 MB / 350.1 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.001525/0.3356, allocations: 0.8155 MB / 445.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3356, allocations: 9.625 kB / 445.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.3357, allocations: 61.47 kB / 445.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.3361, allocations: 377.1 kB / 445.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.3362, allocations: 36.28 kB / 446 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.693e-05/0.3362, allocations: 49.22 kB / 446 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.3371, allocations: 0.5408 MB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.3371, allocations: 0 / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.3371, allocations: 18.95 kB / 446.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3372, allocations: 8.812 kB / 446.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/0.338, allocations: 0.5412 MB / 447.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002679/0.3407, allocations: 1.538 MB / 448.7 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007872/0.3415, allocations: 0.4893 MB / 449.1 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.342, allocations: 272.2 kB / 449.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.342, allocations: 7.547 kB / 449.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.342, allocations: 41.91 kB / 449.5 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002262/0.3423, allocations: 57.08 kB / 449.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.633e-06/0.3423, allocations: 0 / 449.5 MB, free: 32.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002522/0.3448, allocations: 1.092 MB / 450.6 MB, free: 32.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.3449, allocations: 54.62 kB / 450.7 MB, free: 32.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.3452, allocations: 387.4 kB / 451 MB, free: 32.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.3453, allocations: 36.42 kB / 451.1 MB, free: 32.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3454, allocations: 238.5 kB / 451.3 MB, free: 31.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3455, allocations: 183.5 kB / 451.5 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.3456, allocations: 14.62 kB / 451.5 MB, free: 31.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.3457, allocations: 360.3 kB / 451.9 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.3461, allocations: 251 kB / 452.1 MB, free: 31.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.3465, allocations: 364.2 kB / 452.5 MB, free: 31.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004672/0.347, allocations: 307.5 kB / 452.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.347, allocations: 0 / 452.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001654/0.3487, allocations: 0.8461 MB / 453.6 MB, free: 30.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.3487, allocations: 7.516 kB / 453.6 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3487, allocations: 2.969 kB / 453.6 MB, free: 30.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009558/0.3497, allocations: 176.3 kB / 453.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.3508, allocations: 241.9 kB / 454 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005849/0.3514, allocations: 1.162 MB / 455.2 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.3519, allocations: 31.98 kB / 455.2 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.3519, allocations: 28.17 kB / 455.2 MB, free: 29.51 MB / 350.1 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.0002092/0.3522, allocations: 188.2 kB / 455.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.016e-05/0.3522, allocations: 53.34 kB / 455.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.354, allocations: 0.8191 MB / 456.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.354, allocations: 6 kB / 456.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.354, allocations: 0 / 456.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.3541, allocations: 3.922 kB / 456.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.3565, allocations: 1.471 MB / 457.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3566, allocations: 0 / 457.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000991/0.3576, allocations: 195.4 kB / 458 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008303/0.3584, allocations: 175.9 kB / 458.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.216e-05/0.3585, allocations: 23.08 kB / 458.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000602/0.3591, allocations: 1.158 MB / 459.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3591, allocations: 3.938 kB / 459.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.3613, allocations: 1.124 MB / 460.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001974/0.3615, allocations: 125.6 kB / 460.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.249e-05/0.3616, allocations: 16.77 kB / 460.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003777/0.362, allocations: 22.81 kB / 460.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.3621, allocations: 53.28 kB / 460.7 MB, free: 26.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.3621, allocations: 16.78 kB / 460.7 MB, free: 26.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003208/0.3625, allocations: 272.6 kB / 460.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3625, allocations: 0 / 460.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006579/0.3631, allocations: 168.7 kB / 461.1 MB, free: 26.18 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 (56): * Single equations (assignments): 54 * 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.0002079/0.3634, allocations: 125.1 kB / 461.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.3649, allocations: 0.6767 MB / 461.9 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3649, allocations: 0 / 461.9 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007807/0.3657, allocations: 359.5 kB / 462.3 MB, free: 25.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006002/0.3663, allocations: 114.4 kB / 462.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.37, allocations: 2.129 MB / 464.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.3704, allocations: 0.864 MB / 465.4 MB, free: 23.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005656/0.3709, allocations: 128.5 kB / 465.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.3711, allocations: 55.72 kB / 465.5 MB, free: 23.74 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3711, allocations: 0 / 465.5 MB, free: 23.74 MB / 350.1 MB Notification: Performance of Templates: time 0.01706/0.3882, allocations: 8.046 MB / 473.6 MB, free: 22.46 MB / 350.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)