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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001331, allocations: 105.3 kB / 16.41 MB, free: 6.453 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.001274/0.001274, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0885/0.0885, allocations: 22.33 MB / 313.5 MB, free: 8.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 63.91 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1134, allocations: 54.95 MB / 492.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004235/0.1177, allocations: 3.008 MB / 495.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.1198, allocations: 0.951 MB / 496.6 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.1201, allocations: 4 kB / 496.6 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.1204, allocations: 59.36 kB / 496.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.121, allocations: 166.8 kB / 496.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006583/0.1217, allocations: 191.5 kB / 497.1 MB, free: 316 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009132/0.1226, allocations: 0.7098 MB / 497.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006542/0.1233, allocations: 391.8 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005241/0.1238, allocations: 307 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006876/0.1245, allocations: 414.6 kB / 498.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.1247, allocations: 68 kB / 498.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002509/0.1249, allocations: 107.9 kB / 499 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.1252, allocations: 203.4 kB / 499.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.1256, allocations: 338.5 kB / 499.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000816/0.1264, allocations: 0.771 MB / 0.4886 GB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1264, allocations: 0 / 0.4886 GB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1264, allocations: 0 / 0.4886 GB, free: 13.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.523e-05/0.1265, allocations: 0 / 0.4886 GB, free: 13.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002252/0.1287, allocations: 0.912 MB / 0.4895 GB, free: 12.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1288, allocations: 12.03 kB / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.1289, allocations: 56.28 kB / 0.4896 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.1295, allocations: 383.7 kB / 0.4899 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.1296, allocations: 37.38 kB / 0.49 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1297, allocations: 52.31 kB / 0.49 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.1307, allocations: 0.5454 MB / 0.4905 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1308, allocations: 4 kB / 0.4905 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/0.1308, allocations: 16 kB / 0.4906 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1308, allocations: 12 kB / 0.4906 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009884/0.1318, allocations: 0.5387 MB / 0.4911 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003107/0.1349, allocations: 1.527 MB / 0.4926 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008822/0.1358, allocations: 496.7 kB / 0.4931 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.1364, allocations: 262 kB / 0.4933 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.1364, allocations: 8.578 kB / 0.4933 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1364, allocations: 39 kB / 0.4934 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002799/0.1367, allocations: 55.58 kB / 0.4934 GB, free: 7.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 3.236e-06/0.1367, allocations: 4 kB / 0.4934 GB, free: 7.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003038/0.1398, allocations: 1.092 MB / 0.4945 GB, free: 6.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.1398, allocations: 59.78 kB / 0.4945 GB, free: 6.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.1403, allocations: 393.5 kB / 0.4949 GB, free: 6.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.1403, allocations: 33.7 kB / 0.4949 GB, free: 6.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.1405, allocations: 244.1 kB / 0.4952 GB, free: 6.039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1407, allocations: 181.4 kB / 0.4953 GB, free: 5.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.1409, allocations: 118.3 kB / 0.4955 GB, free: 5.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.141, allocations: 354.8 kB / 0.4958 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004747/0.1415, allocations: 257.2 kB / 0.496 GB, free: 5.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005447/0.1421, allocations: 366.1 kB / 0.4964 GB, free: 4.734 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.1431, allocations: 0.6304 MB / 0.497 GB, free: 4.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1431, allocations: 0 / 0.497 GB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002034/0.1452, allocations: 0.863 MB / 0.4979 GB, free: 3.188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.1452, allocations: 10.34 kB / 0.4979 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.1452, allocations: 7.938 kB / 0.4979 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.1464, allocations: 169.6 kB / 0.498 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.1477, allocations: 247.7 kB / 0.4983 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008412/0.1486, allocations: 1.151 MB / 0.4994 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.1491, allocations: 28.78 kB / 0.4994 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.432e-05/0.1492, allocations: 31.97 kB / 0.4994 GB, free: 1.496 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.1495, allocations: 194.5 kB / 0.4996 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1496, allocations: 43.44 kB / 0.4997 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.1516, allocations: 0.8259 MB / 0.5005 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1516, allocations: 4 kB / 0.5005 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.1516, allocations: 0 / 0.5005 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1516, allocations: 7.922 kB / 0.5005 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2415/0.3931, allocations: 1.449 MB / 0.5019 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3931, allocations: 0.5938 kB / 0.5019 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.3942, allocations: 200.3 kB / 0.5021 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008117/0.395, allocations: 166.5 kB / 0.5023 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.396e-05/0.3951, allocations: 24.28 kB / 0.5023 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005844/0.3957, allocations: 1.164 MB / 0.5034 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3957, allocations: 0 / 0.5034 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.3977, allocations: 1.127 MB / 0.5045 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.3979, allocations: 127.5 kB / 0.5046 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.398, allocations: 20.16 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/0.3984, allocations: 19.36 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.3985, allocations: 45.84 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.3985, allocations: 18.81 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002766/0.3988, allocations: 273.7 kB / 0.505 GB, free: 20.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3988, allocations: 0 / 0.505 GB, free: 20.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000527/0.3994, allocations: 169.1 kB / 0.5052 GB, free: 20.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001998/0.3996, allocations: 129.9 kB / 0.5053 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.401, allocations: 0.6826 MB / 0.506 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4011, allocations: 1.531 kB / 0.506 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007805/0.4018, allocations: 367.7 kB / 0.5063 GB, free: 20.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.4025, allocations: 111.8 kB / 0.5064 GB, free: 20.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.4058, allocations: 1.815 MB / 0.5082 GB, free: 19.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.4062, allocations: 0.8674 MB / 0.509 GB, free: 18.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.4065, allocations: 58.91 kB / 0.5091 GB, free: 18.96 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4065, allocations: 1.438 kB / 0.5091 GB, free: 18.96 MB / 382.1 MB Notification: Performance of Templates: time 0.01751/0.4241, allocations: 10.59 MB / 0.5194 GB, free: 16.25 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)