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.001579/0.001578, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001132/0.001132, allocations: 194 kB / 16.14 MB, free: 6.691 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2002/0.2002, allocations: 22.36 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 55.91 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2906, allocations: 54.94 MB / 435.1 MB, free: 39.6 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.00221/0.2928, allocations: 1.032 MB / 436.1 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.2941, allocations: 1.211 MB / 437.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.514e-05/0.2942, allocations: 7.938 kB / 437.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.2946, allocations: 21.72 kB / 437.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.2947, allocations: 47.8 kB / 437.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001517/0.2949, allocations: 57.84 kB / 437.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.2951, allocations: 200.1 kB / 437.6 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.2952, allocations: 29.11 kB / 437.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.2953, allocations: 80.17 kB / 437.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.2955, allocations: 78.34 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.2955, allocations: 7.188 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.2955, allocations: 4.906 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.377e-05/0.2956, allocations: 39.34 kB / 437.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.487e-05/0.2957, allocations: 50.05 kB / 437.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.2958, allocations: 108.3 kB / 438 MB, free: 37.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2958, allocations: 2.625 kB / 438 MB, free: 37.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.2958, allocations: 0 / 438 MB, free: 37.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.2958, allocations: 0 / 438 MB, free: 37.76 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.0009886/0.2968, allocations: 0.4905 MB / 438.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2968, allocations: 13.59 kB / 438.5 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.802e-05/0.2969, allocations: 22.69 kB / 438.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.2974, allocations: 268.8 kB / 438.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.2974, allocations: 14.94 kB / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.2974, allocations: 9.688 kB / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.2976, allocations: 97.58 kB / 438.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.2976, allocations: 0 / 438.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.2976, allocations: 7.938 kB / 438.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2976, allocations: 2.812 kB / 438.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.2978, allocations: 78.83 kB / 439 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.2983, allocations: 424 kB / 439.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.2987, allocations: 146.8 kB / 439.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.2988, allocations: 52.17 kB / 439.6 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.2988, allocations: 6.75 kB / 439.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.2988, allocations: 34.56 kB / 439.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.2988, allocations: 0 / 439.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.00238/0.3012, allocations: 485 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.3013, allocations: 51.41 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.3017, allocations: 235 kB / 440.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.3017, allocations: 33.64 kB / 440.5 MB, free: 36.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.3017, allocations: 108.2 kB / 440.6 MB, free: 36.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.3018, allocations: 40.83 kB / 440.6 MB, free: 35.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.403e-05/0.3018, allocations: 29.81 kB / 440.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.3019, allocations: 325.9 kB / 440.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.003e-05/0.3019, allocations: 37 kB / 441 MB, free: 35.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.235e-05/0.302, allocations: 39.64 kB / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.3033, allocations: 284.4 kB / 441.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3033, allocations: 0 / 441.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008515/0.3041, allocations: 246.8 kB / 441.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3042, allocations: 6.219 kB / 441.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.319e-06/0.3042, allocations: 3.422 kB / 441.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008214/0.305, allocations: 118.7 kB / 441.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.13e-05/0.3051, allocations: 11.31 kB / 441.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.3079, allocations: 1.755 MB / 443.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.3081, allocations: 29.44 kB / 443.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3081, allocations: 2.844 kB / 443.5 MB, free: 33.95 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 0.0001121/0.3082, allocations: 137.1 kB / 443.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.3083, allocations: 13.62 kB / 443.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007553/0.3091, allocations: 267.3 kB / 443.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3091, allocations: 6.5 kB / 443.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3091, allocations: 0 / 443.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3091, allocations: 3.281 kB / 443.9 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.3093, allocations: 240.6 kB / 444.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3093, allocations: 0 / 444.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.747e-05/0.3094, allocations: 8.531 kB / 444.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005814/0.31, allocations: 110.7 kB / 444.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.31, allocations: 9.984 kB / 444.2 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.3119, allocations: 1.679 MB / 445.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3119, allocations: 3.938 kB / 445.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/0.3127, allocations: 396.1 kB / 446.3 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.3128, allocations: 94.73 kB / 446.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.3128, allocations: 7.891 kB / 446.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.313, allocations: 21.94 kB / 446.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.3131, allocations: 14.53 kB / 446.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3131, allocations: 7.406 kB / 446.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003177/0.3134, allocations: 185.8 kB / 446.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3134, allocations: 0 / 446.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.3137, allocations: 29.28 kB / 446.7 MB, free: 31.58 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 9.073e-05/0.3138, allocations: 112.7 kB / 446.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.3142, allocations: 242.1 kB / 447 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3142, allocations: 0 / 447 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.3144, allocations: 198.2 kB / 447.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.3147, allocations: 23.66 kB / 447.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000514/0.3152, allocations: 354.2 kB / 447.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.3154, allocations: 0.7291 MB / 448.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.735e-05/0.3154, allocations: 25.36 kB / 448.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.3155, allocations: 12.97 kB / 448.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3155, allocations: 0 / 448.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of Templates: time 0.004744/0.3202, allocations: 2.343 MB / 450.7 MB, free: 30.08 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)