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.001298/0.001298, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001468/0.001468, allocations: 191.7 kB / 16.25 MB, free: 6.637 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.334/1.334, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2114/0.2114, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.89 kB / 380.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2887, allocations: 54.94 MB / 435.3 MB, free: 39.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.00358/0.2924, allocations: 3.803 MB / 439.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.2938, allocations: 1.088 MB / 440.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.294, allocations: 5.188 kB / 440.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.2942, allocations: 53.56 kB / 440.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003656/0.2946, allocations: 184.5 kB / 440.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004206/0.295, allocations: 186 kB / 440.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005466/0.2956, allocations: 0.8531 MB / 441.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005077/0.2961, allocations: 0.5917 MB / 442 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.2964, allocations: 407.8 kB / 442.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004882/0.2969, allocations: 0.5825 MB / 443 MB, free: 35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.297, allocations: 98.16 kB / 443.1 MB, free: 35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.2972, allocations: 124.8 kB / 443.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.2974, allocations: 270.5 kB / 443.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002816/0.2977, allocations: 424 kB / 443.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006339/0.2983, allocations: 1.029 MB / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2983, allocations: 0 / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2983, allocations: 0 / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.2984, allocations: 3.938 kB / 444.9 MB, free: 34.21 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.002378/0.3007, allocations: 1.105 MB / 446 MB, free: 33.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3008, allocations: 14.75 kB / 446 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.301, allocations: 74.66 kB / 446.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.3014, allocations: 449.5 kB / 446.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.3015, allocations: 45 kB / 446.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3016, allocations: 50.5 kB / 446.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3027, allocations: 0.7481 MB / 447.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.3028, allocations: 0 / 447.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.282e-05/0.3028, allocations: 21.84 kB / 447.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3029, allocations: 12.12 kB / 447.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.3042, allocations: 0.8032 MB / 448.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004305/0.3085, allocations: 2.403 MB / 450.6 MB, free: 31.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.3096, allocations: 0.6386 MB / 451.3 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007381/0.3103, allocations: 422.5 kB / 451.7 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.495e-05/0.3104, allocations: 15.67 kB / 451.7 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.3104, allocations: 42.38 kB / 451.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006116/0.3111, allocations: 164.3 kB / 451.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.876e-06/0.3111, allocations: 0 / 451.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.009393/0.3205, allocations: 2.374 MB / 454.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.3206, allocations: 57.97 kB / 454.3 MB, free: 29.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006338/0.3212, allocations: 451 kB / 454.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.3213, allocations: 40.02 kB / 454.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.3215, allocations: 260.4 kB / 455.1 MB, free: 29.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.3217, allocations: 241.9 kB / 455.3 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.322, allocations: 164.3 kB / 455.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3221, allocations: 372.8 kB / 455.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006212/0.3227, allocations: 335.8 kB / 456.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006781/0.3234, allocations: 467.6 kB / 456.6 MB, free: 28.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.3247, allocations: 0.8262 MB / 457.4 MB, free: 28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3248, allocations: 1.375 kB / 457.4 MB, free: 28 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005796/0.3306, allocations: 1.567 MB / 459 MB, free: 27.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.3306, allocations: 7.25 kB / 459 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3306, allocations: 2.812 kB / 459 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004894/0.3355, allocations: 0.8075 MB / 459.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.3371, allocations: 260.8 kB / 460.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00535/0.3424, allocations: 4.083 MB / 464.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008552/0.3433, allocations: 30.34 kB / 464.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.702e-05/0.3434, allocations: 41.16 kB / 464.2 MB, free: 24.11 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.0003342/0.3438, allocations: 202.6 kB / 464.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.3439, allocations: 62.75 kB / 464.5 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003594/0.3475, allocations: 1.304 MB / 465.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3475, allocations: 16.66 kB / 465.8 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.3475, allocations: 2.906 kB / 465.8 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.3476, allocations: 4.688 kB / 465.8 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004172/0.3517, allocations: 2 MB / 467.8 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3518, allocations: 4.609 kB / 467.8 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.353, allocations: 205.6 kB / 468 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/0.3556, allocations: 0.5172 MB / 468.5 MB, free: 22.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.592e-05/0.3557, allocations: 23.09 kB / 468.6 MB, free: 22.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003191/0.3589, allocations: 3.411 MB / 472 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3589, allocations: 112 / 472 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.3627, allocations: 1.664 MB / 473.6 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3629, allocations: 137.2 kB / 473.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.363, allocations: 20.78 kB / 473.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.3635, allocations: 27.83 kB / 473.8 MB, free: 18.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.3637, allocations: 66.61 kB / 473.9 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.219e-05/0.3638, allocations: 27.08 kB / 473.9 MB, free: 18.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003761/0.3642, allocations: 325.7 kB / 474.2 MB, free: 18.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3642, allocations: 1.188 kB / 474.2 MB, free: 18.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000852/0.365, allocations: 231 kB / 474.5 MB, free: 18.27 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.0001956/0.3652, allocations: 135.2 kB / 474.6 MB, free: 18.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002798/0.368, allocations: 1.216 MB / 475.8 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3681, allocations: 0 / 475.8 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001254/0.3693, allocations: 0.6426 MB / 476.4 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000657/0.37, allocations: 140 kB / 476.6 MB, free: 17.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.3737, allocations: 2.284 MB / 478.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.3742, allocations: 0.9152 MB / 479.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005696/0.3748, allocations: 143.3 kB / 479.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.375, allocations: 67.89 kB / 480 MB, free: 15.22 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.375, allocations: 3.938 kB / 480 MB, free: 15.22 MB / 350.1 MB Notification: Performance of Templates: time 0.01619/0.3912, allocations: 12.39 MB / 492.4 MB, free: 4.238 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)