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.0009737/0.0009737, allocations: 100.2 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.0009871/0.0009871, 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.41/1.41, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2447/0.2447, allocations: 22.33 MB / 313.3 MB, free: 13.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003065, allocations: 8 kB / 381.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3218, allocations: 55.97 MB / 437.8 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.002758/0.3246, allocations: 2.978 MB / 440.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3261, allocations: 1.097 MB / 441.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.3263, allocations: 5.75 kB / 441.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.3265, allocations: 63.94 kB / 442 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000378/0.3269, allocations: 214.7 kB / 442.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004046/0.3273, allocations: 163 kB / 442.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000557/0.3279, allocations: 0.5331 MB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005135/0.3284, allocations: 0.4957 MB / 443.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003332/0.3287, allocations: 341 kB / 443.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005128/0.3292, allocations: 0.4918 MB / 444.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.3293, allocations: 65.47 kB / 444.3 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.3296, allocations: 102.2 kB / 444.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.3298, allocations: 222.2 kB / 444.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.3299, allocations: 144.2 kB / 444.7 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000513/0.3304, allocations: 0.7517 MB / 445.5 MB, free: 34.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.3304, allocations: 0 / 445.5 MB, free: 34.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3304, allocations: 0 / 445.5 MB, free: 34.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.3305, allocations: 0 / 445.5 MB, free: 34.9 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.001928/0.3324, allocations: 0.9543 MB / 446.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.3324, allocations: 8.531 kB / 446.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.3326, allocations: 69.38 kB / 446.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.3331, allocations: 443.3 kB / 446.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.3332, allocations: 42.06 kB / 447 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.3333, allocations: 55.09 kB / 447 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3343, allocations: 0.7387 MB / 447.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3343, allocations: 3.938 kB / 447.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-05/0.3344, allocations: 26.64 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.3344, allocations: 14.31 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.3356, allocations: 0.7947 MB / 448.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.3396, allocations: 2.378 MB / 451 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009346/0.3405, allocations: 0.6493 MB / 451.6 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.3406, allocations: 17.72 kB / 451.6 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.3406, allocations: 40.38 kB / 451.7 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005351/0.3412, allocations: 149 kB / 451.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.645e-06/0.3412, allocations: 0 / 451.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008558/0.3497, allocations: 2.328 MB / 454.2 MB, free: 30.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.3498, allocations: 61.97 kB / 454.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.3504, allocations: 445.3 kB / 454.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.3505, allocations: 40.86 kB / 454.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3507, allocations: 264.5 kB / 454.9 MB, free: 30.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3509, allocations: 237.5 kB / 455.2 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.3509, allocations: 15.22 kB / 455.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.351, allocations: 375 kB / 455.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/0.3516, allocations: 335.7 kB / 455.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006631/0.3523, allocations: 469.8 kB / 456.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.353, allocations: 400.2 kB / 456.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3531, allocations: 1.281 kB / 456.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005528/0.3586, allocations: 1.537 MB / 458.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.3587, allocations: 7.578 kB / 458.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3587, allocations: 3.688 kB / 458.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004593/0.3633, allocations: 0.755 MB / 459 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.365, allocations: 251.5 kB / 459.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/0.3703, allocations: 3.859 MB / 463.1 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009145/0.3712, allocations: 30.45 kB / 463.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.806e-05/0.3713, allocations: 41.34 kB / 463.2 MB, free: 25.61 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.0003531/0.3717, allocations: 198.9 kB / 463.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3718, allocations: 59.12 kB / 463.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.3753, allocations: 1.3 MB / 464.8 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.3754, allocations: 9.562 kB / 464.8 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3754, allocations: 2.25 kB / 464.8 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.3754, allocations: 8.266 kB / 464.8 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.3765, allocations: 0.7248 MB / 465.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3765, allocations: 0 / 465.5 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.3777, allocations: 215.4 kB / 465.7 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002411/0.3801, allocations: 0.5013 MB / 466.2 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.3802, allocations: 24.61 kB / 466.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.3835, allocations: 3.211 MB / 469.5 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3835, allocations: 4.797 kB / 469.5 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003748/0.3872, allocations: 1.638 MB / 471.1 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.3875, allocations: 141.9 kB / 471.2 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3876, allocations: 20.56 kB / 471.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.3881, allocations: 27 kB / 471.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.3882, allocations: 63.66 kB / 471.4 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.3883, allocations: 23.08 kB / 471.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003726/0.3887, allocations: 319.4 kB / 471.7 MB, free: 20.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3887, allocations: 3.938 kB / 471.7 MB, free: 20.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000928/0.3896, allocations: 231.2 kB / 471.9 MB, free: 20.49 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.0002103/0.3898, allocations: 134 kB / 472 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.3922, allocations: 1.109 MB / 473.2 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3922, allocations: 0 / 473.2 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.3935, allocations: 0.6375 MB / 473.8 MB, free: 19.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.3941, allocations: 126.9 kB / 473.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.3982, allocations: 2.4 MB / 476.3 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004606/0.3987, allocations: 0.9363 MB / 477.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006473/0.3993, allocations: 147.9 kB / 477.4 MB, free: 17.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.3996, allocations: 63.98 kB / 477.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3996, allocations: 0 / 477.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01883/0.4184, allocations: 11.23 MB / 488.7 MB, free: 9.695 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: