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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008826/0.0008827, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.005066/0.005066, allocations: 171.9 kB / 16.26 MB, free: 6.676 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.245/1.245, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1806/0.1806, allocations: 22.36 MB / 313.8 MB, free: 13.03 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002674, allocations: 8.188 kB / 382.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2265, allocations: 55.99 MB / 438.6 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_001): time 0.00208/0.2287, allocations: 2.915 MB / 441.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2298, allocations: 0.9756 MB / 442.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.2299, allocations: 5.312 kB / 442.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.23, allocations: 42.22 kB / 442.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.2304, allocations: 159.6 kB / 442.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.2307, allocations: 158.9 kB / 442.8 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.2312, allocations: 0.7908 MB / 443.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000332/0.2316, allocations: 349.2 kB / 444 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.2318, allocations: 272.4 kB / 444.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003547/0.2321, allocations: 404.2 kB / 444.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.984e-05/0.2322, allocations: 43.34 kB / 444.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.2324, allocations: 79.02 kB / 444.8 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.2325, allocations: 181.6 kB / 444.9 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.2327, allocations: 325.1 kB / 445.2 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.2331, allocations: 0.7231 MB / 446 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2331, allocations: 0 / 446 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2331, allocations: 0 / 446 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2332, allocations: 0 / 446 MB, free: 34.98 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001477/0.2346, allocations: 0.8176 MB / 446.8 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.628e-05/0.2347, allocations: 20.69 kB / 446.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.638e-05/0.2348, allocations: 55.12 kB / 446.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.2351, allocations: 389.3 kB / 447.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.2352, allocations: 34.38 kB / 447.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.443e-05/0.2353, allocations: 41.03 kB / 447.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008233/0.2361, allocations: 0.5501 MB / 447.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2361, allocations: 0 / 447.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.2362, allocations: 19.59 kB / 447.9 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.2362, allocations: 11.56 kB / 447.9 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008424/0.237, allocations: 0.5401 MB / 448.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.2396, allocations: 1.54 MB / 450 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007204/0.2403, allocations: 495.6 kB / 450.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.2407, allocations: 258.5 kB / 450.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.2408, allocations: 13.61 kB / 450.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.2408, allocations: 44.88 kB / 450.8 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002205/0.241, allocations: 59.09 kB / 450.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.613e-06/0.241, allocations: 0 / 450.8 MB, free: 32.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002664/0.2437, allocations: 1.092 MB / 451.9 MB, free: 31.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.741e-05/0.2437, allocations: 64.97 kB / 452 MB, free: 31.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.244, allocations: 389.4 kB / 452.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.2441, allocations: 36.33 kB / 452.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.972e-05/0.2442, allocations: 248.8 kB / 452.6 MB, free: 31.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.2443, allocations: 182 kB / 452.8 MB, free: 31.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.61e-05/0.2444, allocations: 57.47 kB / 452.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.2444, allocations: 354.3 kB / 453.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/0.2448, allocations: 256.7 kB / 453.5 MB, free: 30.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.2453, allocations: 367.9 kB / 453.8 MB, free: 30.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008618/0.2462, allocations: 0.6309 MB / 454.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2462, allocations: 4 kB / 454.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001718/0.2479, allocations: 0.8463 MB / 455.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2479, allocations: 6.062 kB / 455.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2479, allocations: 2.625 kB / 455.3 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.2491, allocations: 174.3 kB / 455.5 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.2503, allocations: 242.2 kB / 455.7 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000516/0.2509, allocations: 1.162 MB / 456.9 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004498/0.2513, allocations: 30.38 kB / 456.9 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.152e-05/0.2514, allocations: 33.02 kB / 457 MB, free: 28.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.2516, allocations: 186.6 kB / 457.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.2517, allocations: 45.23 kB / 457.2 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.2535, allocations: 0.8181 MB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.2535, allocations: 6.406 kB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2535, allocations: 1.031 kB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2535, allocations: 3.375 kB / 458 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.2558, allocations: 1.479 MB / 459.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2558, allocations: 4 kB / 459.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.2569, allocations: 195.4 kB / 459.7 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008963/0.2578, allocations: 179.4 kB / 459.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.877e-05/0.2578, allocations: 17.47 kB / 459.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004943/0.2583, allocations: 1.153 MB / 461 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2584, allocations: 0 / 461 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.2604, allocations: 1.135 MB / 462.2 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.2605, allocations: 132.6 kB / 462.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.952e-05/0.2606, allocations: 17.17 kB / 462.3 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.2609, allocations: 20.69 kB / 462.3 MB, free: 25.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.734e-05/0.2611, allocations: 40.67 kB / 462.4 MB, free: 25.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/0.2611, allocations: 19.69 kB / 462.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000236/0.2613, allocations: 274.6 kB / 462.7 MB, free: 25.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2614, allocations: 0 / 462.7 MB, free: 25.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.2618, allocations: 169 kB / 462.8 MB, free: 25.42 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001338/0.262, allocations: 127.1 kB / 462.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.2633, allocations: 0.6841 MB / 463.6 MB, free: 25.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2634, allocations: 0 / 463.6 MB, free: 25.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007575/0.2641, allocations: 365.3 kB / 464 MB, free: 24.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.2647, allocations: 109.7 kB / 464.1 MB, free: 24.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.2679, allocations: 2.162 MB / 466.3 MB, free: 23.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.2682, allocations: 0.8635 MB / 467.1 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004164/0.2686, allocations: 130.9 kB / 467.2 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002097/0.2688, allocations: 57.3 kB / 467.3 MB, free: 22.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2688, allocations: 0 / 467.3 MB, free: 22.93 MB / 350.1 MB Notification: Performance of Templates: time 0.01329/0.2821, allocations: 8.322 MB / 475.6 MB, free: 21.44 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)