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_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005771/0.005771, allocations: 100.6 kB / 15.87 MB, free: 5.863 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.001366/0.001366, allocations: 190.4 kB / 16.79 MB, free: 5.805 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.318/1.318, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1957/0.1957, allocations: 22.35 MB / 313 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 71.89 kB / 380.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2694, allocations: 54.94 MB / 435.7 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004349/0.2737, allocations: 3.8 MB / 439.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.2756, allocations: 1.091 MB / 440.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.276, allocations: 6.031 kB / 440.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.2762, allocations: 55.56 kB / 440.7 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004575/0.2767, allocations: 186.7 kB / 440.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.2771, allocations: 192.7 kB / 441 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006642/0.2778, allocations: 0.9314 MB / 442 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005091/0.2783, allocations: 0.544 MB / 442.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.2787, allocations: 375.8 kB / 442.9 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004825/0.2792, allocations: 0.556 MB / 443.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2793, allocations: 69.59 kB / 443.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.2795, allocations: 104.5 kB / 443.6 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001618/0.2797, allocations: 236.3 kB / 443.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.28, allocations: 405.9 kB / 444.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004373/0.2804, allocations: 0.7658 MB / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2804, allocations: 0 / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2804, allocations: 0 / 445 MB, free: 34.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.2804, allocations: 7.938 kB / 445 MB, free: 34.29 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002286/0.2827, allocations: 1.098 MB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2828, allocations: 8.625 kB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.2829, allocations: 76.03 kB / 446.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.2834, allocations: 457.6 kB / 446.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.2835, allocations: 44.81 kB / 446.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.2836, allocations: 54.44 kB / 446.7 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.2847, allocations: 0.7432 MB / 447.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.2847, allocations: 0 / 447.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.081e-05/0.2848, allocations: 18.78 kB / 447.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2848, allocations: 12.59 kB / 447.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.286, allocations: 0.8072 MB / 448.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004309/0.2903, allocations: 2.4 MB / 450.7 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.2914, allocations: 0.6377 MB / 451.3 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006806/0.2921, allocations: 419.4 kB / 451.8 MB, free: 31.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.224e-05/0.2922, allocations: 12.84 kB / 451.8 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.2922, allocations: 41.64 kB / 451.8 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005956/0.2928, allocations: 169.4 kB / 452 MB, free: 30.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.355e-06/0.2928, allocations: 0 / 452 MB, free: 30.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008898/0.3017, allocations: 2.36 MB / 454.3 MB, free: 30.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3018, allocations: 59 kB / 454.4 MB, free: 30 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005154/0.3023, allocations: 455.5 kB / 454.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.017e-05/0.3024, allocations: 40.2 kB / 454.9 MB, free: 29.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.3025, allocations: 269.7 kB / 455.1 MB, free: 29.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.3027, allocations: 236 kB / 455.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.3029, allocations: 161.9 kB / 455.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.303, allocations: 369.8 kB / 455.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005931/0.3036, allocations: 339.3 kB / 456.2 MB, free: 28.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006372/0.3043, allocations: 470 kB / 456.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.3055, allocations: 0.8265 MB / 457.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.3055, allocations: 1.375 kB / 457.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00551/0.311, allocations: 1.574 MB / 459.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.3111, allocations: 8.609 kB / 459.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3111, allocations: 4.25 kB / 459.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004682/0.3158, allocations: 0.7945 MB / 459.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.3172, allocations: 257.1 kB / 460.1 MB, free: 27.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004934/0.3222, allocations: 3.837 MB / 464 MB, free: 24.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007776/0.323, allocations: 34.39 kB / 464 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.702e-05/0.3231, allocations: 45.23 kB / 464.1 MB, free: 24.4 MB / 350.1 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,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003027/0.3234, allocations: 203 kB / 464.3 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3235, allocations: 53.81 kB / 464.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003439/0.327, allocations: 1.317 MB / 465.6 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.327, allocations: 9.062 kB / 465.6 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.327, allocations: 6.375 kB / 465.6 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.327, allocations: 7.875 kB / 465.6 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004091/0.3311, allocations: 2 MB / 467.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3312, allocations: 1.094 kB / 467.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.3323, allocations: 209.3 kB / 467.9 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/0.3347, allocations: 0.5193 MB / 468.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-05/0.3348, allocations: 24.38 kB / 468.4 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.338, allocations: 3.199 MB / 471.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.338, allocations: 128 / 471.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003788/0.3418, allocations: 1.669 MB / 473.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.342, allocations: 141.2 kB / 473.4 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3421, allocations: 23.67 kB / 473.4 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.3426, allocations: 26.81 kB / 473.5 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3428, allocations: 63.25 kB / 473.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.3429, allocations: 24.02 kB / 473.5 MB, free: 18.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003512/0.3432, allocations: 323 kB / 473.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3432, allocations: 0 / 473.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008372/0.3441, allocations: 232.4 kB / 474.1 MB, free: 18.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 (65): * Single equations (assignments): 62 * 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.3443, allocations: 137.2 kB / 474.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.3466, allocations: 1.104 MB / 475.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3466, allocations: 0 / 475.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.3478, allocations: 0.6397 MB / 476 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.3485, allocations: 131.1 kB / 476.1 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.3522, allocations: 2.314 MB / 478.4 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.3526, allocations: 0.923 MB / 479.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000321/0.3529, allocations: 70.72 kB / 479.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3529, allocations: 0 / 479.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Templates: time 0.01483/0.3677, allocations: 15.33 MB / 494.7 MB, free: 2.176 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)