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_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 102 kB / 16.4 MB, free: 6.406 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.00111/0.00111, allocations: 192.2 kB / 17.35 MB, free: 5.695 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09046/0.09046, allocations: 22.33 MB / 313.5 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 60.05 kB / 437.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1074, allocations: 54.96 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_002): time 0.004927/0.1123, allocations: 3.576 MB / 496.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1147, allocations: 1.072 MB / 497.3 MB, free: 36 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.1153, allocations: 4 kB / 497.3 MB, free: 32 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003646/0.1156, allocations: 83.27 kB / 497.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008057/0.1165, allocations: 218.3 kB / 497.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007755/0.1173, allocations: 235.5 kB / 497.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.1184, allocations: 0.9081 MB / 498.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007875/0.1192, allocations: 0.6151 MB / 499.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005052/0.1197, allocations: 426.7 kB / 499.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007706/0.1205, allocations: 0.5919 MB / 0.4887 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001739/0.1206, allocations: 108 kB / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000257/0.1209, allocations: 136 kB / 0.4889 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.1211, allocations: 279.2 kB / 0.4892 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.1216, allocations: 458 kB / 0.4896 GB, free: 12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.1226, allocations: 1.083 MB / 0.4907 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.1226, allocations: 0 / 0.4907 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1226, allocations: 3.938 kB / 0.4907 GB, free: 10.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.1226, allocations: 0 / 0.4907 GB, free: 10.91 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002797/0.1254, allocations: 1.169 MB / 0.4918 GB, free: 9.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1255, allocations: 8.031 kB / 0.4918 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.1257, allocations: 80 kB / 0.4919 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006915/0.1264, allocations: 490.9 kB / 0.4924 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.1264, allocations: 37.69 kB / 0.4924 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.1266, allocations: 64.38 kB / 0.4925 GB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.128, allocations: 0.7601 MB / 0.4932 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.128, allocations: 0 / 0.4932 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.488e-05/0.1281, allocations: 20 kB / 0.4932 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1281, allocations: 16 kB / 0.4932 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.1295, allocations: 0.825 MB / 0.494 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004292/0.1338, allocations: 2.086 MB / 0.4961 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.135, allocations: 0.6824 MB / 0.4967 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.1357, allocations: 410.4 kB / 0.4971 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.634e-05/0.1357, allocations: 8.547 kB / 0.4971 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1358, allocations: 43.12 kB / 0.4972 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006373/0.1364, allocations: 159.3 kB / 0.4973 GB, free: 3.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 3.787e-06/0.1364, allocations: 0 / 0.4973 GB, free: 3.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01064/0.1471, allocations: 2.565 MB / 0.4998 GB, free: 1.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.1472, allocations: 63.91 kB / 0.4999 GB, free: 1.199 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006984/0.1479, allocations: 494 kB / 0.5004 GB, free: 0.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001685/0.1481, allocations: 41.7 kB / 0.5004 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.1483, allocations: 292.5 kB / 0.5007 GB, free: 380 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.1486, allocations: 244.4 kB / 0.5009 GB, free: 132 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2213/0.3699, allocations: 164.9 kB / 0.5011 GB, free: 21.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3701, allocations: 377.7 kB / 0.5014 GB, free: 21.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008902/0.371, allocations: 361.4 kB / 0.5018 GB, free: 21.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007679/0.3718, allocations: 497.5 kB / 0.5023 GB, free: 21.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.3731, allocations: 0.8742 MB / 0.5031 GB, free: 21.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3731, allocations: 3.031 kB / 0.5031 GB, free: 21.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005738/0.3789, allocations: 1.66 MB / 0.5047 GB, free: 21.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.3789, allocations: 4.406 kB / 0.5047 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.379, allocations: 3.5 kB / 0.5047 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004231/0.3832, allocations: 0.7228 MB / 0.5054 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.3847, allocations: 254.4 kB / 0.5057 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005916/0.3906, allocations: 4.146 MB / 0.5097 GB, free: 18.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009221/0.3916, allocations: 29.08 kB / 0.5098 GB, free: 18.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002081/0.3918, allocations: 46.58 kB / 0.5098 GB, free: 18.63 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004946/0.3923, allocations: 208.5 kB / 0.51 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.3925, allocations: 60.31 kB / 0.5101 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/0.3965, allocations: 1.408 MB / 0.5114 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.3966, allocations: 10.52 kB / 0.5115 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.3966, allocations: 1.375 kB / 0.5115 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.3966, allocations: 4.359 kB / 0.5115 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.3979, allocations: 0.8037 MB / 0.5122 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3979, allocations: 2.297 kB / 0.5122 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.3991, allocations: 211.8 kB / 0.5124 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/0.4014, allocations: 477.9 kB / 0.5129 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/0.4015, allocations: 25.19 kB / 0.5129 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.4052, allocations: 3.468 MB / 0.5163 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4052, allocations: 0.7969 kB / 0.5163 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.4097, allocations: 1.799 MB / 0.5181 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/0.41, allocations: 144 kB / 0.5182 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.4101, allocations: 24.2 kB / 0.5182 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006118/0.4108, allocations: 27.89 kB / 0.5183 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.411, allocations: 65.98 kB / 0.5183 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.402e-05/0.4111, allocations: 29.42 kB / 0.5183 GB, free: 15.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005346/0.4116, allocations: 342.3 kB / 0.5187 GB, free: 15.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.4116, allocations: 0 / 0.5187 GB, free: 15.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001104/0.4128, allocations: 246.5 kB / 0.5189 GB, free: 15.06 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003027/0.4131, allocations: 135.4 kB / 0.519 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003486/0.4166, allocations: 1.192 MB / 0.5202 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.4166, allocations: 0 / 0.5202 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.4181, allocations: 0.6953 MB / 0.5209 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008602/0.419, allocations: 137.3 kB / 0.521 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.4233, allocations: 2.144 MB / 0.5231 GB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.4238, allocations: 0.935 MB / 0.524 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.4242, allocations: 68.61 kB / 0.5241 GB, free: 12.85 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4243, allocations: 0 / 0.5241 GB, free: 12.85 MB / 382.1 MB Notification: Performance of Templates: time 0.02194/0.4462, allocations: 16.38 MB / 0.5401 GB, free: 3.023 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)