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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) [/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.1051/0.1051, allocations: 21.61 MB / 36.56 MB, free: 1.102 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.001049/0.001049, allocations: 186.4 kB / 42.83 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.436/1.436, allocations: 223.2 MB / 272.1 MB, free: 1.758 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.0009278/0.0009278, allocations: 99.81 kB / 328.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002914, allocations: 12 kB / 397.1 MB, free: 46.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08487/0.08518, allocations: 55.82 MB / 452.9 MB, free: 6.578 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3345/0.4197, allocations: 82.44 MB / 0.5228 GB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.42, allocations: 84.73 kB / 0.5229 GB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02779/0.4478, allocations: 10.79 MB / 0.5335 GB, free: 9.371 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4479, allocations: 0 / 0.5335 GB, free: 9.371 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.248e-05/0.4479, allocations: 15.69 kB / 0.5335 GB, free: 9.367 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.002363/0.4503, allocations: 0.9057 MB / 0.5344 GB, free: 8.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4503, allocations: 15.47 kB / 0.5344 GB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.4505, allocations: 92.11 kB / 0.5345 GB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.4507, allocations: 65.75 kB / 0.5345 GB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006871/0.4514, allocations: 458 kB / 0.535 GB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.4514, allocations: 39.28 kB / 0.535 GB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4516, allocations: 61.2 kB / 0.5351 GB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.4528, allocations: 0.7549 MB / 0.5358 GB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.4528, allocations: 3.844 kB / 0.5358 GB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.637e-05/0.4529, allocations: 22.92 kB / 0.5358 GB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.4529, allocations: 15.12 kB / 0.5358 GB, free: 8.055 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.4542, allocations: 0.8415 MB / 0.5367 GB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0046/0.4589, allocations: 2.369 MB / 0.539 GB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009489/0.4598, allocations: 0.6441 MB / 0.5396 GB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.376e-05/0.4599, allocations: 19.16 kB / 0.5396 GB, free: 6.793 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.4599, allocations: 42.34 kB / 0.5397 GB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009605/0.4609, allocations: 206.2 kB / 0.5399 GB, free: 6.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 6.131e-06/0.4609, allocations: 0 / 0.5399 GB, free: 6.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.007969/0.4689, allocations: 1.963 MB / 0.5418 GB, free: 5.992 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.469, allocations: 59.59 kB / 0.5418 GB, free: 5.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.4695, allocations: 390.7 kB / 0.5422 GB, free: 5.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-05/0.4696, allocations: 40.27 kB / 0.5422 GB, free: 5.738 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.4697, allocations: 267.4 kB / 0.5425 GB, free: 5.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.4699, allocations: 239.4 kB / 0.5427 GB, free: 5.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-05/0.47, allocations: 18.06 kB / 0.5427 GB, free: 5.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4702, allocations: 373.1 kB / 0.5431 GB, free: 5.066 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000634/0.4708, allocations: 343.4 kB / 0.5434 GB, free: 5.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006788/0.4715, allocations: 468.5 kB / 0.5439 GB, free: 4.836 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.4722, allocations: 422 kB / 0.5443 GB, free: 4.785 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4722, allocations: 0 / 0.5443 GB, free: 4.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.005847/0.4781, allocations: 1.58 MB / 0.5458 GB, free: 4.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003934/0.4785, allocations: 1.225 MB / 0.547 GB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.4785, allocations: 7.906 kB / 0.547 GB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005039/0.4836, allocations: 0.7921 MB / 0.5478 GB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/0.4852, allocations: 302.7 kB / 0.5481 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005177/0.4904, allocations: 3.869 MB / 0.5519 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.4913, allocations: 37.8 kB / 0.5519 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.4915, allocations: 38.72 kB / 0.5519 GB, free: 15.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.4915, allocations: 3.844 kB / 0.5519 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005511/0.497, allocations: 1.477 MB / 0.5534 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.4971, allocations: 4 kB / 0.5534 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004628/0.5017, allocations: 0.7658 MB / 0.5541 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.5033, allocations: 310.8 kB / 0.5544 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.5091, allocations: 3.836 MB / 0.5582 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007773/0.5099, allocations: 35.2 kB / 0.5582 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.51, allocations: 46.7 kB / 0.5582 GB, free: 10.44 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.0004938/0.5105, allocations: 274.1 kB / 0.5585 GB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.5107, allocations: 51.34 kB / 0.5586 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.5137, allocations: 1.19 MB / 0.5597 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/0.5138, allocations: 11.94 kB / 0.5597 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5138, allocations: 4 kB / 0.5597 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5138, allocations: 3.984 kB / 0.5597 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.5149, allocations: 0.7388 MB / 0.5605 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.5149, allocations: 0 / 0.5605 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/0.5173, allocations: 399.5 kB / 0.5608 GB, free: 8.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/0.5188, allocations: 324.9 kB / 0.5612 GB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.5189, allocations: 22.23 kB / 0.5612 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.5224, allocations: 3.214 MB / 0.5643 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5225, allocations: 0 / 0.5643 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/0.5259, allocations: 1.455 MB / 0.5657 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.5262, allocations: 143.8 kB / 0.5659 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.5264, allocations: 22.39 kB / 0.5659 GB, free: 3.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/0.5269, allocations: 30.91 kB / 0.5659 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.5271, allocations: 56.22 kB / 0.566 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/0.5272, allocations: 23.67 kB / 0.566 GB, free: 3.582 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005437/0.5277, allocations: 319.1 kB / 0.5663 GB, free: 3.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5277, allocations: 0 / 0.5663 GB, free: 3.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001558/0.5293, allocations: 382.9 kB / 0.5667 GB, free: 3.004 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.003571/0.5329, allocations: 2.045 MB / 0.5687 GB, free: 1.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004201/0.5371, allocations: 1.816 MB / 0.5704 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5371, allocations: 0 / 0.5704 GB, free: 15.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.5386, allocations: 0.6538 MB / 0.5711 GB, free: 15.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/0.5391, allocations: 115.8 kB / 0.5712 GB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005379/0.5445, allocations: 4.897 MB / 0.576 GB, free: 10.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005661/0.5451, allocations: 0.94 MB / 0.5769 GB, free: 9.535 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000789/0.5459, allocations: 225 kB / 0.5771 GB, free: 9.316 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004133/0.5463, allocations: 243.3 kB / 0.5773 GB, free: 9.078 MB / 394.7 MB Notification: Performance of SimCode: time 2.434e-06/0.5464, allocations: 0 / 0.5773 GB, free: 9.078 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03542/0.5818, allocations: 18.13 MB / 0.595 GB, free: 7.301 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/0.5821, allocations: 264 kB / 0.5953 GB, free: 6.961 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.043, allocations: 0 / 0.5953 GB, free: 6.961 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)