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_004_LTI.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_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") [/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.09627/0.09627, allocations: 21.61 MB / 36.56 MB, free: 1.141 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.001033/0.001033, allocations: 179.6 kB / 42.83 MB, free: 3.832 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.244/1.244, allocations: 223.2 MB / 272.1 MB, free: 1.414 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.0008526/0.0008526, allocations: 103.2 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003576, allocations: 8 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08223/0.0826, allocations: 55.82 MB / 452.9 MB, free: 6.613 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.274/0.3566, allocations: 79.7 MB / 0.5201 GB, free: 13.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.3569, allocations: 80.92 kB / 0.5202 GB, free: 13.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007877/0.3647, allocations: 2.702 MB / 0.5228 GB, free: 12.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3648, allocations: 4 kB / 0.5228 GB, free: 12.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.3648, allocations: 3.844 kB / 0.5228 GB, free: 12.95 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006164/0.3654, allocations: 484.1 kB / 0.5233 GB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.3654, allocations: 7.219 kB / 0.5233 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.367e-05/0.3655, allocations: 15.12 kB / 0.5233 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.3659, allocations: 273.7 kB / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.3659, allocations: 7.5 kB / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.366, allocations: 3.688 kB / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.3661, allocations: 99.84 kB / 0.5237 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3661, allocations: 3.938 kB / 0.5237 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3661, allocations: 0 / 0.5237 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3662, allocations: 7.828 kB / 0.5237 GB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.3663, allocations: 81.05 kB / 0.5238 GB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.3667, allocations: 401.3 kB / 0.5241 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.3671, allocations: 148.2 kB / 0.5243 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.3671, allocations: 3 kB / 0.5243 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.089e-05/0.3671, allocations: 34.19 kB / 0.5243 GB, free: 11.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.3671, allocations: 0 / 0.5243 GB, free: 11.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.002048/0.3692, allocations: 475.6 kB / 0.5248 GB, free: 11.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.748e-05/0.3692, allocations: 54.73 kB / 0.5248 GB, free: 11.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.3695, allocations: 218.2 kB / 0.525 GB, free: 11.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.3696, allocations: 25.7 kB / 0.525 GB, free: 11.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.3696, allocations: 118 kB / 0.5252 GB, free: 11.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.3696, allocations: 37.41 kB / 0.5252 GB, free: 11.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.3697, allocations: 0 / 0.5252 GB, free: 11.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.943e-05/0.3697, allocations: 328 kB / 0.5255 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.05e-05/0.3698, allocations: 37.3 kB / 0.5255 GB, free: 11.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.484e-05/0.3698, allocations: 37.97 kB / 0.5256 GB, free: 11.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.428e-05/0.3699, allocations: 38.11 kB / 0.5256 GB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3699, allocations: 0 / 0.5256 GB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008084/0.3707, allocations: 243.5 kB / 0.5258 GB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3707, allocations: 5.828 kB / 0.5259 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.3707, allocations: 7.953 kB / 0.5259 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007918/0.3715, allocations: 116.1 kB / 0.526 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.373e-05/0.3716, allocations: 12.67 kB / 0.526 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.3744, allocations: 1.777 MB / 0.5277 GB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.3746, allocations: 32.58 kB / 0.5278 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.3746, allocations: 3.844 kB / 0.5278 GB, free: 9.738 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/0.3747, allocations: 132.7 kB / 0.5279 GB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.229e-05/0.3748, allocations: 19.47 kB / 0.5279 GB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006837/0.3754, allocations: 266.2 kB / 0.5282 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3755, allocations: 0 / 0.5282 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.3755, allocations: 0 / 0.5282 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3755, allocations: 3.906 kB / 0.5282 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.3756, allocations: 247 kB / 0.5284 GB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3757, allocations: 0 / 0.5284 GB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.508e-05/0.3757, allocations: 11.44 kB / 0.5284 GB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005229/0.3763, allocations: 109.7 kB / 0.5285 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.3763, allocations: 4.375 kB / 0.5285 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.3782, allocations: 1.715 MB / 0.5302 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3782, allocations: 3.984 kB / 0.5302 GB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000711/0.3789, allocations: 395.9 kB / 0.5306 GB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.379, allocations: 104.5 kB / 0.5307 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.379, allocations: 7.25 kB / 0.5307 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.3792, allocations: 23.03 kB / 0.5307 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-05/0.3792, allocations: 15.61 kB / 0.5307 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.3793, allocations: 7.828 kB / 0.5307 GB, free: 7.559 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002896/0.3795, allocations: 184.6 kB / 0.5309 GB, free: 7.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3796, allocations: 0 / 0.5309 GB, free: 7.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002575/0.3798, allocations: 29.94 kB / 0.5309 GB, free: 7.453 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 9.802e-05/0.3799, allocations: 116.6 kB / 0.531 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.3802, allocations: 249 kB / 0.5313 GB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3803, allocations: 0 / 0.5313 GB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.3804, allocations: 192.8 kB / 0.5315 GB, free: 7.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.3806, allocations: 16.98 kB / 0.5315 GB, free: 7.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004207/0.3811, allocations: 345.3 kB / 0.5318 GB, free: 6.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.3812, allocations: 0.7344 MB / 0.5325 GB, free: 6.105 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.044e-05/0.3813, allocations: 21.62 kB / 0.5325 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.3813, allocations: 16.56 kB / 0.5326 GB, free: 6.086 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3813, allocations: 0 / 0.5326 GB, free: 6.086 MB / 362.7 MB Notification: Performance of Templates: time 0.00367/0.385, allocations: 2.261 MB / 0.5348 GB, free: 4.988 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)