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_004_LTI.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_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001156/0.001156, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.213/1.213, allocations: 222.9 MB / 240.6 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1857/0.1857, allocations: 22.35 MB / 313.1 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001168, allocations: 59.91 kB / 381 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2134, allocations: 54.94 MB / 435.9 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.001764/0.2152, allocations: 1.04 MB / 437 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009998/0.2162, allocations: 1.204 MB / 438.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.907e-05/0.2163, allocations: 2.438 kB / 438.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.2166, allocations: 33.48 kB / 438.2 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.2167, allocations: 41.14 kB / 438.2 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001341/0.2169, allocations: 70.31 kB / 438.3 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.217, allocations: 202.6 kB / 438.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.188e-05/0.2171, allocations: 30.09 kB / 438.5 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.741e-05/0.2172, allocations: 88.23 kB / 438.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.2174, allocations: 86.69 kB / 438.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.2174, allocations: 10.81 kB / 438.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.2174, allocations: 14.56 kB / 438.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.971e-05/0.2175, allocations: 36.69 kB / 438.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.404e-05/0.2175, allocations: 50.3 kB / 438.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.612e-05/0.2176, allocations: 84.84 kB / 438.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.2176, allocations: 0 / 438.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2176, allocations: 0 / 438.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.2177, allocations: 2.938 kB / 438.9 MB, free: 37.8 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008641/0.2185, allocations: 499.8 kB / 439.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.714e-05/0.2186, allocations: 10.16 kB / 439.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.2186, allocations: 14.03 kB / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.219, allocations: 284.6 kB / 439.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-06/0.219, allocations: 3.438 kB / 439.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/0.2191, allocations: 10.5 kB / 439.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.2192, allocations: 100.9 kB / 439.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2192, allocations: 0 / 439.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.2193, allocations: 0 / 439.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2193, allocations: 2.812 kB / 439.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.2194, allocations: 85.56 kB / 439.9 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.22, allocations: 419.2 kB / 440.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/0.2203, allocations: 151.8 kB / 440.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.371e-05/0.2204, allocations: 52.31 kB / 440.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.2204, allocations: 10.23 kB / 440.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.788e-06/0.2204, allocations: 30.56 kB / 440.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.2204, allocations: 0 / 440.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002289/0.2227, allocations: 486.8 kB / 441 MB, free: 36.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.948e-05/0.2227, allocations: 57.94 kB / 441.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.2231, allocations: 230.4 kB / 441.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.2231, allocations: 29.64 kB / 441.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.2231, allocations: 115.1 kB / 441.4 MB, free: 36.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.2232, allocations: 38.02 kB / 441.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.2232, allocations: 22.62 kB / 441.5 MB, free: 36.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.906e-05/0.2233, allocations: 328.5 kB / 441.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.423e-05/0.2233, allocations: 39.56 kB / 441.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.491e-05/0.2234, allocations: 30.69 kB / 441.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001215/0.2246, allocations: 292.8 kB / 442.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2246, allocations: 0 / 442.2 MB, free: 35.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008081/0.2254, allocations: 242.3 kB / 442.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.2254, allocations: 2.75 kB / 442.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2255, allocations: 10.97 kB / 442.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007957/0.2263, allocations: 114.1 kB / 442.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.859e-05/0.2263, allocations: 11.77 kB / 442.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002841/0.2292, allocations: 1.883 MB / 444.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.2294, allocations: 25.48 kB / 444.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.2294, allocations: 6.875 kB / 444.4 MB, free: 33.89 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 8.473e-05/0.2295, allocations: 134.2 kB / 444.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.2295, allocations: 17.56 kB / 444.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000739/0.2303, allocations: 265.5 kB / 444.9 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.2303, allocations: 1.969 kB / 444.9 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.2303, allocations: 3.938 kB / 444.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2303, allocations: 6.75 kB / 444.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.2305, allocations: 235.1 kB / 445.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2305, allocations: 4 kB / 445.1 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-05/0.2305, allocations: 8.625 kB / 445.1 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005906/0.2311, allocations: 119 kB / 445.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.2312, allocations: 7.938 kB / 445.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.2333, allocations: 1.805 MB / 447 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2333, allocations: 0 / 447 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007013/0.234, allocations: 405.8 kB / 447.4 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.395e-05/0.234, allocations: 93.86 kB / 447.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.2341, allocations: 11.92 kB / 447.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.2343, allocations: 24.08 kB / 447.6 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.2343, allocations: 12.73 kB / 447.6 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.2343, allocations: 2.875 kB / 447.6 MB, free: 31.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.2346, allocations: 191.9 kB / 447.8 MB, free: 31.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2346, allocations: 0 / 447.8 MB, free: 31.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002557/0.2349, allocations: 37.69 kB / 447.8 MB, free: 31.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 7.557e-05/0.235, allocations: 99.75 kB / 447.9 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000329/0.2353, allocations: 248.8 kB / 448.1 MB, free: 31.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2353, allocations: 0 / 448.1 MB, free: 31.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.2355, allocations: 193.2 kB / 448.3 MB, free: 31.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2358, allocations: 21.7 kB / 448.4 MB, free: 31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004403/0.2363, allocations: 386.5 kB / 448.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.2364, allocations: 0.7327 MB / 449.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.2364, allocations: 13 kB / 449.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2364, allocations: 0 / 449.5 MB, free: 30.02 MB / 350.1 MB Notification: Performance of Templates: time 0.003147/0.2396, allocations: 2.399 MB / 451.9 MB, free: 29.88 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)