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.007216/0.007216, allocations: 108.2 kB / 15.74 MB, free: 5.984 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.001584/0.001584, allocations: 193.3 kB / 16.67 MB, free: 5.906 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2012/0.2012, allocations: 22.35 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 62.66 kB / 437.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 54.96 MB / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004427/0.1128, allocations: 3.582 MB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1145, allocations: 1.068 MB / 496.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.1147, allocations: 4 kB / 496.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1149, allocations: 79.16 kB / 496.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004973/0.1154, allocations: 222.3 kB / 497 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005379/0.116, allocations: 235.5 kB / 497.2 MB, free: 12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007795/0.1168, allocations: 0.9121 MB / 498.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006965/0.1175, allocations: 0.6073 MB / 498.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004064/0.1179, allocations: 426.8 kB / 499.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007798/0.1187, allocations: 0.6036 MB / 499.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.1189, allocations: 107.9 kB / 499.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.1192, allocations: 128 kB / 500 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002814/0.1195, allocations: 279.2 kB / 0.4885 GB, free: 8.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004529/0.1199, allocations: 458 kB / 0.489 GB, free: 8.492 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.121, allocations: 1.083 MB / 0.49 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.121, allocations: 4 kB / 0.49 GB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.121, allocations: 0 / 0.49 GB, free: 7.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.121, allocations: 0 / 0.49 GB, free: 7.402 MB / 366.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.002848/0.1239, allocations: 1.169 MB / 0.4912 GB, free: 6.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.1239, allocations: 8.031 kB / 0.4912 GB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.1241, allocations: 83.94 kB / 0.4913 GB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007734/0.1249, allocations: 491 kB / 0.4917 GB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.1249, allocations: 41.69 kB / 0.4918 GB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1251, allocations: 60.36 kB / 0.4918 GB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1265, allocations: 0.7601 MB / 0.4926 GB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1265, allocations: 0 / 0.4926 GB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.362e-05/0.1266, allocations: 20 kB / 0.4926 GB, free: 4.691 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.1266, allocations: 12 kB / 0.4926 GB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.1282, allocations: 0.8288 MB / 0.4934 GB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004266/0.1324, allocations: 2.086 MB / 0.4954 GB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1336, allocations: 0.6695 MB / 0.4961 GB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006567/0.1342, allocations: 414.4 kB / 0.4965 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.876e-05/0.1343, allocations: 20.53 kB / 0.4965 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1343, allocations: 39.12 kB / 0.4966 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005628/0.1349, allocations: 159.3 kB / 0.4967 GB, free: 408 kB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.034e-06/0.1349, allocations: 4 kB / 0.4967 GB, free: 404 kB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.009681/0.1446, allocations: 2.552 MB / 0.4992 GB, free: 13.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.1447, allocations: 63.97 kB / 0.4993 GB, free: 13.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.1453, allocations: 493.9 kB / 0.4997 GB, free: 13.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.068e-05/0.1453, allocations: 37.7 kB / 0.4998 GB, free: 13.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.1455, allocations: 296.5 kB / 0.5001 GB, free: 12.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.1457, allocations: 248.4 kB / 0.5003 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/0.146, allocations: 158.6 kB / 0.5004 GB, free: 12.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1462, allocations: 378.7 kB / 0.5008 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006291/0.1468, allocations: 365.8 kB / 0.5012 GB, free: 11.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007497/0.1476, allocations: 0.4909 MB / 0.5016 GB, free: 11.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.149, allocations: 0.869 MB / 0.5025 GB, free: 10.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.149, allocations: 0.7656 kB / 0.5025 GB, free: 10.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005436/0.1545, allocations: 1.658 MB / 0.5041 GB, free: 8.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1545, allocations: 8 kB / 0.5041 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1545, allocations: 3.938 kB / 0.5041 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004071/0.1586, allocations: 0.7398 MB / 0.5048 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.1599, allocations: 247.7 kB / 0.5051 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006053/0.166, allocations: 4.144 MB / 0.5091 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/0.1668, allocations: 32.02 kB / 0.5091 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.494e-05/0.1669, allocations: 43.95 kB / 0.5092 GB, free: 3.18 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.0003681/0.1673, allocations: 206.4 kB / 0.5094 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.1674, allocations: 63.25 kB / 0.5094 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003496/0.1709, allocations: 1.412 MB / 0.5108 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.171, allocations: 8 kB / 0.5108 GB, free: 1.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.171, allocations: 4 kB / 0.5108 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.171, allocations: 3.984 kB / 0.5108 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.172, allocations: 0.7984 MB / 0.5116 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.172, allocations: 0 / 0.5116 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.1732, allocations: 219.7 kB / 0.5118 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/0.1753, allocations: 478.3 kB / 0.5123 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-05/0.1754, allocations: 27.92 kB / 0.5123 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004096/0.1795, allocations: 3.463 MB / 0.5157 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1795, allocations: 4 kB / 0.5157 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00416/0.1836, allocations: 1.804 MB / 0.5175 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.1839, allocations: 152.2 kB / 0.5176 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.46e-05/0.184, allocations: 20 kB / 0.5176 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.1845, allocations: 27.97 kB / 0.5176 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.1847, allocations: 60.91 kB / 0.5177 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.315e-05/0.1847, allocations: 28.09 kB / 0.5177 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004515/0.1852, allocations: 350.8 kB / 0.5181 GB, free: 9.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1852, allocations: 0 / 0.5181 GB, free: 9.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008317/0.186, allocations: 235.8 kB / 0.5183 GB, free: 9.531 MB / 398.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.0002354/0.1863, allocations: 143.7 kB / 0.5184 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.1888, allocations: 1.179 MB / 0.5196 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.1889, allocations: 4.812 kB / 0.5196 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.1903, allocations: 0.6915 MB / 0.5203 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.191, allocations: 138.2 kB / 0.5204 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004164/0.1951, allocations: 2.106 MB / 0.5224 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.1957, allocations: 0.9317 MB / 0.5234 GB, free: 4.258 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005219/0.1962, allocations: 149.3 kB / 0.5235 GB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.1965, allocations: 67.41 kB / 0.5236 GB, free: 4.043 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1965, allocations: 3.938 kB / 0.5236 GB, free: 4.039 MB / 398.1 MB Notification: Performance of Templates: time 0.02602/0.2225, allocations: 13.78 MB / 0.537 GB, free: 6.387 MB / 414.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)