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.005396/0.005396, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001339/0.001339, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.328/1.328, allocations: 222.9 MB / 240.4 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.09035/0.09035, allocations: 22.32 MB / 312.8 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 64.12 kB / 437.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1145, allocations: 54.95 MB / 492 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004267/0.1188, allocations: 3.007 MB / 495 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1209, allocations: 0.9433 MB / 496 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.1212, allocations: 7.938 kB / 496 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.1214, allocations: 63.36 kB / 496 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005355/0.122, allocations: 170.7 kB / 496.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006294/0.1227, allocations: 183.6 kB / 496.4 MB, free: 384 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008633/0.1236, allocations: 0.7176 MB / 497.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006492/0.1242, allocations: 391.8 kB / 497.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.1247, allocations: 307 kB / 497.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006834/0.1254, allocations: 414.6 kB / 498.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.1256, allocations: 68 kB / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.1259, allocations: 104 kB / 498.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.1261, allocations: 207.4 kB / 498.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.1266, allocations: 322.6 kB / 498.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008645/0.1275, allocations: 0.7826 MB / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1275, allocations: 0 / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1275, allocations: 7.938 kB / 499.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.1275, allocations: 0 / 499.6 MB, free: 13.08 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.002237/0.1298, allocations: 0.9081 MB / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1298, allocations: 12.03 kB / 0.4888 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.13, allocations: 56.28 kB / 0.4889 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005666/0.1306, allocations: 383.7 kB / 0.4893 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.1306, allocations: 37.38 kB / 0.4893 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-05/0.1307, allocations: 44.38 kB / 0.4893 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009358/0.1316, allocations: 0.5493 MB / 0.4899 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1317, allocations: 3.938 kB / 0.4899 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.275e-05/0.1317, allocations: 16 kB / 0.4899 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1317, allocations: 8 kB / 0.4899 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009257/0.1327, allocations: 0.5387 MB / 0.4904 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003095/0.1358, allocations: 1.531 MB / 0.4919 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008701/0.1367, allocations: 496.7 kB / 0.4924 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004988/0.1372, allocations: 262 kB / 0.4926 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.1372, allocations: 12.56 kB / 0.4927 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.1373, allocations: 39 kB / 0.4927 GB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002913/0.1376, allocations: 55.58 kB / 0.4927 GB, free: 7.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.355e-06/0.1376, allocations: 4 kB / 0.4927 GB, free: 7.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003015/0.1406, allocations: 1.08 MB / 0.4938 GB, free: 6.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.1407, allocations: 63.78 kB / 0.4939 GB, free: 6.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004538/0.1411, allocations: 393.5 kB / 0.4942 GB, free: 6.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.1412, allocations: 37.7 kB / 0.4943 GB, free: 6.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1414, allocations: 244.1 kB / 0.4945 GB, free: 6.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1416, allocations: 181.4 kB / 0.4947 GB, free: 5.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.1418, allocations: 122.3 kB / 0.4948 GB, free: 5.797 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.142, allocations: 354.8 kB / 0.4951 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.1425, allocations: 257.2 kB / 0.4954 GB, free: 5.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.1431, allocations: 362.1 kB / 0.4957 GB, free: 4.797 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.1442, allocations: 0.6343 MB / 0.4963 GB, free: 4.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1442, allocations: 0 / 0.4963 GB, free: 4.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002041/0.1462, allocations: 0.8553 MB / 0.4972 GB, free: 3.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1463, allocations: 14.34 kB / 0.4972 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1463, allocations: 7.938 kB / 0.4972 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.1475, allocations: 177.5 kB / 0.4974 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.1488, allocations: 243.7 kB / 0.4976 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008818/0.1497, allocations: 1.151 MB / 0.4987 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005849/0.1503, allocations: 27.97 kB / 0.4988 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.1504, allocations: 28.75 kB / 0.4988 GB, free: 1.559 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.000282/0.1507, allocations: 194.5 kB / 0.499 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.1508, allocations: 47.42 kB / 0.499 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.1527, allocations: 0.822 MB / 0.4998 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.1528, allocations: 4 kB / 0.4998 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1528, allocations: 0 / 0.4998 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1528, allocations: 4 kB / 0.4998 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2319/0.3847, allocations: 1.458 MB / 0.5012 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3847, allocations: 2.094 kB / 0.5012 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.3858, allocations: 200.4 kB / 0.5014 GB, free: 21.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008296/0.3866, allocations: 165.4 kB / 0.5016 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.225e-05/0.3867, allocations: 24.39 kB / 0.5016 GB, free: 21.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006325/0.3873, allocations: 1.154 MB / 0.5027 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3873, allocations: 0 / 0.5027 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.3894, allocations: 1.136 MB / 0.5039 GB, free: 20.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3896, allocations: 125.7 kB / 0.504 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.074e-05/0.3897, allocations: 14.92 kB / 0.504 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.3901, allocations: 22.31 kB / 0.504 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.3902, allocations: 47.59 kB / 0.5041 GB, free: 20.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.3903, allocations: 18.83 kB / 0.5041 GB, free: 20.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003003/0.3906, allocations: 275.2 kB / 0.5043 GB, free: 20.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3906, allocations: 0 / 0.5043 GB, free: 20.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.3911, allocations: 169 kB / 0.5045 GB, free: 20.48 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.0001854/0.3913, allocations: 126.4 kB / 0.5046 GB, free: 20.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.3927, allocations: 0.6846 MB / 0.5053 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3927, allocations: 1.688 kB / 0.5053 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007763/0.3935, allocations: 363.2 kB / 0.5056 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005755/0.3941, allocations: 116.4 kB / 0.5057 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3974, allocations: 1.776 MB / 0.5075 GB, free: 19.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.3977, allocations: 0.8671 MB / 0.5083 GB, free: 18.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.3981, allocations: 130.8 kB / 0.5085 GB, free: 18.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.3983, allocations: 56.11 kB / 0.5085 GB, free: 18.95 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3984, allocations: 0 / 0.5085 GB, free: 18.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01707/0.4154, allocations: 9.379 MB / 0.5177 GB, free: 17.12 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)