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.0008804/0.0008802, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009179/0.0009177, allocations: 182.7 kB / 16.92 MB, free: 6.918 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.314/1.314, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2165/0.2165, allocations: 22.34 MB / 314.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003355, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 55.98 MB / 439.3 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.002748/0.2575, allocations: 3.406 MB / 442.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2593, allocations: 1.079 MB / 443.7 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000371/0.2597, allocations: 9.625 kB / 443.7 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.2599, allocations: 52.55 kB / 443.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005061/0.2604, allocations: 179.9 kB / 444 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005127/0.261, allocations: 199.5 kB / 444.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000764/0.2617, allocations: 0.9307 MB / 445.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006021/0.2624, allocations: 0.5219 MB / 445.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000437/0.2628, allocations: 367.8 kB / 446 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006434/0.2635, allocations: 0.5423 MB / 446.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.2636, allocations: 66.19 kB / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.2638, allocations: 101.2 kB / 446.7 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.264, allocations: 239.2 kB / 446.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003133/0.2643, allocations: 414.2 kB / 447.3 MB, free: 34.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.2648, allocations: 0.7537 MB / 448.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2648, allocations: 0 / 448.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2648, allocations: 0 / 448.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.2648, allocations: 0 / 448.1 MB, free: 34.26 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.001974/0.2668, allocations: 0.9519 MB / 449 MB, free: 33.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2668, allocations: 12.59 kB / 449 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.267, allocations: 74.95 kB / 449.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.2675, allocations: 460.8 kB / 449.6 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.2675, allocations: 40.94 kB / 449.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.2677, allocations: 55.66 kB / 449.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2688, allocations: 0.7553 MB / 450.4 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2688, allocations: 3.938 kB / 450.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.416e-05/0.2689, allocations: 20.12 kB / 450.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.2689, allocations: 12.53 kB / 450.5 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.2702, allocations: 0.8025 MB / 451.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004066/0.2742, allocations: 2.382 MB / 453.6 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009798/0.2752, allocations: 0.6353 MB / 454.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006867/0.2759, allocations: 414.2 kB / 454.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/0.276, allocations: 15.78 kB / 454.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.276, allocations: 37.97 kB / 454.7 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005485/0.2766, allocations: 149.9 kB / 454.9 MB, free: 30.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.605e-06/0.2766, allocations: 0 / 454.9 MB, free: 30.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.009372/0.2859, allocations: 2.341 MB / 457.2 MB, free: 30.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.286, allocations: 59.41 kB / 457.3 MB, free: 30.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.2865, allocations: 451.3 kB / 457.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.615e-05/0.2866, allocations: 36.67 kB / 457.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.2867, allocations: 265.7 kB / 458 MB, free: 29.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.2869, allocations: 240.4 kB / 458.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.287, allocations: 71.41 kB / 458.3 MB, free: 29.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.867e-05/0.2871, allocations: 369 kB / 458.7 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006016/0.2877, allocations: 337 kB / 459 MB, free: 28.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006667/0.2884, allocations: 471.6 kB / 459.5 MB, free: 28.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.2897, allocations: 0.8265 MB / 460.3 MB, free: 28.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.2897, allocations: 9.375 kB / 460.3 MB, free: 28.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005635/0.2954, allocations: 1.542 MB / 461.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.2954, allocations: 7.281 kB / 461.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.2955, allocations: 4.297 kB / 461.9 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00478/0.3002, allocations: 0.7615 MB / 462.6 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.3017, allocations: 248.6 kB / 462.9 MB, free: 27.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005043/0.3068, allocations: 3.835 MB / 466.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000808/0.3076, allocations: 33.45 kB / 466.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.3077, allocations: 43.36 kB / 466.8 MB, free: 24.48 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.0003083/0.3081, allocations: 204.7 kB / 467 MB, free: 24.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3082, allocations: 55.69 kB / 467 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.3117, allocations: 1.303 MB / 468.3 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.3118, allocations: 8.312 kB / 468.3 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.3118, allocations: 2.719 kB / 468.3 MB, free: 23.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.3118, allocations: 8.391 kB / 468.3 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.316, allocations: 1.978 MB / 470.3 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.316, allocations: 0.7031 kB / 470.3 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/0.3172, allocations: 210.9 kB / 470.5 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002515/0.3197, allocations: 0.4899 MB / 471 MB, free: 22.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.3198, allocations: 27.62 kB / 471 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003022/0.3228, allocations: 3.202 MB / 474.2 MB, free: 19.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3229, allocations: 1.656 kB / 474.2 MB, free: 19.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003887/0.3268, allocations: 1.637 MB / 475.9 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.327, allocations: 142.2 kB / 476 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3271, allocations: 19.5 kB / 476 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005228/0.3276, allocations: 26.52 kB / 476.1 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.3278, allocations: 59.73 kB / 476.1 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.673e-05/0.3278, allocations: 27.17 kB / 476.2 MB, free: 19.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.3282, allocations: 327 kB / 476.5 MB, free: 18.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3282, allocations: 0 / 476.5 MB, free: 18.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008207/0.329, allocations: 231 kB / 476.7 MB, free: 18.87 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.0001865/0.3292, allocations: 132.8 kB / 476.8 MB, free: 18.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002374/0.3316, allocations: 1.108 MB / 477.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3316, allocations: 64 / 477.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/0.3329, allocations: 0.6399 MB / 478.6 MB, free: 18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007051/0.3337, allocations: 134.9 kB / 478.7 MB, free: 17.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.3375, allocations: 2.484 MB / 481.2 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.3381, allocations: 0.9191 MB / 482.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.3385, allocations: 68.09 kB / 482.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3385, allocations: 4 kB / 482.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01584/0.3544, allocations: 15.27 MB / 497.4 MB, free: 2.031 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)