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.001483/0.001483, allocations: 112 kB / 16.37 MB, free: 5.539 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.001662/0.001662, allocations: 190.8 kB / 17.3 MB, free: 5.18 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09196/0.09196, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001268, allocations: 65.75 kB / 382.3 MB, free: 41.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.0927, allocations: 54.95 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002137/0.09487, allocations: 0.9834 MB / 438.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.09618, allocations: 1.209 MB / 439.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.417e-05/0.09626, allocations: 8 kB / 439.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.09653, allocations: 31.78 kB / 439.5 MB, free: 10 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.09669, allocations: 47.77 kB / 439.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.09686, allocations: 67.89 kB / 439.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.0971, allocations: 203.6 kB / 439.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.09721, allocations: 29.44 kB / 439.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.09733, allocations: 83.73 kB / 439.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.09749, allocations: 87.64 kB / 440 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.381e-05/0.09752, allocations: 12 kB / 440 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.01e-05/0.09755, allocations: 8 kB / 440 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.09762, allocations: 43.89 kB / 440 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.417e-05/0.09768, allocations: 47.67 kB / 440.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.09784, allocations: 126.8 kB / 440.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.09785, allocations: 4 kB / 440.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09786, allocations: 0 / 440.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.09787, allocations: 0 / 440.2 MB, free: 9.254 MB / 318.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.0009154/0.09879, allocations: 498.8 kB / 440.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.09883, allocations: 16.02 kB / 440.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.09887, allocations: 12.75 kB / 440.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.09937, allocations: 276.6 kB / 441 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.09939, allocations: 8.375 kB / 441 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.09942, allocations: 8.375 kB / 441 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.09959, allocations: 97.95 kB / 441.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.0996, allocations: 0 / 441.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.09962, allocations: 4 kB / 441.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.09963, allocations: 4 kB / 441.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.09978, allocations: 83.94 kB / 441.2 MB, free: 8.172 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006146/0.1004, allocations: 424.5 kB / 441.6 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.1008, allocations: 150.6 kB / 441.7 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.593e-05/0.1008, allocations: 52.83 kB / 441.8 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.1009, allocations: 4 kB / 441.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.1009, allocations: 34.56 kB / 441.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.1009, allocations: 0 / 441.8 MB, free: 7.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.002369/0.1033, allocations: 483.1 kB / 442.3 MB, free: 6.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.1033, allocations: 55.34 kB / 442.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000413/0.1037, allocations: 237.4 kB / 442.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.1038, allocations: 29.7 kB / 442.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.1038, allocations: 120 kB / 442.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.1039, allocations: 31.47 kB / 442.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.1039, allocations: 25.7 kB / 442.8 MB, free: 6.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.104, allocations: 326.8 kB / 443.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.303e-05/0.1041, allocations: 35.97 kB / 443.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.636e-05/0.1042, allocations: 39.98 kB / 443.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.1055, allocations: 280.5 kB / 443.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1055, allocations: 4 kB / 443.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008893/0.1064, allocations: 246.2 kB / 443.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1064, allocations: 10.03 kB / 443.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1064, allocations: 0 / 443.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008264/0.1072, allocations: 116.7 kB / 443.8 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.269e-05/0.1073, allocations: 8 kB / 443.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.1106, allocations: 1.881 MB / 445.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.1109, allocations: 23.94 kB / 445.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.1109, allocations: 7.984 kB / 445.7 MB, free: 3.301 MB / 318.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.0001268/0.111, allocations: 142.7 kB / 445.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.1111, allocations: 15.83 kB / 445.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007488/0.1118, allocations: 263.7 kB / 446.2 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1118, allocations: 4 kB / 446.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1118, allocations: 3.938 kB / 446.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1118, allocations: 0 / 446.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002441/0.1121, allocations: 241.4 kB / 446.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1121, allocations: 0 / 446.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.621e-05/0.1122, allocations: 8 kB / 446.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005537/0.1127, allocations: 116.8 kB / 446.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1128, allocations: 0 / 446.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002386/0.1152, allocations: 1.814 MB / 448.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1152, allocations: 0 / 448.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000799/0.116, allocations: 400 kB / 448.7 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.1161, allocations: 89.03 kB / 448.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.1161, allocations: 7.938 kB / 448.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.1163, allocations: 23.97 kB / 448.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.1164, allocations: 15.92 kB / 448.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.1164, allocations: 8 kB / 448.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003549/0.1167, allocations: 188.9 kB / 449.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1167, allocations: 0 / 449.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.117, allocations: 31.91 kB / 449.1 MB, free: 15.71 MB / 334.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 0.0001279/0.1172, allocations: 107.2 kB / 449.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004544/0.1176, allocations: 238.6 kB / 449.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1176, allocations: 0 / 449.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.1179, allocations: 198.5 kB / 449.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.1182, allocations: 26.42 kB / 449.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.1188, allocations: 311.4 kB / 449.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.1191, allocations: 0.7358 MB / 450.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.81e-05/0.1192, allocations: 16.64 kB / 450.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.1192, allocations: 11.44 kB / 450.7 MB, free: 14 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1192, allocations: 0 / 450.7 MB, free: 14 MB / 334.1 MB Notification: Performance of Templates: time 0.005256/0.1245, allocations: 2.511 MB / 453.2 MB, free: 11.53 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)