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.001286/0.001286, allocations: 104 kB / 15.6 MB, free: 148 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.001091/0.001091, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2225/0.2225, allocations: 22.36 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.89 kB / 380.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2932, allocations: 54.94 MB / 435.8 MB, free: 39.82 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.001914/0.2952, allocations: 0.9729 MB / 436.8 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.2963, allocations: 1.202 MB / 438 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.69e-05/0.2964, allocations: 2.5 kB / 438 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.2967, allocations: 40.53 kB / 438 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.2968, allocations: 52.72 kB / 438.1 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001425/0.297, allocations: 66.12 kB / 438.1 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.2972, allocations: 196.4 kB / 438.3 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.2973, allocations: 28.03 kB / 438.3 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.951e-05/0.2974, allocations: 87.53 kB / 438.4 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.2976, allocations: 87.53 kB / 438.5 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.2976, allocations: 11.8 kB / 438.5 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.304e-05/0.2976, allocations: 10.59 kB / 438.5 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.2977, allocations: 37.83 kB / 438.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.2977, allocations: 52.19 kB / 438.6 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.2979, allocations: 110.3 kB / 438.7 MB, free: 37.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2979, allocations: 0 / 438.7 MB, free: 37.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2979, allocations: 0 / 438.7 MB, free: 37.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2979, allocations: 0 / 438.7 MB, free: 37.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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009857/0.2989, allocations: 0.4971 MB / 439.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2989, allocations: 8.906 kB / 439.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.299, allocations: 24.28 kB / 439.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.2994, allocations: 273.5 kB / 439.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.2995, allocations: 6.875 kB / 439.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.2995, allocations: 10.19 kB / 439.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.2997, allocations: 102.5 kB / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.2997, allocations: 0 / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.2997, allocations: 2.938 kB / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.2997, allocations: 7.938 kB / 439.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.2999, allocations: 82.86 kB / 439.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/0.3005, allocations: 423.5 kB / 440.2 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.3008, allocations: 149.5 kB / 440.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.468e-05/0.3009, allocations: 51.19 kB / 440.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.301, allocations: 7.922 kB / 440.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.301, allocations: 33.44 kB / 440.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.301, allocations: 0 / 440.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002484/0.3035, allocations: 489 kB / 440.9 MB, free: 36.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.3035, allocations: 51.41 kB / 440.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.3039, allocations: 232.7 kB / 441.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.3039, allocations: 29.64 kB / 441.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.25e-05/0.304, allocations: 112.2 kB / 441.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.304, allocations: 36.12 kB / 441.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.3041, allocations: 29.41 kB / 441.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.3041, allocations: 321 kB / 441.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.772e-05/0.3042, allocations: 43.12 kB / 441.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.277e-05/0.3042, allocations: 38.05 kB / 441.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3056, allocations: 285.7 kB / 442 MB, free: 35.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3056, allocations: 3.281 kB / 442 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000879/0.3065, allocations: 244.4 kB / 442.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3065, allocations: 3.125 kB / 442.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3065, allocations: 3.125 kB / 442.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008864/0.3074, allocations: 114 kB / 442.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.565e-05/0.3075, allocations: 16.83 kB / 442.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00325/0.3107, allocations: 1.886 MB / 444.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3109, allocations: 22.69 kB / 444.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.311, allocations: 14.05 kB / 444.3 MB, free: 34.06 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.0001059/0.3111, allocations: 127.5 kB / 444.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.3111, allocations: 17.06 kB / 444.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000767/0.3119, allocations: 264.8 kB / 444.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3119, allocations: 0 / 444.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3119, allocations: 11.25 kB / 444.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3119, allocations: 2.906 kB / 444.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002013/0.3121, allocations: 233.6 kB / 445 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3121, allocations: 0 / 445 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.733e-05/0.3122, allocations: 12.69 kB / 445 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005994/0.3128, allocations: 115.7 kB / 445.1 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3129, allocations: 6.719 kB / 445.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.3151, allocations: 1.804 MB / 446.9 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3151, allocations: 0 / 446.9 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/0.3159, allocations: 400.4 kB / 447.3 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.3159, allocations: 90.8 kB / 447.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.316, allocations: 11.06 kB / 447.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.3162, allocations: 25.42 kB / 447.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.3162, allocations: 19.69 kB / 447.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.3162, allocations: 2.438 kB / 447.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003394/0.3166, allocations: 182.6 kB / 447.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3166, allocations: 0 / 447.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.3169, allocations: 35.56 kB / 447.6 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.095e-05/0.317, allocations: 111.9 kB / 447.7 MB, free: 31.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003687/0.3174, allocations: 243.9 kB / 448 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3174, allocations: 2.594 kB / 448 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.3176, allocations: 195.2 kB / 448.2 MB, free: 31.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.3179, allocations: 27.77 kB / 448.2 MB, free: 31.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004514/0.3184, allocations: 316.2 kB / 448.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.3185, allocations: 0.7267 MB / 449.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.653e-05/0.3186, allocations: 20.75 kB / 449.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.3186, allocations: 10.19 kB / 449.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3186, allocations: 2.812 kB / 449.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of Templates: time 0.004729/0.3233, allocations: 2.508 MB / 451.8 MB, free: 30.12 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)