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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.0009982, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009931/0.0009932, allocations: 177.3 kB / 15.95 MB, free: 216 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.472/1.472, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2435/0.2435, allocations: 22.33 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003303, allocations: 8 kB / 381.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.312, allocations: 55.98 MB / 437.8 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003053/0.3151, allocations: 3.087 MB / 440.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.3177, allocations: 1.128 MB / 442 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.3181, allocations: 9.625 kB / 442 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.3183, allocations: 63.03 kB / 442.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005947/0.3189, allocations: 235.3 kB / 442.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.3195, allocations: 172.5 kB / 442.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006329/0.3201, allocations: 0.5656 MB / 443.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005756/0.3207, allocations: 0.5009 MB / 443.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.321, allocations: 374.2 kB / 443.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.3215, allocations: 0.5181 MB / 444.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.35e-05/0.3216, allocations: 68.75 kB / 444.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.3218, allocations: 96.98 kB / 444.6 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.3219, allocations: 233.2 kB / 444.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.322, allocations: 146.6 kB / 445 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004989/0.3225, allocations: 0.7915 MB / 445.8 MB, free: 34.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.3225, allocations: 4 kB / 445.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3226, allocations: 0 / 445.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3226, allocations: 0 / 445.8 MB, free: 34.65 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002293/0.3249, allocations: 1.022 MB / 446.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3249, allocations: 8.656 kB / 446.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.3251, allocations: 77.19 kB / 446.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005949/0.3257, allocations: 469 kB / 447.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.3258, allocations: 37.72 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.3259, allocations: 65.02 kB / 447.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.327, allocations: 0.7521 MB / 448.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.327, allocations: 0 / 448.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-05/0.3271, allocations: 26.16 kB / 448.2 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3271, allocations: 11.5 kB / 448.2 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.3283, allocations: 0.8274 MB / 449.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00363/0.3319, allocations: 2.073 MB / 451.1 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000902/0.3329, allocations: 0.6743 MB / 451.8 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.3329, allocations: 13.8 kB / 451.8 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.333, allocations: 37.75 kB / 451.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005055/0.3335, allocations: 153.2 kB / 452 MB, free: 31.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.224e-06/0.3335, allocations: 0 / 452 MB, free: 31.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.008917/0.3424, allocations: 2.51 MB / 454.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.3425, allocations: 66.25 kB / 454.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005279/0.343, allocations: 499.1 kB / 455.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/0.3431, allocations: 40.77 kB / 455.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3432, allocations: 290.2 kB / 455.4 MB, free: 30.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3434, allocations: 244.4 kB / 455.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/0.3434, allocations: 15.19 kB / 455.7 MB, free: 29.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.755e-05/0.3435, allocations: 376.3 kB / 456 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/0.3441, allocations: 358.6 kB / 456.4 MB, free: 29.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006231/0.3447, allocations: 498.8 kB / 456.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006824/0.3454, allocations: 423.7 kB / 457.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3454, allocations: 1.062 kB / 457.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005337/0.3508, allocations: 1.623 MB / 458.9 MB, free: 28.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3508, allocations: 7.953 kB / 458.9 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3508, allocations: 2.719 kB / 458.9 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0041/0.3549, allocations: 0.6833 MB / 459.6 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/0.3564, allocations: 257.3 kB / 459.8 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005334/0.3617, allocations: 3.924 MB / 463.8 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00079/0.3625, allocations: 35.14 kB / 463.8 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.3627, allocations: 42.3 kB / 463.8 MB, free: 25.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003499/0.363, allocations: 208.5 kB / 464 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.3632, allocations: 61.06 kB / 464.1 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003913/0.3671, allocations: 1.4 MB / 465.5 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.3671, allocations: 9.406 kB / 465.5 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.3671, allocations: 1.062 kB / 465.5 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.3672, allocations: 6.531 kB / 465.5 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.3684, allocations: 0.7979 MB / 466.3 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3684, allocations: 0.6562 kB / 466.3 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.3696, allocations: 222.7 kB / 466.5 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/0.372, allocations: 444.6 kB / 467 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.3721, allocations: 29.58 kB / 467 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.3755, allocations: 3.275 MB / 470.3 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3755, allocations: 4.812 kB / 470.3 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00395/0.3795, allocations: 1.77 MB / 472 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.3796, allocations: 149 kB / 472.2 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.3798, allocations: 19.83 kB / 472.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005354/0.3803, allocations: 31.73 kB / 472.2 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.3805, allocations: 71.44 kB / 472.3 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.225e-05/0.3806, allocations: 25 kB / 472.3 MB, free: 20.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004167/0.381, allocations: 343.8 kB / 472.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.381, allocations: 0 / 472.7 MB, free: 19.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008637/0.3819, allocations: 245.3 kB / 472.9 MB, free: 19.95 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 (67): * Single equations (assignments): 64 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001903/0.3821, allocations: 132.6 kB / 473 MB, free: 19.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.3847, allocations: 1.166 MB / 474.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3847, allocations: 1.25 kB / 474.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.3861, allocations: 0.6897 MB / 474.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.3867, allocations: 131.5 kB / 475 MB, free: 18.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.3907, allocations: 2.497 MB / 477.5 MB, free: 17.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.3913, allocations: 0.9539 MB / 478.5 MB, free: 16.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.3919, allocations: 150.3 kB / 478.6 MB, free: 16.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.3921, allocations: 64.22 kB / 478.7 MB, free: 16.8 MB / 350.1 MB Notification: Performance of SimCode: time 2.094e-06/0.3921, allocations: 3.938 kB / 478.7 MB, free: 16.8 MB / 350.1 MB Notification: Performance of Templates: time 0.01886/0.411, allocations: 11.74 MB / 490.4 MB, free: 7.906 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: