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.00106/0.001061, 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.001216/0.001216, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2229/0.2229, allocations: 22.36 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 59.91 kB / 380.3 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2855, allocations: 54.94 MB / 435.3 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004077/0.2897, allocations: 3.921 MB / 439.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.2913, allocations: 1.132 MB / 440.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.2915, allocations: 5.969 kB / 440.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.2918, allocations: 56.72 kB / 440.4 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000421/0.2922, allocations: 185.2 kB / 440.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005145/0.2927, allocations: 203 kB / 440.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006987/0.2934, allocations: 0.9111 MB / 441.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000604/0.294, allocations: 0.6176 MB / 442.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003821/0.2944, allocations: 433.2 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.295, allocations: 0.6018 MB / 443.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.2951, allocations: 100.6 kB / 443.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.2953, allocations: 128.8 kB / 443.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.2955, allocations: 288.8 kB / 443.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.2958, allocations: 454.6 kB / 444.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006401/0.2964, allocations: 1.077 MB / 445.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2964, allocations: 0 / 445.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2964, allocations: 0 / 445.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.2964, allocations: 4 kB / 445.3 MB, free: 33.77 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.002399/0.2988, allocations: 1.172 MB / 446.5 MB, free: 33.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2989, allocations: 9.688 kB / 446.5 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.299, allocations: 77 kB / 446.6 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.2996, allocations: 488.6 kB / 447.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.2996, allocations: 39.53 kB / 447.1 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2997, allocations: 56.44 kB / 447.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.3009, allocations: 0.7625 MB / 447.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3009, allocations: 3.938 kB / 447.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.637e-05/0.301, allocations: 21.28 kB / 447.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.301, allocations: 26.92 kB / 448 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.3023, allocations: 0.8218 MB / 448.8 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.3059, allocations: 2.085 MB / 450.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009208/0.3068, allocations: 0.6684 MB / 451.5 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005681/0.3074, allocations: 414.3 kB / 452 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.677e-05/0.3075, allocations: 15.02 kB / 452 MB, free: 30.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.3075, allocations: 41.88 kB / 452 MB, free: 30.51 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000585/0.3081, allocations: 164.7 kB / 452.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.244e-06/0.3081, allocations: 3.938 kB / 452.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009699/0.3178, allocations: 2.551 MB / 454.7 MB, free: 29.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3179, allocations: 58.31 kB / 454.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006122/0.3185, allocations: 495.2 kB / 455.3 MB, free: 29.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.418e-05/0.3186, allocations: 35.95 kB / 455.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.3187, allocations: 295 kB / 455.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.3189, allocations: 250.8 kB / 455.8 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000278/0.3192, allocations: 166.2 kB / 456 MB, free: 28.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.599e-05/0.3193, allocations: 381.2 kB / 456.4 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006333/0.32, allocations: 363.6 kB / 456.7 MB, free: 28.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007028/0.3207, allocations: 0.4898 MB / 457.2 MB, free: 27.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.322, allocations: 0.8729 MB / 458.1 MB, free: 27.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.322, allocations: 1.125 kB / 458.1 MB, free: 27.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005639/0.3276, allocations: 1.656 MB / 459.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3277, allocations: 6.375 kB / 459.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3277, allocations: 3.125 kB / 459.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004275/0.332, allocations: 0.7366 MB / 460.5 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.3335, allocations: 248.4 kB / 460.7 MB, free: 26.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00585/0.3394, allocations: 4.146 MB / 464.9 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008481/0.3402, allocations: 35.05 kB / 464.9 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.133e-05/0.3403, allocations: 45.91 kB / 465 MB, free: 23.52 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 {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003385/0.3407, allocations: 208.1 kB / 465.2 MB, free: 23.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.3408, allocations: 60.25 kB / 465.2 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003755/0.3445, allocations: 1.41 MB / 466.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.3446, allocations: 13.67 kB / 466.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3446, allocations: 2.219 kB / 466.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.3446, allocations: 4.547 kB / 466.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.3458, allocations: 0.8031 MB / 467.4 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3458, allocations: 3.938 kB / 467.5 MB, free: 22.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.3471, allocations: 211.1 kB / 467.7 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.3493, allocations: 483.6 kB / 468.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.644e-05/0.3494, allocations: 29.56 kB / 468.2 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.3529, allocations: 3.469 MB / 471.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3529, allocations: 1.094 kB / 471.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/0.3572, allocations: 1.802 MB / 473.4 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.3574, allocations: 143.6 kB / 473.6 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3575, allocations: 19.95 kB / 473.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000551/0.3581, allocations: 39.78 kB / 473.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.3583, allocations: 62.17 kB / 473.7 MB, free: 18.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.3583, allocations: 28.61 kB / 473.7 MB, free: 18.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.3588, allocations: 343.6 kB / 474.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3588, allocations: 1.375 kB / 474.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009559/0.3597, allocations: 242.9 kB / 474.3 MB, free: 18.04 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 (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 {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002045/0.3599, allocations: 141.6 kB / 474.4 MB, free: 17.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002925/0.3629, allocations: 1.287 MB / 475.7 MB, free: 17.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3629, allocations: 0.9688 kB / 475.7 MB, free: 17.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.3642, allocations: 0.692 MB / 476.4 MB, free: 17.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006701/0.3649, allocations: 140 kB / 476.5 MB, free: 17.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.3687, allocations: 2.394 MB / 478.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.3691, allocations: 0.9309 MB / 479.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005592/0.3697, allocations: 150.4 kB / 480 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.3699, allocations: 68.58 kB / 480.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3699, allocations: 0 / 480.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of Templates: time 0.01679/0.3867, allocations: 13.08 MB / 493.2 MB, free: 3.371 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (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)