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/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_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") [/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.1014/0.1014, allocations: 21.61 MB / 36.56 MB, free: 1.109 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.0009702/0.0009701, allocations: 182.4 kB / 42.82 MB, free: 3.785 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.253/1.253, allocations: 223.2 MB / 272.1 MB, free: 1.379 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.0009044/0.0009046, allocations: 96.78 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003094, allocations: 8 kB / 397.1 MB, free: 46.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08647, allocations: 55.82 MB / 452.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2944/0.3809, allocations: 82.54 MB / 0.5229 GB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.3813, allocations: 89.09 kB / 0.5229 GB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02674/0.408, allocations: 11.02 MB / 0.5337 GB, free: 9.773 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.408, allocations: 0 / 0.5337 GB, free: 9.773 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.068e-05/0.4081, allocations: 14.62 kB / 0.5337 GB, free: 9.773 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.002365/0.4105, allocations: 0.9221 MB / 0.5346 GB, free: 9.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.4105, allocations: 7.812 kB / 0.5346 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.4108, allocations: 69.78 kB / 0.5347 GB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007181/0.4115, allocations: 455.1 kB / 0.5351 GB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.4115, allocations: 47.02 kB / 0.5352 GB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.4117, allocations: 66.17 kB / 0.5352 GB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.4129, allocations: 0.7678 MB / 0.536 GB, free: 8.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.4129, allocations: 0 / 0.536 GB, free: 8.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.413, allocations: 19.06 kB / 0.536 GB, free: 8.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.413, allocations: 19.34 kB / 0.536 GB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.4143, allocations: 0.8426 MB / 0.5368 GB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/0.4179, allocations: 2.03 MB / 0.5388 GB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008811/0.4188, allocations: 0.689 MB / 0.5395 GB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.818e-05/0.4188, allocations: 22.31 kB / 0.5395 GB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.4189, allocations: 41.06 kB / 0.5396 GB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008132/0.4197, allocations: 207.2 kB / 0.5398 GB, free: 7.246 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.707e-06/0.4197, allocations: 0 / 0.5398 GB, free: 7.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.008241/0.4279, allocations: 2.37 MB / 0.5421 GB, free: 6.254 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.428, allocations: 59.69 kB / 0.5421 GB, free: 6.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.4284, allocations: 388.7 kB / 0.5425 GB, free: 6.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.028e-05/0.4284, allocations: 43.86 kB / 0.5425 GB, free: 5.996 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.4285, allocations: 272.8 kB / 0.5428 GB, free: 5.824 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.4287, allocations: 248.5 kB / 0.543 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-05/0.4287, allocations: 18.48 kB / 0.5431 GB, free: 5.645 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.523e-05/0.4288, allocations: 362.2 kB / 0.5434 GB, free: 5.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000544/0.4294, allocations: 371.4 kB / 0.5438 GB, free: 5.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005887/0.43, allocations: 495 kB / 0.5442 GB, free: 5.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006022/0.4306, allocations: 431.8 kB / 0.5446 GB, free: 5.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4306, allocations: 3.812 kB / 0.5446 GB, free: 5.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.005055/0.4356, allocations: 1.663 MB / 0.5463 GB, free: 4.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.4358, allocations: 1.218 MB / 0.5475 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.4358, allocations: 11.78 kB / 0.5475 GB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004015/0.4399, allocations: 0.7095 MB / 0.5482 GB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.4412, allocations: 321.6 kB / 0.5485 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004978/0.4462, allocations: 3.937 MB / 0.5523 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007092/0.4469, allocations: 41.42 kB / 0.5524 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.995e-05/0.447, allocations: 39.08 kB / 0.5524 GB, free: 15.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.258e-06/0.447, allocations: 7.938 kB / 0.5524 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005226/0.4523, allocations: 1.555 MB / 0.5539 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.4523, allocations: 0 / 0.5539 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/0.4562, allocations: 0.6736 MB / 0.5546 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.4577, allocations: 321.1 kB / 0.5549 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/0.463, allocations: 3.915 MB / 0.5587 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.4637, allocations: 30.94 kB / 0.5587 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.4638, allocations: 42.53 kB / 0.5588 GB, free: 10.16 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004344/0.4642, allocations: 281.5 kB / 0.559 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.4644, allocations: 59.3 kB / 0.5591 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003404/0.4678, allocations: 1.356 MB / 0.5604 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.4678, allocations: 8 kB / 0.5604 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.4678, allocations: 8 kB / 0.5604 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4678, allocations: 11.92 kB / 0.5605 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.4689, allocations: 0.7659 MB / 0.5612 GB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4689, allocations: 0 / 0.5612 GB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.4706, allocations: 318.4 kB / 0.5615 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.4724, allocations: 391.5 kB / 0.5619 GB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.4725, allocations: 28.06 kB / 0.5619 GB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003498/0.476, allocations: 3.197 MB / 0.565 GB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4761, allocations: 48 / 0.565 GB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003484/0.4795, allocations: 1.654 MB / 0.5666 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.4798, allocations: 134.7 kB / 0.5668 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.4799, allocations: 25.92 kB / 0.5668 GB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004897/0.4804, allocations: 25.86 kB / 0.5668 GB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.4805, allocations: 66.64 kB / 0.5669 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.586e-05/0.4806, allocations: 27.23 kB / 0.5669 GB, free: 3.082 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003528/0.481, allocations: 305.7 kB / 0.5672 GB, free: 2.848 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.481, allocations: 0 / 0.5672 GB, free: 2.848 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001266/0.4822, allocations: 400.6 kB / 0.5676 GB, free: 2.5 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 (71): * Single equations (assignments): 68 * 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 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002634/0.4825, allocations: 144.7 kB / 0.5677 GB, free: 2.363 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004207/0.4867, allocations: 1.906 MB / 0.5696 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.4867, allocations: 0 / 0.5696 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.488, allocations: 0.6819 MB / 0.5702 GB, free: 344 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.4885, allocations: 110.1 kB / 0.5704 GB, free: 236 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003901/0.4924, allocations: 2.525 MB / 0.5728 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.493, allocations: 0.9443 MB / 0.5737 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007667/0.4937, allocations: 225 kB / 0.574 GB, free: 12.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.494, allocations: 63.41 kB / 0.574 GB, free: 12.43 MB / 394.7 MB Notification: Performance of SimCode: time 8.11e-07/0.494, allocations: 0 / 0.574 GB, free: 12.43 MB / 394.7 MB Notification: Performance of Templates: time 0.02025/0.5142, allocations: 13.21 MB / 0.5869 GB, free: 15.35 MB / 410.7 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)