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.001319/0.001319, allocations: 100.1 kB / 15.88 MB, free: 12 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.001332/0.001332, allocations: 200 kB / 16.79 MB, free: 6.828 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: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1904/0.1904, allocations: 22.38 MB / 313 MB, free: 12.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 380.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.233, allocations: 54.94 MB / 435.7 MB, free: 39.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003483/0.2365, allocations: 3.926 MB / 439.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.2379, allocations: 1.12 MB / 440.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.2381, allocations: 10.25 kB / 440.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.2383, allocations: 58.78 kB / 440.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.2387, allocations: 187.5 kB / 441 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.2391, allocations: 216.8 kB / 441.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005758/0.2397, allocations: 0.9839 MB / 442.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004867/0.2402, allocations: 0.5647 MB / 442.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.2405, allocations: 390.3 kB / 443.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000482/0.241, allocations: 0.5869 MB / 443.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.2411, allocations: 73.09 kB / 443.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.2413, allocations: 102.8 kB / 443.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.2415, allocations: 258.2 kB / 444.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002983/0.2418, allocations: 418.9 kB / 444.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.2423, allocations: 0.8087 MB / 445.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2423, allocations: 0 / 445.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.2423, allocations: 0 / 445.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.2423, allocations: 0 / 445.4 MB, free: 33.91 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.00237/0.2447, allocations: 1.17 MB / 446.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2448, allocations: 12.62 kB / 446.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.2449, allocations: 84.36 kB / 446.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.2454, allocations: 486.4 kB / 447.1 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.2455, allocations: 44.72 kB / 447.2 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.2456, allocations: 55.78 kB / 447.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.2468, allocations: 0.7661 MB / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2468, allocations: 0 / 448 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-05/0.2469, allocations: 25.97 kB / 448 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.2469, allocations: 13.19 kB / 448 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.2481, allocations: 0.8231 MB / 448.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.2517, allocations: 2.085 MB / 450.9 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009222/0.2527, allocations: 0.6794 MB / 451.6 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005604/0.2533, allocations: 409.4 kB / 452 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.858e-05/0.2533, allocations: 8.422 kB / 452 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.2533, allocations: 50.25 kB / 452.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005794/0.2539, allocations: 162.2 kB / 452.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.114e-06/0.2539, allocations: 3.938 kB / 452.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009767/0.2637, allocations: 2.55 MB / 454.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.589e-05/0.2638, allocations: 59.19 kB / 454.9 MB, free: 29.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005242/0.2643, allocations: 498.9 kB / 455.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/0.2644, allocations: 35.98 kB / 455.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.2645, allocations: 293.1 kB / 455.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.2647, allocations: 247.3 kB / 455.9 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002624/0.2649, allocations: 168 kB / 456.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.265, allocations: 379.4 kB / 456.4 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.2656, allocations: 363.1 kB / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007102/0.2663, allocations: 497.5 kB / 457.3 MB, free: 28.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.2677, allocations: 0.8726 MB / 458.1 MB, free: 27.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2677, allocations: 1.344 kB / 458.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005724/0.2734, allocations: 1.655 MB / 459.8 MB, free: 27.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.2734, allocations: 14.47 kB / 459.8 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.2735, allocations: 2.562 kB / 459.8 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004307/0.2778, allocations: 0.7249 MB / 460.5 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.2792, allocations: 252.2 kB / 460.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/0.2845, allocations: 3.902 MB / 464.7 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007945/0.2853, allocations: 30.47 kB / 464.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.2854, allocations: 42.52 kB / 464.8 MB, free: 23.86 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.0003069/0.2857, allocations: 211.7 kB / 465 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.2858, allocations: 65.72 kB / 465 MB, free: 23.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003707/0.2896, allocations: 1.409 MB / 466.4 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.2896, allocations: 13.28 kB / 466.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2896, allocations: 1.344 kB / 466.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.2896, allocations: 5.719 kB / 466.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.2906, allocations: 0.7984 MB / 467.3 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.2907, allocations: 0.6094 kB / 467.3 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.2918, allocations: 210.5 kB / 467.5 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002151/0.294, allocations: 489.6 kB / 467.9 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.742e-05/0.2941, allocations: 28.83 kB / 468 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00313/0.2972, allocations: 3.259 MB / 471.2 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2972, allocations: 4.75 kB / 471.2 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004015/0.3013, allocations: 1.81 MB / 473.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3014, allocations: 147.7 kB / 473.2 MB, free: 18.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.3015, allocations: 24.08 kB / 473.2 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005528/0.3021, allocations: 43.19 kB / 473.3 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.3023, allocations: 62.12 kB / 473.3 MB, free: 18.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.877e-05/0.3023, allocations: 25.73 kB / 473.3 MB, free: 18.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003663/0.3027, allocations: 344.2 kB / 473.7 MB, free: 18.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3027, allocations: 1.281 kB / 473.7 MB, free: 18.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008259/0.3036, allocations: 239.1 kB / 473.9 MB, free: 18.56 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.0001792/0.3037, allocations: 133.4 kB / 474 MB, free: 18.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.3062, allocations: 1.176 MB / 475.2 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3062, allocations: 0 / 475.2 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.3075, allocations: 0.6918 MB / 475.9 MB, free: 17.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.3082, allocations: 130.9 kB / 476 MB, free: 17.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.3121, allocations: 2.429 MB / 478.5 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3125, allocations: 0.9352 MB / 479.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003182/0.3128, allocations: 73.22 kB / 479.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3128, allocations: 0 / 479.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01518/0.328, allocations: 16.28 MB / 495.8 MB, free: 1.172 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)