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.0008327/0.0008327, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 173 kB / 16.92 MB, free: 6.652 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.332/1.332, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2078/0.2078, allocations: 22.34 MB / 314.4 MB, free: 13.01 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003506, allocations: 11.98 kB / 383.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2735, allocations: 55.97 MB / 439.2 MB, free: 39.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002258/0.2758, allocations: 2.917 MB / 442.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.2771, allocations: 0.9684 MB / 443.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2773, allocations: 13.97 kB / 443.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.2774, allocations: 40.8 kB / 443.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003191/0.2778, allocations: 161.7 kB / 443.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.2782, allocations: 160 kB / 443.5 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.2787, allocations: 0.7922 MB / 444.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.2791, allocations: 350.3 kB / 444.6 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.2793, allocations: 267.6 kB / 444.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.2798, allocations: 398.8 kB / 445.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.2798, allocations: 44.28 kB / 445.3 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.28, allocations: 75.42 kB / 445.4 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2801, allocations: 182.1 kB / 445.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.2803, allocations: 328.4 kB / 445.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.2807, allocations: 0.5654 MB / 446.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.2807, allocations: 0 / 446.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2807, allocations: 0 / 446.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2807, allocations: 2.469 kB / 446.5 MB, free: 35.32 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.001506/0.2822, allocations: 0.8141 MB / 447.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2823, allocations: 15.5 kB / 447.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2824, allocations: 54.88 kB / 447.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.2828, allocations: 389.7 kB / 447.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.2828, allocations: 37.03 kB / 447.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-05/0.2829, allocations: 45.41 kB / 447.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008402/0.2837, allocations: 0.5448 MB / 448.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2838, allocations: 0 / 448.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/0.2838, allocations: 14.94 kB / 448.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.2838, allocations: 11.88 kB / 448.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008512/0.2847, allocations: 0.5452 MB / 448.9 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.2873, allocations: 1.541 MB / 450.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007724/0.2881, allocations: 498.8 kB / 451 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/0.2885, allocations: 263.8 kB / 451.2 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.2886, allocations: 13.8 kB / 451.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.507e-05/0.2886, allocations: 35 kB / 451.3 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002316/0.2889, allocations: 63.23 kB / 451.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/0.2889, allocations: 0 / 451.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002736/0.2916, allocations: 1.091 MB / 452.4 MB, free: 32.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.2916, allocations: 58.41 kB / 452.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003439/0.292, allocations: 394.2 kB / 452.9 MB, free: 32.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.2921, allocations: 32.86 kB / 452.9 MB, free: 31.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.2922, allocations: 242.6 kB / 453.1 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.2923, allocations: 183.7 kB / 453.3 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.2924, allocations: 60.55 kB / 453.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.391e-05/0.2924, allocations: 359.8 kB / 453.7 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.2929, allocations: 258.6 kB / 454 MB, free: 31.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004542/0.2933, allocations: 367.8 kB / 454.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008618/0.2942, allocations: 0.6286 MB / 455 MB, free: 30.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2942, allocations: 0 / 455 MB, free: 30.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001825/0.296, allocations: 0.8504 MB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2961, allocations: 10.66 kB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.2961, allocations: 4.031 kB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.2973, allocations: 173.9 kB / 456 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.2985, allocations: 247.7 kB / 456.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005694/0.2991, allocations: 1.153 MB / 457.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005095/0.2996, allocations: 30.64 kB / 457.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.285e-05/0.2997, allocations: 35.83 kB / 457.4 MB, free: 29.08 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002208/0.2999, allocations: 182.7 kB / 457.6 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.3, allocations: 44.66 kB / 457.7 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/0.3019, allocations: 0.8215 MB / 458.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3019, allocations: 10.23 kB / 458.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3019, allocations: 0 / 458.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3019, allocations: 8.156 kB / 458.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/0.3044, allocations: 1.462 MB / 460 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3044, allocations: 1.188 kB / 460 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.3054, allocations: 199.1 kB / 460.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009233/0.3064, allocations: 176.8 kB / 460.3 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.383e-05/0.3064, allocations: 21.86 kB / 460.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005516/0.307, allocations: 1.16 MB / 461.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.307, allocations: 1.125 kB / 461.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.3091, allocations: 1.127 MB / 462.7 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.3093, allocations: 129.4 kB / 462.8 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.444e-05/0.3094, allocations: 19.61 kB / 462.8 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003932/0.3098, allocations: 21.8 kB / 462.8 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.3099, allocations: 42.45 kB / 462.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.3099, allocations: 19.12 kB / 462.9 MB, free: 25.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.3102, allocations: 271.6 kB / 463.1 MB, free: 25.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3102, allocations: 1.031 kB / 463.1 MB, free: 25.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005577/0.3108, allocations: 173.2 kB / 463.3 MB, free: 25.76 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001708/0.311, allocations: 127.9 kB / 463.4 MB, free: 25.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.3125, allocations: 0.6782 MB / 464.1 MB, free: 25.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3125, allocations: 0.75 kB / 464.1 MB, free: 25.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.3133, allocations: 365.2 kB / 464.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.3139, allocations: 113.2 kB / 464.6 MB, free: 25.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.3173, allocations: 2.198 MB / 466.8 MB, free: 23.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.3176, allocations: 0.8626 MB / 467.6 MB, free: 23.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002755/0.3179, allocations: 63.89 kB / 467.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3179, allocations: 0 / 467.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of Templates: time 0.01526/0.3332, allocations: 10.49 MB / 478.2 MB, free: 20.12 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)