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_001.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1093/0.1093, allocations: 21.44 MB / 36.39 MB, free: 1.008 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 196.2 kB / 42.63 MB, free: 3.848 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.4 MB / 254.1 MB, free: 15.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009429/0.0009428, allocations: 93.05 kB / 307.8 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004822/0.0004824, allocations: 7.969 kB / 373.2 MB, free: 59.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1345, allocations: 52.96 MB / 426.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.588, allocations: 81.03 MB / 0.4953 GB, free: 17.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5884, allocations: 86.36 kB / 0.4954 GB, free: 17.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02487/0.6133, allocations: 8.076 MB / 0.5033 GB, free: 17.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.6133, allocations: 0 / 0.5033 GB, free: 17.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.998e-05/0.6134, allocations: 12.25 kB / 0.5033 GB, free: 17.09 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001755/0.6151, allocations: 0.7842 MB / 0.5041 GB, free: 16.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.6152, allocations: 14 kB / 0.5041 GB, free: 16.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.6153, allocations: 58.64 kB / 0.5041 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.6159, allocations: 385.6 kB / 0.5045 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.6159, allocations: 33.5 kB / 0.5045 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.791e-05/0.616, allocations: 46.42 kB / 0.5046 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.617, allocations: 0.5279 MB / 0.5051 GB, free: 16.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.6171, allocations: 0 / 0.5051 GB, free: 16.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.81e-05/0.6171, allocations: 24.91 kB / 0.5051 GB, free: 16.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.6171, allocations: 10.56 kB / 0.5051 GB, free: 16.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000975/0.6181, allocations: 0.5376 MB / 0.5057 GB, free: 16.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.6213, allocations: 1.531 MB / 0.5072 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008482/0.6221, allocations: 486.6 kB / 0.5076 GB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001707/0.6223, allocations: 103.4 kB / 0.5077 GB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.6223, allocations: 36.94 kB / 0.5078 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003898/0.6227, allocations: 74.31 kB / 0.5078 GB, free: 15.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.267e-06/0.6228, allocations: 0.6562 kB / 0.5078 GB, free: 15.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.003916/0.6267, allocations: 1.159 MB / 0.509 GB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.6267, allocations: 69.22 kB / 0.509 GB, free: 15.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.6271, allocations: 329 kB / 0.5093 GB, free: 15.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.859e-05/0.6272, allocations: 38.77 kB / 0.5094 GB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.6273, allocations: 241.6 kB / 0.5096 GB, free: 15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.6275, allocations: 176.5 kB / 0.5098 GB, free: 14.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.6275, allocations: 13.31 kB / 0.5098 GB, free: 14.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.171e-05/0.6276, allocations: 355.5 kB / 0.5101 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.628, allocations: 248.5 kB / 0.5104 GB, free: 14.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.6286, allocations: 362.6 kB / 0.5107 GB, free: 14.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005224/0.6291, allocations: 302.3 kB / 0.511 GB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.6291, allocations: 5.234 kB / 0.511 GB, free: 14.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002827/0.6319, allocations: 0.9449 MB / 0.5119 GB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.632, allocations: 3.844 kB / 0.5119 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.632, allocations: 7.828 kB / 0.5119 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003349/0.6353, allocations: 344.3 kB / 0.5123 GB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.6366, allocations: 284.4 kB / 0.5125 GB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006075/0.6373, allocations: 1.15 MB / 0.5137 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.6378, allocations: 35.86 kB / 0.5137 GB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-05/0.6379, allocations: 27.62 kB / 0.5137 GB, free: 13.22 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008377/0.6387, allocations: 178.3 kB / 0.5139 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.18e-05/0.6388, allocations: 50.88 kB / 0.5139 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002735/0.6416, allocations: 0.9135 MB / 0.5148 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.6416, allocations: 11.62 kB / 0.5148 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.6416, allocations: 0 / 0.5148 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.6416, allocations: 2.766 kB / 0.5148 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007851/0.6424, allocations: 0.6111 MB / 0.5154 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.6424, allocations: 3.938 kB / 0.5154 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.6436, allocations: 252.9 kB / 0.5157 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003112/0.6467, allocations: 337.2 kB / 0.516 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.635e-05/0.6468, allocations: 19.66 kB / 0.516 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009279/0.6477, allocations: 1.161 MB / 0.5172 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.6478, allocations: 0 / 0.5172 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.6511, allocations: 1.145 MB / 0.5183 GB, free: 27.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.6513, allocations: 124.4 kB / 0.5184 GB, free: 27.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.563e-05/0.6514, allocations: 23.2 kB / 0.5184 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.6517, allocations: 24.78 kB / 0.5184 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.6519, allocations: 38.62 kB / 0.5185 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-05/0.6519, allocations: 18.97 kB / 0.5185 GB, free: 27.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003505/0.6523, allocations: 262.6 kB / 0.5187 GB, free: 27.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6523, allocations: 0 / 0.5187 GB, free: 27.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007821/0.6531, allocations: 169.8 kB / 0.5189 GB, free: 27.23 MB / 378.7 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 (54): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002821/0.6534, allocations: 139.7 kB / 0.519 GB, free: 27.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.6547, allocations: 0.6155 MB / 0.5196 GB, free: 27.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.6547, allocations: 0 / 0.5196 GB, free: 27.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005863/0.6553, allocations: 325.2 kB / 0.52 GB, free: 27.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.6557, allocations: 91.61 kB / 0.52 GB, free: 27.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.6586, allocations: 2.013 MB / 0.522 GB, free: 26.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.659, allocations: 0.8712 MB / 0.5229 GB, free: 25.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004231/0.6595, allocations: 134.1 kB / 0.523 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.6596, allocations: 44.75 kB / 0.523 GB, free: 25.28 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.6596, allocations: 3.938 kB / 0.523 GB, free: 25.28 MB / 378.7 MB Notification: Performance of Templates: time 0.01004/0.6697, allocations: 7.109 MB / 0.53 GB, free: 24.7 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)