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.006311/0.00631, allocations: 98.2 kB / 15.73 MB, free: 6.445 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.001154/0.001154, allocations: 193.8 kB / 16.67 MB, free: 6.348 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2205/0.2205, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 64.17 kB / 437.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1041, allocations: 54.96 MB / 492.1 MB, free: 1.211 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.001844/0.106, allocations: 0.9858 MB / 493 MB, free: 232 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.1074, allocations: 1.209 MB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.827e-05/0.1075, allocations: 0 / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.1078, allocations: 35.78 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.108, allocations: 47.75 kB / 494.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001715/0.1081, allocations: 75.89 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1084, allocations: 195.6 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1086, allocations: 29.38 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1087, allocations: 87.67 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.1089, allocations: 91.7 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.109, allocations: 8 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.487e-05/0.109, allocations: 8 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.824e-05/0.1091, allocations: 43.89 kB / 494.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.1092, allocations: 59.59 kB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.1094, allocations: 111.5 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1094, allocations: 0 / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1094, allocations: 3.938 kB / 495 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1094, allocations: 0 / 495 MB, free: 14.21 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.001222/0.1106, allocations: 0.4949 MB / 495.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1107, allocations: 8.031 kB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.1107, allocations: 16.84 kB / 495.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.1113, allocations: 280.7 kB / 495.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.1113, allocations: 4.375 kB / 495.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.1114, allocations: 8.375 kB / 495.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.1116, allocations: 104.3 kB / 495.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1117, allocations: 3.984 kB / 495.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.1117, allocations: 0 / 495.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1117, allocations: 8 kB / 495.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.1119, allocations: 87.83 kB / 496 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006938/0.1126, allocations: 408.6 kB / 496.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003826/0.113, allocations: 154.6 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.313e-05/0.1131, allocations: 52.88 kB / 496.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.1131, allocations: 0 / 496.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.1131, allocations: 34.56 kB / 496.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 8.81e-07/0.1131, allocations: 0 / 496.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.002483/0.1156, allocations: 495 kB / 497.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1157, allocations: 55.41 kB / 497.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/0.1161, allocations: 233.6 kB / 497.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.1161, allocations: 25.7 kB / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.1162, allocations: 104.1 kB / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.1163, allocations: 43.81 kB / 497.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.83e-05/0.1163, allocations: 21.72 kB / 497.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1164, allocations: 326.8 kB / 497.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.787e-05/0.1165, allocations: 36.34 kB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.01e-05/0.1166, allocations: 39.97 kB / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1179, allocations: 292.5 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1179, allocations: 4 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009184/0.1188, allocations: 242.2 kB / 498.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1189, allocations: 9.719 kB / 498.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1189, allocations: 0 / 498.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000873/0.1198, allocations: 116.8 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.1198, allocations: 12 kB / 498.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.1234, allocations: 1.876 MB / 0.4888 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1236, allocations: 31.94 kB / 0.4889 GB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.1236, allocations: 3.938 kB / 0.4889 GB, free: 8.246 MB / 366.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.0001273/0.1238, allocations: 130.6 kB / 0.489 GB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.864e-05/0.1238, allocations: 19.91 kB / 0.489 GB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008031/0.1246, allocations: 270.4 kB / 0.4893 GB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1246, allocations: 0 / 0.4893 GB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1246, allocations: 7.938 kB / 0.4893 GB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1246, allocations: 3.984 kB / 0.4893 GB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.1249, allocations: 229.6 kB / 0.4895 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1249, allocations: 0 / 0.4895 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.013e-05/0.125, allocations: 11.98 kB / 0.4895 GB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005741/0.1256, allocations: 108.8 kB / 0.4896 GB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1256, allocations: 4 kB / 0.4896 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.1282, allocations: 1.818 MB / 0.4914 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1282, allocations: 0 / 0.4914 GB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008612/0.1291, allocations: 404 kB / 0.4918 GB, free: 5.035 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.1291, allocations: 101 kB / 0.4919 GB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.1292, allocations: 3.938 kB / 0.4919 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.1294, allocations: 31.97 kB / 0.4919 GB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.1294, allocations: 15.97 kB / 0.4919 GB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1295, allocations: 7.938 kB / 0.4919 GB, free: 4.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003659/0.1298, allocations: 188.8 kB / 0.4921 GB, free: 4.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1298, allocations: 0 / 0.4921 GB, free: 4.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1301, allocations: 28 kB / 0.4921 GB, free: 4.648 MB / 366.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.0001164/0.1303, allocations: 111.2 kB / 0.4922 GB, free: 4.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004578/0.1307, allocations: 234.5 kB / 0.4925 GB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1307, allocations: 0 / 0.4925 GB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.131, allocations: 194.6 kB / 0.4926 GB, free: 4.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.1313, allocations: 24.42 kB / 0.4927 GB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005274/0.1318, allocations: 314.9 kB / 0.493 GB, free: 3.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.1321, allocations: 0.7241 MB / 0.4937 GB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.451e-05/0.1322, allocations: 24.64 kB / 0.4937 GB, free: 2.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.1322, allocations: 15.42 kB / 0.4937 GB, free: 2.941 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1322, allocations: 0 / 0.4937 GB, free: 2.941 MB / 366.1 MB Notification: Performance of Templates: time 0.005455/0.1377, allocations: 2.541 MB / 0.4962 GB, free: 452 kB / 366.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)