Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_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_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_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.1089/0.1089, allocations: 21.61 MB / 36.56 MB, free: 1.082 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.001375/0.001375, allocations: 183.1 kB / 42.82 MB, free: 3.789 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.289/1.289, allocations: 223.2 MB / 272.1 MB, free: 1.785 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.0007866/0.0007868, allocations: 108.5 kB / 328.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003172, allocations: 15.98 kB / 397 MB, free: 46.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09304, allocations: 55.82 MB / 452.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3087/0.4018, allocations: 81.27 MB / 0.5216 GB, free: 12.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.402, allocations: 76.67 kB / 0.5217 GB, free: 12.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009524/0.4115, allocations: 4.272 MB / 0.5259 GB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4116, allocations: 7.781 kB / 0.5259 GB, free: 12.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.4116, allocations: 3.844 kB / 0.5259 GB, free: 12.05 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007372/0.4123, allocations: 0.5536 MB / 0.5264 GB, free: 11.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.4124, allocations: 11.16 kB / 0.5264 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.473e-05/0.4125, allocations: 27.28 kB / 0.5264 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.413, allocations: 359.7 kB / 0.5268 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.413, allocations: 23.17 kB / 0.5268 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.413, allocations: 14.91 kB / 0.5268 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.4133, allocations: 203.4 kB / 0.527 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4133, allocations: 3.938 kB / 0.527 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.4133, allocations: 7.391 kB / 0.527 GB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.4134, allocations: 7.5 kB / 0.527 GB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/0.4136, allocations: 129 kB / 0.5272 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000859/0.4144, allocations: 0.8363 MB / 0.528 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4147, allocations: 99.11 kB / 0.5281 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.4147, allocations: 4.984 kB / 0.5281 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.227e-05/0.4147, allocations: 33.78 kB / 0.5281 GB, free: 10.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.4147, allocations: 1.312 kB / 0.5281 GB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002925/0.415, allocations: 149.8 kB / 0.5283 GB, free: 10.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.4151, allocations: 51.41 kB / 0.5283 GB, free: 10.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.4153, allocations: 254.5 kB / 0.5285 GB, free: 10.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.4153, allocations: 25.7 kB / 0.5286 GB, free: 10.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.4154, allocations: 177.8 kB / 0.5287 GB, free: 9.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.4154, allocations: 34.14 kB / 0.5288 GB, free: 9.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.4154, allocations: 3.812 kB / 0.5288 GB, free: 9.957 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.676e-05/0.4155, allocations: 337.5 kB / 0.5291 GB, free: 9.633 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.413e-05/0.4155, allocations: 36.14 kB / 0.5291 GB, free: 9.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.894e-05/0.4156, allocations: 60.58 kB / 0.5292 GB, free: 9.598 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.852e-05/0.4157, allocations: 58.58 kB / 0.5292 GB, free: 9.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4157, allocations: 0 / 0.5292 GB, free: 9.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002228/0.4159, allocations: 171.2 kB / 0.5294 GB, free: 9.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.416, allocations: 7.688 kB / 0.5294 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.416, allocations: 0 / 0.5294 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.416, allocations: 1.094 kB / 0.5294 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.4162, allocations: 38.94 kB / 0.5295 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.4162, allocations: 0 / 0.5295 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.4163, allocations: 19.31 kB / 0.5295 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.4164, allocations: 7.719 kB / 0.5295 GB, free: 9.5 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.4165, allocations: 136.9 kB / 0.5296 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.4166, allocations: 35.02 kB / 0.5296 GB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.4169, allocations: 158.6 kB / 0.5298 GB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.4169, allocations: 3.844 kB / 0.5298 GB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4169, allocations: 0 / 0.5298 GB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.4169, allocations: 7.875 kB / 0.5298 GB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.4171, allocations: 284.5 kB / 0.5301 GB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4171, allocations: 1.75 kB / 0.5301 GB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.4173, allocations: 34.36 kB / 0.5301 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4173, allocations: 0 / 0.5301 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.4173, allocations: 0 / 0.5301 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4173, allocations: 3.844 kB / 0.5301 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.4174, allocations: 0 / 0.5301 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.4176, allocations: 275.8 kB / 0.5304 GB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.4177, allocations: 111.4 kB / 0.5305 GB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.4177, allocations: 0 / 0.5305 GB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4179, allocations: 10.94 kB / 0.5305 GB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.4179, allocations: 7.672 kB / 0.5305 GB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.4179, allocations: 0 / 0.5305 GB, free: 8.746 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001441/0.4181, allocations: 211.6 kB / 0.5307 GB, free: 8.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4181, allocations: 0 / 0.5307 GB, free: 8.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002608/0.4183, allocations: 56.94 kB / 0.5308 GB, free: 8.641 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001116/0.4184, allocations: 109.3 kB / 0.5309 GB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.4186, allocations: 102.1 kB / 0.531 GB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.4186, allocations: 3.688 kB / 0.531 GB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.155e-05/0.4187, allocations: 48.55 kB / 0.531 GB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.419, allocations: 50.92 kB / 0.5311 GB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.4199, allocations: 0.7085 MB / 0.5318 GB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.42, allocations: 0.7623 MB / 0.5325 GB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.4202, allocations: 38.17 kB / 0.5325 GB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.4202, allocations: 30.52 kB / 0.5326 GB, free: 7.238 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4202, allocations: 4 kB / 0.5326 GB, free: 7.234 MB / 362.7 MB Notification: Performance of Templates: time 0.005049/0.4253, allocations: 2.507 MB / 0.535 GB, free: 6.035 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)