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 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_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.09224/0.09224, allocations: 21.61 MB / 36.56 MB, free: 1.086 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.0009156/0.0009155, 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.282/1.282, allocations: 223.2 MB / 272.2 MB, free: 1.426 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.0008206/0.0008204, allocations: 102.2 kB / 328.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 12 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09621, allocations: 55.82 MB / 452.9 MB, free: 6.641 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.3912, allocations: 82.09 MB / 0.5224 GB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.3915, allocations: 86.59 kB / 0.5225 GB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02361/0.4151, allocations: 9.294 MB / 0.5316 GB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4152, allocations: 3.938 kB / 0.5316 GB, free: 10.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.746e-05/0.4152, allocations: 7.844 kB / 0.5316 GB, free: 10.46 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.001761/0.417, allocations: 0.8127 MB / 0.5324 GB, free: 9.855 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.417, allocations: 11.41 kB / 0.5324 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.4172, allocations: 53.72 kB / 0.5325 GB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006146/0.4178, allocations: 391.3 kB / 0.5328 GB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.4179, allocations: 28.56 kB / 0.5329 GB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.418, allocations: 53.83 kB / 0.5329 GB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008702/0.4188, allocations: 0.5549 MB / 0.5334 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.4189, allocations: 0 / 0.5334 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.365e-05/0.4189, allocations: 14.88 kB / 0.5335 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/0.4189, allocations: 11.77 kB / 0.5335 GB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008609/0.4198, allocations: 0.5634 MB / 0.534 GB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.4226, allocations: 1.547 MB / 0.5355 GB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007454/0.4234, allocations: 0.498 MB / 0.536 GB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.201e-05/0.4235, allocations: 19.73 kB / 0.536 GB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.4235, allocations: 31 kB / 0.5361 GB, free: 8.391 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003486/0.4239, allocations: 81.56 kB / 0.5361 GB, free: 8.359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.775e-06/0.4239, allocations: 0 / 0.5361 GB, free: 8.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.001262/0.4251, allocations: 0.776 MB / 0.5369 GB, free: 8.199 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.4252, allocations: 59.75 kB / 0.537 GB, free: 8.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002836/0.4255, allocations: 340.3 kB / 0.5373 GB, free: 7.988 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.75e-05/0.4255, allocations: 33.55 kB / 0.5373 GB, free: 7.957 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.4256, allocations: 244.4 kB / 0.5375 GB, free: 7.797 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.4258, allocations: 182.8 kB / 0.5377 GB, free: 7.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.4258, allocations: 7.688 kB / 0.5377 GB, free: 7.668 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.4259, allocations: 365.6 kB / 0.5381 GB, free: 7.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/0.4263, allocations: 266.8 kB / 0.5383 GB, free: 7.293 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.4267, allocations: 370.5 kB / 0.5387 GB, free: 7.137 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.4272, allocations: 320.5 kB / 0.539 GB, free: 7.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4272, allocations: 0 / 0.539 GB, free: 7.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001962/0.4292, allocations: 0.8897 MB / 0.5399 GB, free: 6.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.4294, allocations: 1.136 MB / 0.541 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.4294, allocations: 7.828 kB / 0.541 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.4307, allocations: 202.4 kB / 0.5412 GB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.432, allocations: 300.5 kB / 0.5415 GB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005949/0.4326, allocations: 1.17 MB / 0.5426 GB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.4331, allocations: 33.12 kB / 0.5426 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.4332, allocations: 29.55 kB / 0.5427 GB, free: 4.434 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.4332, allocations: 3.844 kB / 0.5427 GB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001627/0.4348, allocations: 0.7903 MB / 0.5434 GB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4348, allocations: 3.969 kB / 0.5434 GB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009236/0.4358, allocations: 178.4 kB / 0.5436 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.437, allocations: 303.8 kB / 0.5439 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005079/0.4375, allocations: 1.152 MB / 0.545 GB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.438, allocations: 33.09 kB / 0.5451 GB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.4381, allocations: 22.92 kB / 0.5451 GB, free: 3.031 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 (74): * 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): 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.0002694/0.4383, allocations: 262.8 kB / 0.5453 GB, free: 2.824 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/0.4384, allocations: 46.58 kB / 0.5454 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.4396, allocations: 0.7248 MB / 0.5461 GB, free: 2.609 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.4396, allocations: 7.75 kB / 0.5461 GB, free: 2.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4397, allocations: 0 / 0.5461 GB, free: 2.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4397, allocations: 3.984 kB / 0.5461 GB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006951/0.4404, allocations: 0.6216 MB / 0.5467 GB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4404, allocations: 0 / 0.5467 GB, free: 2.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/0.4424, allocations: 380 kB / 0.5471 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.4424, allocations: 3.953 kB / 0.5471 GB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-05/0.4424, allocations: 18.92 kB / 0.5471 GB, free: 2.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002937/0.4427, allocations: 1.174 MB / 0.5482 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4428, allocations: 3.953 kB / 0.5482 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.444, allocations: 0.9397 MB / 0.5491 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.4441, allocations: 123.5 kB / 0.5493 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.712e-05/0.4442, allocations: 21.73 kB / 0.5493 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.4445, allocations: 23.17 kB / 0.5493 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.567e-05/0.4446, allocations: 54.22 kB / 0.5494 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.4447, allocations: 18.64 kB / 0.5494 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002179/0.4449, allocations: 268.5 kB / 0.5496 GB, free: 460 kB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4449, allocations: 3.812 kB / 0.5496 GB, free: 460 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007132/0.4456, allocations: 282.1 kB / 0.5499 GB, free: 432 kB / 362.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 (64): * Single equations (assignments): 62 * 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: 0 * 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: Performance of Backend phase and start with SimCode phase: time 0.0001768/0.4458, allocations: 132.5 kB / 0.55 GB, free: 328 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.4477, allocations: 1.042 MB / 0.5511 GB, free: 140 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4477, allocations: 0 / 0.5511 GB, free: 140 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007752/0.4485, allocations: 370.7 kB / 0.5514 GB, free: 68 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.4489, allocations: 94.59 kB / 0.5515 GB, free: 40 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.4525, allocations: 2.213 MB / 0.5537 GB, free: 14.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.4529, allocations: 0.8787 MB / 0.5545 GB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007108/0.4536, allocations: 216.3 kB / 0.5547 GB, free: 13.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.4538, allocations: 51.23 kB / 0.5548 GB, free: 13.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.823e-06/0.4539, allocations: 0 / 0.5548 GB, free: 13.21 MB / 378.7 MB Notification: Performance of Templates: time 0.01333/0.4672, allocations: 7.995 MB / 0.5626 GB, free: 5.348 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)