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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.09228/0.09228, allocations: 21.6 MB / 37.4 MB, free: 0.7461 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 188.5 kB / 43.63 MB, free: 3.57 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.1 MB / 254.8 MB, free: 14.26 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009497/0.0009498, allocations: 104 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 57.28 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07593/0.07719, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003006/0.08024, allocations: 2.856 MB / 427.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007265/0.08099, allocations: 406.5 kB / 427.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001922/0.0812, allocations: 11.94 kB / 427.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.589e-05/0.0813, allocations: 35.75 kB / 427.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.08156, allocations: 99.17 kB / 427.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001862/0.08176, allocations: 59.88 kB / 427.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.082, allocations: 342.3 kB / 428.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.08221, allocations: 161.3 kB / 428.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.08238, allocations: 139.3 kB / 428.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.08252, allocations: 127.3 kB / 428.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.08256, allocations: 12 kB / 428.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.08267, allocations: 43.97 kB / 428.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.183e-05/0.08273, allocations: 43.78 kB / 428.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.557e-05/0.08283, allocations: 131.3 kB / 428.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.08305, allocations: 290.9 kB / 429 MB, free: 9.777 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.08306, allocations: 0 / 429 MB, free: 9.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08307, allocations: 4 kB / 429 MB, free: 9.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.08308, allocations: 0 / 429 MB, free: 9.773 MB / 298.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.0006856/0.08377, allocations: 0.5765 MB / 429.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.08381, allocations: 8.031 kB / 429.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.822e-05/0.08388, allocations: 32.56 kB / 429.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.08412, allocations: 282.6 kB / 429.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.08414, allocations: 20.75 kB / 429.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.08418, allocations: 16.38 kB / 430 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.08443, allocations: 204.9 kB / 430.2 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.08445, allocations: 4.125 kB / 430.2 MB, free: 8.535 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.08447, allocations: 11.94 kB / 430.2 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.08448, allocations: 4 kB / 430.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.08469, allocations: 120.9 kB / 430.3 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.08548, allocations: 0.834 MB / 431.1 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.08569, allocations: 94.73 kB / 431.2 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.284e-05/0.08576, allocations: 44.83 kB / 431.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.08579, allocations: 3.938 kB / 431.3 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.247e-05/0.08581, allocations: 38.56 kB / 431.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.08581, allocations: 0 / 431.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.000265/0.08608, allocations: 153.2 kB / 431.5 MB, free: 7.152 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/0.08612, allocations: 55.34 kB / 431.5 MB, free: 7.086 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.08631, allocations: 292.6 kB / 431.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.08633, allocations: 25.7 kB / 431.8 MB, free: 6.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.588e-05/0.0864, allocations: 179.5 kB / 432 MB, free: 6.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.08642, allocations: 35.45 kB / 432 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/0.08648, allocations: 33.72 kB / 432.1 MB, free: 6.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.206e-05/0.08653, allocations: 338.8 kB / 432.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.517e-05/0.0866, allocations: 35.97 kB / 432.4 MB, free: 6.125 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.949e-05/0.08668, allocations: 68.84 kB / 432.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009955/0.08768, allocations: 254.3 kB / 432.7 MB, free: 5.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.0877, allocations: 0 / 432.7 MB, free: 5.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002085/0.08791, allocations: 161.2 kB / 432.9 MB, free: 5.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.08793, allocations: 11.98 kB / 432.9 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.08794, allocations: 0 / 432.9 MB, free: 5.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.08796, allocations: 3.938 kB / 432.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.08814, allocations: 35.92 kB / 432.9 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.08815, allocations: 4 kB / 433 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.08827, allocations: 19.78 kB / 433 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.08829, allocations: 8.062 kB / 433 MB, free: 5.547 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001576/0.08845, allocations: 133.8 kB / 433.1 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.08849, allocations: 31.62 kB / 433.1 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.08874, allocations: 161.3 kB / 433.3 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.08875, allocations: 3.938 kB / 433.3 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.08876, allocations: 0 / 433.3 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.08877, allocations: 4 kB / 433.3 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.08898, allocations: 281.4 kB / 433.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.08898, allocations: 0 / 433.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.08915, allocations: 31.98 kB / 433.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.08916, allocations: 0 / 433.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.08918, allocations: 0 / 433.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.08919, allocations: 3.938 kB / 433.6 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.08919, allocations: 11.92 kB / 433.6 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.0909, allocations: 1.708 MB / 435.3 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.026e-05/0.09096, allocations: 109.1 kB / 435.4 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.09099, allocations: 8 kB / 435.5 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.0911, allocations: 0 / 435.5 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.09115, allocations: 11.98 kB / 435.5 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.09116, allocations: 7.938 kB / 435.5 MB, free: 2.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.0913, allocations: 211.1 kB / 435.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.0913, allocations: 0 / 435.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003477/0.09166, allocations: 83.91 kB / 435.8 MB, free: 2.551 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001047/0.09177, allocations: 107.2 kB / 435.9 MB, free: 2.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.09195, allocations: 98.03 kB / 436 MB, free: 2.344 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.09196, allocations: 4 kB / 436 MB, free: 2.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.516e-05/0.09203, allocations: 47.92 kB / 436 MB, free: 2.293 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.09239, allocations: 56.69 kB / 436.1 MB, free: 2.234 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.09327, allocations: 0.8071 MB / 436.9 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.09341, allocations: 0.7563 MB / 437.6 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001639/0.09358, allocations: 42.95 kB / 437.7 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.411e-05/0.09364, allocations: 23.44 kB / 437.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.09365, allocations: 0 / 437.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of Templates: time 0.005752/0.0994, allocations: 3.091 MB / 440.8 MB, free: 13.44 MB / 314.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)