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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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_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") [/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.09318/0.09318, allocations: 21.61 MB / 36.56 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009421/0.0009422, allocations: 190.5 kB / 42.83 MB, free: 3.777 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 223.2 MB / 272.1 MB, free: 1.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009218/0.0009217, allocations: 108.8 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002831, allocations: 12 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07992, allocations: 55.82 MB / 452.9 MB, free: 6.617 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2758/0.3558, allocations: 82.45 MB / 0.5228 GB, free: 13.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.3561, allocations: 83.38 kB / 0.5229 GB, free: 13.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02584/0.3819, allocations: 10.79 MB / 0.5334 GB, free: 9.695 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.382, allocations: 0 / 0.5334 GB, free: 9.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.382, allocations: 15.38 kB / 0.5334 GB, free: 9.695 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.001855/0.3839, allocations: 0.9116 MB / 0.5343 GB, free: 9.035 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.3839, allocations: 11.5 kB / 0.5343 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.384, allocations: 65.56 kB / 0.5344 GB, free: 9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005798/0.3846, allocations: 449.9 kB / 0.5348 GB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.3847, allocations: 43.28 kB / 0.5348 GB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3848, allocations: 57.06 kB / 0.5349 GB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.3859, allocations: 0.7601 MB / 0.5356 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.3859, allocations: 0 / 0.5356 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.057e-05/0.386, allocations: 23.5 kB / 0.5357 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.386, allocations: 15.33 kB / 0.5357 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.3871, allocations: 0.8375 MB / 0.5365 GB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004022/0.3912, allocations: 2.368 MB / 0.5388 GB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008479/0.392, allocations: 0.6334 MB / 0.5394 GB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.95e-05/0.3921, allocations: 30.48 kB / 0.5395 GB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.3921, allocations: 39.25 kB / 0.5395 GB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008052/0.3929, allocations: 201.5 kB / 0.5397 GB, free: 7.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.986e-06/0.393, allocations: 0 / 0.5397 GB, free: 7.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.006817/0.3998, allocations: 1.962 MB / 0.5416 GB, free: 6.379 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.3998, allocations: 63.44 kB / 0.5417 GB, free: 6.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.4002, allocations: 395 kB / 0.542 GB, free: 6.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.041e-05/0.4003, allocations: 32.83 kB / 0.5421 GB, free: 6.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.4004, allocations: 273.6 kB / 0.5423 GB, free: 5.953 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.4006, allocations: 241.4 kB / 0.5426 GB, free: 5.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.4006, allocations: 15.5 kB / 0.5426 GB, free: 5.781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.756e-05/0.4007, allocations: 372.1 kB / 0.5429 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.4012, allocations: 338.8 kB / 0.5433 GB, free: 5.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.4018, allocations: 479 kB / 0.5437 GB, free: 5.219 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005735/0.4024, allocations: 416.3 kB / 0.5441 GB, free: 5.168 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4024, allocations: 3.953 kB / 0.5441 GB, free: 5.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.005222/0.4076, allocations: 1.579 MB / 0.5457 GB, free: 4.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002474/0.4079, allocations: 1.231 MB / 0.5469 GB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4079, allocations: 0 / 0.5469 GB, free: 3.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004532/0.4124, allocations: 0.7909 MB / 0.5476 GB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4139, allocations: 312 kB / 0.5479 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.4183, allocations: 3.87 MB / 0.5517 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006867/0.419, allocations: 33.73 kB / 0.5517 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.4191, allocations: 38.25 kB / 0.5518 GB, free: 176 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/0.4191, allocations: 6.062 kB / 0.5518 GB, free: 176 kB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004939/0.424, allocations: 1.473 MB / 0.5532 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4241, allocations: 4 kB / 0.5532 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004283/0.4284, allocations: 0.7589 MB / 0.554 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4299, allocations: 319.2 kB / 0.5543 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00508/0.435, allocations: 3.845 MB / 0.558 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007263/0.4357, allocations: 38.48 kB / 0.5581 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.4358, allocations: 38.84 kB / 0.5581 GB, free: 10.73 MB / 378.7 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 (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004001/0.4362, allocations: 272.2 kB / 0.5584 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.4363, allocations: 59.34 kB / 0.5584 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/0.439, allocations: 1.186 MB / 0.5596 GB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4391, allocations: 12 kB / 0.5596 GB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4391, allocations: 0 / 0.5596 GB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4391, allocations: 3.984 kB / 0.5596 GB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009006/0.44, allocations: 0.7365 MB / 0.5603 GB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.44, allocations: 0 / 0.5603 GB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/0.4422, allocations: 400.6 kB / 0.5607 GB, free: 8.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.4437, allocations: 323.5 kB / 0.561 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.4438, allocations: 22.36 kB / 0.561 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003122/0.4469, allocations: 3.215 MB / 0.5642 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4469, allocations: 7.938 kB / 0.5642 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.4498, allocations: 1.447 MB / 0.5656 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.45, allocations: 146.6 kB / 0.5657 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.239e-05/0.4501, allocations: 22.08 kB / 0.5657 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000461/0.4506, allocations: 31.41 kB / 0.5658 GB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.4507, allocations: 60.91 kB / 0.5658 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.4508, allocations: 26.73 kB / 0.5659 GB, free: 3.859 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003532/0.4511, allocations: 310.3 kB / 0.5661 GB, free: 3.621 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4511, allocations: 0 / 0.5661 GB, free: 3.621 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001148/0.4523, allocations: 388.4 kB / 0.5665 GB, free: 3.285 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (streamNL.w,streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.w,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 (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000228/0.4525, allocations: 153 kB / 0.5667 GB, free: 3.141 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003788/0.4563, allocations: 1.806 MB / 0.5684 GB, free: 1.742 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4563, allocations: 7.938 kB / 0.5684 GB, free: 1.734 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.4577, allocations: 0.6539 MB / 0.5691 GB, free: 1.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.4582, allocations: 112 kB / 0.5692 GB, free: 1.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003536/0.4618, allocations: 2.477 MB / 0.5716 GB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.4622, allocations: 0.9394 MB / 0.5725 GB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007534/0.463, allocations: 228.9 kB / 0.5727 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.4632, allocations: 62.28 kB / 0.5728 GB, free: 13.55 MB / 394.7 MB Notification: Performance of SimCode: time 7.82e-07/0.4632, allocations: 0 / 0.5728 GB, free: 13.55 MB / 394.7 MB Notification: Performance of Templates: time 0.01782/0.4811, allocations: 12.66 MB / 0.5852 GB, free: 1.043 MB / 394.7 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)