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.008939/0.008938, allocations: 108.4 kB / 15.71 MB, free: 6 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.001211/0.001211, allocations: 194 kB / 16.64 MB, free: 5.938 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.341/1.341, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08786/0.08786, allocations: 22.32 MB / 312.8 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.89 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1082, allocations: 54.95 MB / 492 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002181/0.1104, allocations: 0.9781 MB / 492.9 MB, free: 3.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.112, allocations: 1.209 MB / 494.1 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.1121, allocations: 4 kB / 494.1 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003856/0.1125, allocations: 35.77 kB / 494.2 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.1127, allocations: 51.75 kB / 494.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.113, allocations: 83.77 kB / 494.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002742/0.1133, allocations: 191.7 kB / 494.5 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.1134, allocations: 37.36 kB / 494.5 MB, free: 2.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.1136, allocations: 83.73 kB / 494.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.1138, allocations: 91.64 kB / 494.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.35e-05/0.1138, allocations: 8 kB / 494.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.349e-05/0.1138, allocations: 8 kB / 494.7 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-05/0.1139, allocations: 39.89 kB / 494.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.796e-05/0.114, allocations: 55.66 kB / 494.8 MB, free: 1.867 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.1142, allocations: 107.6 kB / 494.9 MB, free: 1.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1142, allocations: 3.938 kB / 494.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1142, allocations: 0 / 494.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1142, allocations: 0 / 494.9 MB, free: 1.758 MB / 366.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.001115/0.1153, allocations: 0.4949 MB / 495.4 MB, free: 1.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1154, allocations: 8.031 kB / 495.4 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.1154, allocations: 20.73 kB / 495.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.116, allocations: 272.7 kB / 495.7 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.116, allocations: 4.375 kB / 495.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.116, allocations: 8.375 kB / 495.7 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.1162, allocations: 105.9 kB / 495.8 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1163, allocations: 0 / 495.8 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.1163, allocations: 0 / 495.8 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1163, allocations: 4 kB / 495.8 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.1164, allocations: 83.94 kB / 495.9 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006574/0.1171, allocations: 416.4 kB / 496.3 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.1175, allocations: 150.7 kB / 496.5 MB, free: 60 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.995e-05/0.1176, allocations: 48.84 kB / 496.5 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.1176, allocations: 0 / 496.5 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.1177, allocations: 42.44 kB / 496.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.1177, allocations: 4 kB / 496.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.002404/0.1201, allocations: 483.4 kB / 497 MB, free: 15.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.1201, allocations: 55.41 kB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.1206, allocations: 237.5 kB / 497.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.1206, allocations: 29.64 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.1207, allocations: 112.1 kB / 497.5 MB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.1208, allocations: 31.55 kB / 497.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.1208, allocations: 25.7 kB / 497.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.121, allocations: 326.8 kB / 497.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.093e-05/0.1211, allocations: 35.92 kB / 497.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.204e-05/0.1212, allocations: 43.97 kB / 497.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.1225, allocations: 292.6 kB / 498.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1225, allocations: 0 / 498.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009264/0.1235, allocations: 242.1 kB / 498.4 MB, free: 13.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1235, allocations: 8 kB / 498.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1235, allocations: 0 / 498.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008894/0.1244, allocations: 116.8 kB / 498.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.432e-05/0.1245, allocations: 19.92 kB / 498.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.1282, allocations: 1.876 MB / 0.4887 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.1284, allocations: 24 kB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1284, allocations: 64 / 0.4888 GB, free: 11.8 MB / 382.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.0001344/0.1285, allocations: 138.6 kB / 0.4889 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.1286, allocations: 15.75 kB / 0.4889 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000801/0.1294, allocations: 271.7 kB / 0.4892 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1294, allocations: 0 / 0.4892 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1294, allocations: 3.938 kB / 0.4892 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1294, allocations: 3.938 kB / 0.4892 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.1297, allocations: 237.4 kB / 0.4894 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1297, allocations: 192 / 0.4894 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.639e-05/0.1298, allocations: 12.09 kB / 0.4894 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006006/0.1304, allocations: 116.7 kB / 0.4895 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.1305, allocations: 7.984 kB / 0.4895 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/0.133, allocations: 1.802 MB / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.133, allocations: 0 / 0.4913 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009127/0.1339, allocations: 406.6 kB / 0.4917 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.134, allocations: 89.05 kB / 0.4918 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.134, allocations: 3.938 kB / 0.4918 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.1343, allocations: 27.95 kB / 0.4918 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.592e-05/0.1343, allocations: 12.06 kB / 0.4918 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.1343, allocations: 4 kB / 0.4918 GB, free: 8.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004312/0.1348, allocations: 192.8 kB / 0.492 GB, free: 8.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.865e-06/0.1348, allocations: 0 / 0.492 GB, free: 8.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1351, allocations: 31.94 kB / 0.492 GB, free: 8.211 MB / 382.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.0001298/0.1353, allocations: 107.2 kB / 0.4921 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004732/0.1357, allocations: 246.5 kB / 0.4924 GB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1358, allocations: 0 / 0.4924 GB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.136, allocations: 194.5 kB / 0.4925 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.1364, allocations: 25.64 kB / 0.4926 GB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.137, allocations: 307.8 kB / 0.4929 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1374, allocations: 0.7319 MB / 0.4936 GB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.1375, allocations: 24.61 kB / 0.4936 GB, free: 6.512 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.1375, allocations: 11.44 kB / 0.4936 GB, free: 6.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1375, allocations: 0 / 0.4936 GB, free: 6.5 MB / 382.1 MB Notification: Performance of Templates: time 0.005776/0.1433, allocations: 2.506 MB / 0.4961 GB, free: 4.035 MB / 382.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)