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.0008402/0.0008401, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009926/0.0009925, allocations: 172.7 kB / 15.95 MB, free: 208 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.55/1.55, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2198/0.2198, allocations: 22.35 MB / 313.4 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003008/0.0003008, allocations: 12 kB / 382 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3309, allocations: 55.98 MB / 437.9 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.002603/0.3335, allocations: 3.227 MB / 441.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.3352, allocations: 1.057 MB / 442.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/0.3354, allocations: 5.625 kB / 442.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.3356, allocations: 58.45 kB / 442.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004264/0.336, allocations: 211.8 kB / 442.5 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.3365, allocations: 164.3 kB / 442.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006106/0.3371, allocations: 0.8448 MB / 443.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005372/0.3376, allocations: 0.5209 MB / 444 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.3379, allocations: 361.5 kB / 444.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005013/0.3385, allocations: 0.5292 MB / 444.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.731e-05/0.3386, allocations: 64.69 kB / 445 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.3388, allocations: 93.62 kB / 445 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.3389, allocations: 241.3 kB / 445.3 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.339, allocations: 143.6 kB / 445.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004964/0.3395, allocations: 0.7456 MB / 446.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3396, allocations: 7.938 kB / 446.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3396, allocations: 3.328 kB / 446.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.3396, allocations: 0 / 446.2 MB, free: 34.68 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.001847/0.3414, allocations: 0.9541 MB / 447.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.3415, allocations: 8.719 kB / 447.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3416, allocations: 69.88 kB / 447.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.3421, allocations: 442.2 kB / 447.6 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.3421, allocations: 37.41 kB / 447.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.974e-05/0.3423, allocations: 64.31 kB / 447.7 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.3434, allocations: 0.7358 MB / 448.5 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3434, allocations: 0 / 448.5 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.3435, allocations: 25.55 kB / 448.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3435, allocations: 11.53 kB / 448.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3447, allocations: 0.8078 MB / 449.3 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004061/0.3487, allocations: 2.385 MB / 451.7 MB, free: 31.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009907/0.3497, allocations: 0.633 MB / 452.3 MB, free: 31.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.3504, allocations: 414.8 kB / 452.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.172e-05/0.3504, allocations: 20.34 kB / 452.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.3505, allocations: 37.78 kB / 452.8 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004665/0.3509, allocations: 142.1 kB / 452.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.384e-06/0.351, allocations: 0 / 452.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.00805/0.359, allocations: 2.333 MB / 455.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.3591, allocations: 61.56 kB / 455.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.3596, allocations: 442.9 kB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.61e-05/0.3597, allocations: 36.7 kB / 455.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3598, allocations: 274.7 kB / 456.1 MB, free: 30 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.36, allocations: 236.6 kB / 456.3 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.281e-05/0.3601, allocations: 15.53 kB / 456.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.839e-05/0.3602, allocations: 371 kB / 456.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.3608, allocations: 336.1 kB / 457 MB, free: 29.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/0.3614, allocations: 476.8 kB / 457.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007029/0.3621, allocations: 397.7 kB / 457.9 MB, free: 28.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3622, allocations: 1.156 kB / 457.9 MB, free: 28.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005032/0.3672, allocations: 1.536 MB / 459.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.3673, allocations: 6.438 kB / 459.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3673, allocations: 3.25 kB / 459.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004327/0.3716, allocations: 0.7636 MB / 460.2 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.3732, allocations: 250.5 kB / 460.4 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005121/0.3783, allocations: 3.819 MB / 464.2 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008357/0.3792, allocations: 29.34 kB / 464.3 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3793, allocations: 46.55 kB / 464.3 MB, free: 25.24 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 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.3796, allocations: 199.2 kB / 464.5 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.3798, allocations: 57.62 kB / 464.6 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.3831, allocations: 1.304 MB / 465.9 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3831, allocations: 9.172 kB / 465.9 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3831, allocations: 5.312 kB / 465.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.3832, allocations: 4.594 kB / 465.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004171/0.3873, allocations: 1.979 MB / 467.9 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.3874, allocations: 0 / 467.9 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.3885, allocations: 214.7 kB / 468.1 MB, free: 23.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002234/0.3907, allocations: 498.5 kB / 468.6 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-05/0.3908, allocations: 28.3 kB / 468.6 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003344/0.3942, allocations: 3.19 MB / 471.8 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3942, allocations: 0 / 471.8 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003851/0.3981, allocations: 1.645 MB / 473.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.3983, allocations: 139.1 kB / 473.6 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.3984, allocations: 19.14 kB / 473.6 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3989, allocations: 27.14 kB / 473.6 MB, free: 19.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.3991, allocations: 64.06 kB / 473.7 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/0.3991, allocations: 26.41 kB / 473.7 MB, free: 19.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005876/0.3997, allocations: 318.8 kB / 474 MB, free: 19.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3998, allocations: 0 / 474 MB, free: 19.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001231/0.401, allocations: 228.8 kB / 474.2 MB, free: 19.62 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 (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 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002368/0.4012, allocations: 143.7 kB / 474.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.4039, allocations: 1.11 MB / 475.5 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.404, allocations: 1.188 kB / 475.5 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.4052, allocations: 0.6417 MB / 476.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.4059, allocations: 130 kB / 476.2 MB, free: 18.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.4103, allocations: 2.412 MB / 478.7 MB, free: 17.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006218/0.4109, allocations: 0.9185 MB / 479.6 MB, free: 16.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007024/0.4116, allocations: 143.4 kB / 479.7 MB, free: 16.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.4119, allocations: 67.2 kB / 479.8 MB, free: 16.57 MB / 350.1 MB Notification: Performance of SimCode: time 1.193e-06/0.4119, allocations: 1.406 kB / 479.8 MB, free: 16.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01697/0.4289, allocations: 11.25 MB / 491 MB, free: 7.43 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)