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.001131/0.001131, allocations: 113.5 kB / 16.37 MB, free: 5.996 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.001301/0.001301, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09525/0.09525, allocations: 22.31 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.47 kB / 382.3 MB, free: 41.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09565, allocations: 54.96 MB / 437.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004731/0.1004, allocations: 3.441 MB / 440.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.1025, allocations: 1.044 MB / 441.7 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.1028, allocations: 7.938 kB / 441.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1031, allocations: 75.22 kB / 441.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.1036, allocations: 194.5 kB / 442 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.1041, allocations: 235.5 kB / 442.2 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007588/0.1049, allocations: 0.8537 MB / 443.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006686/0.1056, allocations: 0.5879 MB / 443.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003701/0.106, allocations: 410.8 kB / 444.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006559/0.1066, allocations: 0.5686 MB / 444.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.1068, allocations: 96 kB / 444.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.107, allocations: 128 kB / 444.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002227/0.1072, allocations: 267.2 kB / 445.1 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.1076, allocations: 426.2 kB / 445.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000833/0.1084, allocations: 1.04 MB / 446.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1084, allocations: 0 / 446.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1084, allocations: 0 / 446.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1085, allocations: 0 / 446.6 MB, free: 2.965 MB / 318.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.002465/0.1109, allocations: 1.095 MB / 447.7 MB, free: 1.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.111, allocations: 11.97 kB / 447.7 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.1111, allocations: 72.09 kB / 447.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006393/0.1118, allocations: 467.1 kB / 448.2 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.1118, allocations: 41.69 kB / 448.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1119, allocations: 52.38 kB / 448.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.1132, allocations: 0.7445 MB / 449 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1132, allocations: 0 / 449 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.1133, allocations: 24 kB / 449 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.1133, allocations: 12 kB / 449.1 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.1147, allocations: 0.8016 MB / 449.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.1195, allocations: 2.392 MB / 452.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.1206, allocations: 0.6403 MB / 452.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007725/0.1214, allocations: 431.1 kB / 453.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.75e-05/0.1214, allocations: 16.55 kB / 453.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1215, allocations: 47.05 kB / 453.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005994/0.1221, allocations: 155.4 kB / 453.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.014e-06/0.1221, allocations: 0 / 453.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.009576/0.1317, allocations: 2.369 MB / 455.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.1317, allocations: 59.97 kB / 456 MB, free: 9.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.1322, allocations: 453.7 kB / 456.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.1323, allocations: 33.7 kB / 456.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.1325, allocations: 268.6 kB / 456.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.1327, allocations: 244.5 kB / 456.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.133, allocations: 154.6 kB / 457.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1331, allocations: 370.8 kB / 457.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006265/0.1337, allocations: 333.8 kB / 457.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007217/0.1345, allocations: 478.2 kB / 458.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.1358, allocations: 0.826 MB / 459.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1358, allocations: 3.938 kB / 459.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005425/0.1413, allocations: 1.572 MB / 460.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1413, allocations: 8 kB / 460.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.1413, allocations: 4 kB / 460.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004727/0.1461, allocations: 0.7985 MB / 461.5 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.1474, allocations: 247.7 kB / 461.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005694/0.1531, allocations: 4.088 MB / 465.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/0.1539, allocations: 28.03 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.761e-05/0.154, allocations: 43.95 kB / 465.9 MB, free: 15.05 MB / 350.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.0003277/0.1543, allocations: 201.6 kB / 466 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.1544, allocations: 63.17 kB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003463/0.1579, allocations: 1.306 MB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.1579, allocations: 11.94 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1579, allocations: 0 / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1579, allocations: 7.984 kB / 467.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004191/0.1621, allocations: 2.007 MB / 469.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1622, allocations: 0 / 469.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.1633, allocations: 207.8 kB / 469.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002417/0.1657, allocations: 0.5021 MB / 470.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.982e-05/0.1658, allocations: 27.98 kB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004029/0.1699, allocations: 3.416 MB / 473.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1699, allocations: 3.938 kB / 473.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003943/0.1739, allocations: 1.653 MB / 475.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.1741, allocations: 144.3 kB / 475.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.1742, allocations: 23.98 kB / 475.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005065/0.1747, allocations: 19.98 kB / 475.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.1749, allocations: 64.91 kB / 475.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.923e-05/0.175, allocations: 23.98 kB / 475.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003719/0.1753, allocations: 323.1 kB / 475.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1753, allocations: 0 / 475.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007785/0.1761, allocations: 231.8 kB / 476.1 MB, free: 4.5 MB / 350.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.0002224/0.1764, allocations: 137.4 kB / 476.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.1788, allocations: 1.109 MB / 477.3 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1788, allocations: 192 / 477.3 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.1801, allocations: 0.6486 MB / 478 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.1807, allocations: 138.7 kB / 478.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.1844, allocations: 2.009 MB / 480.1 MB, free: 416 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.1849, allocations: 0.9196 MB / 481 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.1853, allocations: 145.1 kB / 481.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.1855, allocations: 67.39 kB / 481.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1855, allocations: 3.938 kB / 481.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01913/0.2047, allocations: 12.43 MB / 493.7 MB, free: 2.941 MB / 366.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)