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_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 107.3 kB / 16.41 MB, free: 6.469 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.001235/0.001235, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09275/0.09275, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 64.14 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 54.96 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004882/0.1114, allocations: 3.44 MB / 496.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1137, allocations: 1.033 MB / 497.2 MB, free: 244 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003956/0.1142, allocations: 4 kB / 497.2 MB, free: 240 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003346/0.1145, allocations: 83.2 kB / 497.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007413/0.1153, allocations: 202.5 kB / 497.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007813/0.1161, allocations: 223.6 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1172, allocations: 0.8612 MB / 498.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008924/0.1181, allocations: 0.5879 MB / 499.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006931/0.1188, allocations: 402.8 kB / 499.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000912/0.1197, allocations: 0.5647 MB / 0.4884 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002551/0.12, allocations: 96 kB / 0.4884 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003602/0.1203, allocations: 132 kB / 0.4886 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.1206, allocations: 275.2 kB / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006063/0.1213, allocations: 426.2 kB / 0.4892 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.1224, allocations: 1.036 MB / 0.4903 GB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1224, allocations: 0 / 0.4903 GB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1224, allocations: 4 kB / 0.4903 GB, free: 11.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.381e-05/0.1225, allocations: 4 kB / 0.4903 GB, free: 11.36 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.003122/0.1256, allocations: 1.095 MB / 0.4913 GB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1257, allocations: 8.031 kB / 0.4913 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.1259, allocations: 72.09 kB / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000725/0.1266, allocations: 467.1 kB / 0.4919 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.1267, allocations: 41.69 kB / 0.4919 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.1268, allocations: 56.38 kB / 0.4919 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.1283, allocations: 0.7444 MB / 0.4927 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1283, allocations: 0 / 0.4927 GB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.112e-05/0.1284, allocations: 24 kB / 0.4927 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1284, allocations: 12 kB / 0.4927 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.1299, allocations: 0.7977 MB / 0.4935 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00526/0.1352, allocations: 2.408 MB / 0.4958 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1364, allocations: 0.6382 MB / 0.4965 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008779/0.1373, allocations: 430.3 kB / 0.4969 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.1374, allocations: 8.547 kB / 0.4969 GB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.1374, allocations: 43.12 kB / 0.4969 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007152/0.1381, allocations: 151.4 kB / 0.4971 GB, free: 4.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 5.29e-06/0.1381, allocations: 0 / 0.4971 GB, free: 4.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.009939/0.1481, allocations: 2.381 MB / 0.4994 GB, free: 1.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.1482, allocations: 55.97 kB / 0.4994 GB, free: 1.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006334/0.1488, allocations: 445.8 kB / 0.4999 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.149, allocations: 41.7 kB / 0.4999 GB, free: 1.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.1492, allocations: 268.6 kB / 0.5002 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.1495, allocations: 232.6 kB / 0.5004 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/0.1498, allocations: 166.5 kB / 0.5005 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.15, allocations: 370.7 kB / 0.5009 GB, free: 168 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2178/0.3678, allocations: 340.2 kB / 0.5012 GB, free: 21.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007671/0.3686, allocations: 463.4 kB / 0.5017 GB, free: 21.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.3699, allocations: 0.8318 MB / 0.5025 GB, free: 21.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3699, allocations: 1.641 kB / 0.5025 GB, free: 21.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00544/0.3754, allocations: 1.561 MB / 0.504 GB, free: 21.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.3754, allocations: 10.92 kB / 0.504 GB, free: 21.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3755, allocations: 4.812 kB / 0.504 GB, free: 21.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/0.3803, allocations: 0.7999 MB / 0.5048 GB, free: 21.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.3818, allocations: 253.3 kB / 0.505 GB, free: 21.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005457/0.3873, allocations: 4.08 MB / 0.509 GB, free: 18.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008001/0.3881, allocations: 29.94 kB / 0.5091 GB, free: 18.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.3882, allocations: 45.95 kB / 0.5091 GB, free: 18.75 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003305/0.3885, allocations: 195.3 kB / 0.5093 GB, free: 18.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.3887, allocations: 58 kB / 0.5093 GB, free: 18.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.3921, allocations: 1.312 MB / 0.5106 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.3921, allocations: 8.25 kB / 0.5106 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3922, allocations: 7.484 kB / 0.5106 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.3922, allocations: 4.219 kB / 0.5106 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004169/0.3964, allocations: 2.008 MB / 0.5126 GB, free: 18.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3964, allocations: 4.797 kB / 0.5126 GB, free: 18.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.3976, allocations: 214.5 kB / 0.5128 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.4, allocations: 0.5133 MB / 0.5133 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-05/0.4001, allocations: 25.45 kB / 0.5133 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003208/0.4034, allocations: 3.41 MB / 0.5167 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4034, allocations: 3.562 kB / 0.5167 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003882/0.4073, allocations: 1.66 MB / 0.5183 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4075, allocations: 135.6 kB / 0.5184 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.4076, allocations: 25.98 kB / 0.5184 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/0.4081, allocations: 24.34 kB / 0.5185 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.4083, allocations: 63.84 kB / 0.5185 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.614e-05/0.4084, allocations: 27.66 kB / 0.5186 GB, free: 15.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004408/0.4088, allocations: 319.1 kB / 0.5189 GB, free: 15.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4088, allocations: 0 / 0.5189 GB, free: 15.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001039/0.4099, allocations: 231.4 kB / 0.5191 GB, free: 15.01 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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000217/0.4101, allocations: 134.3 kB / 0.5192 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002654/0.4128, allocations: 1.109 MB / 0.5203 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4128, allocations: 4.062 kB / 0.5203 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4142, allocations: 0.6478 MB / 0.5209 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007314/0.4149, allocations: 140.7 kB / 0.5211 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.4189, allocations: 2.05 MB / 0.5231 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.4194, allocations: 0.9218 MB / 0.524 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.4198, allocations: 68.41 kB / 0.524 GB, free: 12.94 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4198, allocations: 0 / 0.524 GB, free: 12.94 MB / 382.1 MB Notification: Performance of Templates: time 0.01961/0.4394, allocations: 15.4 MB / 0.5391 GB, free: 3.977 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)