Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.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_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") translateModel(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") [/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.09515/0.09515, allocations: 21.62 MB / 36.56 MB, free: 1.043 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.0009748/0.0009748, allocations: 183.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.224/1.224, allocations: 223.2 MB / 272.2 MB, free: 1.383 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.0008556/0.0008556, allocations: 87.08 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.0003829, allocations: 8 kB / 397 MB, free: 46.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09593, allocations: 55.83 MB / 452.9 MB, free: 6.621 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2545/0.3505, allocations: 84.3 MB / 0.5246 GB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.3507, allocations: 81.36 kB / 0.5247 GB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0265/0.3772, allocations: 12.57 MB / 0.5369 GB, free: 8.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3772, allocations: 0 / 0.5369 GB, free: 8.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.654e-05/0.3773, allocations: 11.38 kB / 0.5369 GB, free: 8.547 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001766/0.379, allocations: 1.087 MB / 0.538 GB, free: 7.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.891e-05/0.3791, allocations: 11.41 kB / 0.538 GB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.3792, allocations: 81.91 kB / 0.5381 GB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007544/0.38, allocations: 0.5651 MB / 0.5386 GB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.38, allocations: 42.47 kB / 0.5387 GB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.3801, allocations: 69.47 kB / 0.5387 GB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.3814, allocations: 0.9336 MB / 0.5397 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3814, allocations: 0 / 0.5397 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.736e-05/0.3815, allocations: 29.47 kB / 0.5397 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.3815, allocations: 15.38 kB / 0.5397 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.3827, allocations: 0.7741 MB / 0.5405 GB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00357/0.3862, allocations: 3.268 MB / 0.5436 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.3884, allocations: 1.032 MB / 0.5447 GB, free: 4.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.043e-05/0.3885, allocations: 20 kB / 0.5447 GB, free: 4.922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.3885, allocations: 38.66 kB / 0.5447 GB, free: 4.883 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000241/0.3888, allocations: 56.89 kB / 0.5448 GB, free: 4.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 1.803e-06/0.3888, allocations: 3.844 kB / 0.5448 GB, free: 4.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=60): time 0.003102/0.3919, allocations: 1.947 MB / 0.5467 GB, free: 4.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.3919, allocations: 55.84 kB / 0.5467 GB, free: 3.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.3923, allocations: 379 kB / 0.5471 GB, free: 3.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.3923, allocations: 39.08 kB / 0.5471 GB, free: 3.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.3924, allocations: 289.9 kB / 0.5474 GB, free: 3.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.3926, allocations: 239.1 kB / 0.5476 GB, free: 3.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.3926, allocations: 15.25 kB / 0.5476 GB, free: 3.414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/0.3927, allocations: 370.8 kB / 0.548 GB, free: 3.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006524/0.3934, allocations: 464.2 kB / 0.5484 GB, free: 3.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006888/0.3941, allocations: 0.5334 MB / 0.549 GB, free: 2.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007015/0.3948, allocations: 0.5318 MB / 0.5495 GB, free: 2.828 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3948, allocations: 0 / 0.5495 GB, free: 2.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002536/0.3973, allocations: 1.418 MB / 0.5509 GB, free: 1.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.3975, allocations: 0.6181 MB / 0.5515 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3975, allocations: 8 kB / 0.5515 GB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.3989, allocations: 337.7 kB / 0.5518 GB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009517/0.3998, allocations: 239.3 kB / 0.552 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005692/0.4055, allocations: 8.017 MB / 0.5599 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006289/0.4062, allocations: 65.88 kB / 0.5599 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-05/0.4062, allocations: 23.94 kB / 0.5599 GB, free: 8.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.233e-06/0.4063, allocations: 4 kB / 0.5599 GB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002616/0.4089, allocations: 1.332 MB / 0.5612 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.4089, allocations: 0 / 0.5612 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.4101, allocations: 314.6 kB / 0.5615 GB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.4111, allocations: 245.6 kB / 0.5618 GB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/0.4166, allocations: 8.013 MB / 0.5696 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006187/0.4172, allocations: 63.62 kB / 0.5697 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/0.4173, allocations: 22.31 kB / 0.5697 GB, free: 14.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (84): * Single equations (assignments): 78 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004614/0.4177, allocations: 331.8 kB / 0.57 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.4179, allocations: 59.33 kB / 0.5701 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.4199, allocations: 1.162 MB / 0.5712 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.42, allocations: 4 kB / 0.5712 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.42, allocations: 4 kB / 0.5712 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.42, allocations: 7.938 kB / 0.5712 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009787/0.421, allocations: 0.9156 MB / 0.5721 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.421, allocations: 11.94 kB / 0.5721 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.4226, allocations: 290.8 kB / 0.5724 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004616/0.4231, allocations: 168 kB / 0.5725 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.221e-05/0.4232, allocations: 37.22 kB / 0.5726 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00468/0.4279, allocations: 7.561 MB / 0.58 GB, free: 4.926 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4279, allocations: 0 / 0.58 GB, free: 4.926 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.4307, allocations: 1.587 MB / 0.5815 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.4309, allocations: 132.4 kB / 0.5816 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.431, allocations: 39.98 kB / 0.5817 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.4315, allocations: 51.84 kB / 0.5817 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.4317, allocations: 56.47 kB / 0.5818 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.4317, allocations: 20 kB / 0.5818 GB, free: 3.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003286/0.432, allocations: 295.1 kB / 0.5821 GB, free: 2.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4321, allocations: 0 / 0.5821 GB, free: 2.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001138/0.4332, allocations: 459 kB / 0.5825 GB, free: 2.281 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 22 (Vessel.lfrac,tube.fluidStream.w,tube.fluidStream.T[1],tube.fluidStream.T[2],tube.fluidStream.T[3],tube.fluidStream.T[4],tube.fluidStream.T[5],tube.wall.wall.T[1,1],tube.wall.wall.T[1,2],tube.wall.wall.T[1,3],tube.wall.wall.T[2,1],tube.wall.wall.T[2,2],tube.wall.wall.T[2,3],tube.wall.wall.T[3,1],tube.wall.wall.T[3,2],tube.wall.wall.T[3,3],tube.wall.wall.T[4,1],tube.wall.wall.T[4,2],tube.wall.wall.T[4,3],tube.wall.wall.T[5,1],tube.wall.wall.T[5,2],tube.wall.wall.T[5,3]) * 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 (64): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002153/0.4334, allocations: 150.7 kB / 0.5827 GB, free: 2.125 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00407/0.4375, allocations: 2.808 MB / 0.5854 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4375, allocations: 4.375 kB / 0.5854 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.439, allocations: 1.078 MB / 0.5865 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006/0.4396, allocations: 161.3 kB / 0.5866 GB, free: 13.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.4447, allocations: 3.562 MB / 0.5901 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.4453, allocations: 0.9939 MB / 0.5911 GB, free: 9.281 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000879/0.4462, allocations: 312.5 kB / 0.5914 GB, free: 8.977 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.4464, allocations: 55.36 kB / 0.5914 GB, free: 8.922 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4464, allocations: 0 / 0.5914 GB, free: 8.922 MB / 410.7 MB Notification: Performance of Templates: time 0.01886/0.4653, allocations: 13.38 MB / 0.6045 GB, free: 11.69 MB / 426.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.sim & ./AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe 2>&1)