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.00119/0.00119, allocations: 107.1 kB / 16.41 MB, free: 6.496 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.001171/0.001172, allocations: 191 kB / 17.34 MB, free: 5.766 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09157/0.09157, allocations: 22.31 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002187, allocations: 59.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.123, allocations: 54.96 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004755/0.1278, allocations: 3.564 MB / 496.3 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.1302, allocations: 1.076 MB / 497.3 MB, free: 108 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/0.1306, allocations: 4 kB / 497.3 MB, free: 104 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.1309, allocations: 87.08 kB / 497.4 MB, free: 16 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007281/0.1317, allocations: 214.3 kB / 497.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007488/0.1325, allocations: 235.5 kB / 497.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.1335, allocations: 0.9121 MB / 498.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008833/0.1344, allocations: 0.6074 MB / 499.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000607/0.1351, allocations: 434.7 kB / 499.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008411/0.1359, allocations: 0.588 MB / 0.4887 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003053/0.1362, allocations: 104 kB / 0.4888 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003407/0.1366, allocations: 132 kB / 0.4889 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.1369, allocations: 287.2 kB / 0.4892 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006158/0.1376, allocations: 457.9 kB / 0.4896 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.1388, allocations: 1.075 MB / 0.4906 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.1388, allocations: 7.984 kB / 0.4907 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.1388, allocations: 0 / 0.4907 GB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.62e-05/0.1388, allocations: 3.938 kB / 0.4907 GB, free: 10.98 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.003207/0.1421, allocations: 1.173 MB / 0.4918 GB, free: 9.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1421, allocations: 8.031 kB / 0.4918 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.1423, allocations: 83.98 kB / 0.4919 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007798/0.1431, allocations: 487 kB / 0.4924 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.462e-05/0.1432, allocations: 41.69 kB / 0.4924 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.1433, allocations: 56.38 kB / 0.4924 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1447, allocations: 0.7679 MB / 0.4932 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1447, allocations: 0 / 0.4932 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.598e-05/0.1448, allocations: 20 kB / 0.4932 GB, free: 8.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1448, allocations: 16 kB / 0.4932 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.1463, allocations: 0.825 MB / 0.494 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004231/0.1506, allocations: 2.078 MB / 0.4961 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1518, allocations: 0.6771 MB / 0.4967 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006748/0.1525, allocations: 410.4 kB / 0.4971 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.1526, allocations: 8.547 kB / 0.4971 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.1526, allocations: 47.25 kB / 0.4972 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006248/0.1532, allocations: 159.3 kB / 0.4973 GB, free: 3.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 3.837e-06/0.1533, allocations: 0 / 0.4973 GB, free: 3.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.009963/0.1632, allocations: 2.561 MB / 0.4998 GB, free: 1.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.1633, allocations: 59.95 kB / 0.4999 GB, free: 1.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006219/0.1639, allocations: 497.9 kB / 0.5004 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.694e-05/0.164, allocations: 37.7 kB / 0.5004 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.1642, allocations: 288.5 kB / 0.5007 GB, free: 460 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.1645, allocations: 256.4 kB / 0.5009 GB, free: 200 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002767/0.1647, allocations: 166.5 kB / 0.5011 GB, free: 24 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.2139/0.3786, allocations: 375 kB / 0.5014 GB, free: 21.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008867/0.3795, allocations: 363 kB / 0.5018 GB, free: 21.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006532/0.3802, allocations: 494.3 kB / 0.5022 GB, free: 21.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.3814, allocations: 0.8784 MB / 0.5031 GB, free: 21.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3815, allocations: 2.875 kB / 0.5031 GB, free: 21.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005269/0.3867, allocations: 1.65 MB / 0.5047 GB, free: 21.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3868, allocations: 5.688 kB / 0.5047 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3868, allocations: 5.75 kB / 0.5047 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/0.3907, allocations: 0.7255 MB / 0.5054 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.3921, allocations: 247.9 kB / 0.5057 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005351/0.3974, allocations: 4.16 MB / 0.5097 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007348/0.3982, allocations: 31.12 kB / 0.5098 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.319e-05/0.3983, allocations: 44.34 kB / 0.5098 GB, free: 18.7 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.0003031/0.3986, allocations: 206.8 kB / 0.51 GB, free: 18.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3987, allocations: 60.91 kB / 0.5101 GB, free: 18.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003515/0.4022, allocations: 1.408 MB / 0.5114 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/0.4023, allocations: 9.281 kB / 0.5115 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4023, allocations: 1.5 kB / 0.5115 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.4023, allocations: 5.625 kB / 0.5115 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.4033, allocations: 0.7957 MB / 0.5122 GB, free: 18.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.4034, allocations: 4.609 kB / 0.5122 GB, free: 18.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.4045, allocations: 221.5 kB / 0.5124 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/0.4065, allocations: 470.5 kB / 0.5129 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4066, allocations: 27.36 kB / 0.5129 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003382/0.41, allocations: 3.47 MB / 0.5163 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.41, allocations: 0 / 0.5163 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003918/0.414, allocations: 1.799 MB / 0.5181 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.4142, allocations: 142.1 kB / 0.5182 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.4143, allocations: 23.36 kB / 0.5182 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.4148, allocations: 26.67 kB / 0.5183 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.415, allocations: 66.03 kB / 0.5183 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.44e-05/0.415, allocations: 24.28 kB / 0.5183 GB, free: 15.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004238/0.4155, allocations: 344.8 kB / 0.5187 GB, free: 15.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4155, allocations: 1.344 kB / 0.5187 GB, free: 15.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008782/0.4164, allocations: 249.5 kB / 0.5189 GB, free: 15.14 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.0002074/0.4166, allocations: 132.3 kB / 0.519 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.4193, allocations: 1.199 MB / 0.5202 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4193, allocations: 0 / 0.5202 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.4206, allocations: 0.6896 MB / 0.5209 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.4212, allocations: 137.6 kB / 0.521 GB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.4249, allocations: 2.15 MB / 0.5231 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.4253, allocations: 0.9303 MB / 0.524 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.4257, allocations: 72.47 kB / 0.5241 GB, free: 12.93 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4257, allocations: 0 / 0.5241 GB, free: 12.93 MB / 382.1 MB Notification: Performance of Templates: time 0.01702/0.4427, allocations: 16.45 MB / 0.5402 GB, free: 3.113 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)