Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.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.Typical_actuation_schemes.SplitRange_equalising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising") translateModel(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising") [/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.1668/0.1668, allocations: 21.44 MB / 36.39 MB, free: 1.238 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.001629/0.001629, allocations: 188.5 kB / 42.62 MB, free: 3.965 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.805/1.805, allocations: 205.4 MB / 254.1 MB, free: 15.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.0009228/0.000923, allocations: 81.94 kB / 307.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 8 kB / 373.2 MB, free: 59.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1212, allocations: 52.96 MB / 426.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.001855/0.1231, allocations: 1.592 MB / 427.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000998/0.1241, allocations: 0.6794 MB / 428.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.1242, allocations: 3.938 kB / 428.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003528/0.1246, allocations: 55.73 kB / 428.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.1248, allocations: 91.75 kB / 428.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1251, allocations: 119.8 kB / 428.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.1253, allocations: 247.4 kB / 429 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1255, allocations: 49.14 kB / 429 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.1257, allocations: 183.4 kB / 429.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.1259, allocations: 159.4 kB / 429.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.1259, allocations: 12 kB / 429.3 MB, free: 10 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.392e-05/0.126, allocations: 11.94 kB / 429.4 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.1261, allocations: 87.75 kB / 429.4 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.1262, allocations: 57.58 kB / 429.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.1264, allocations: 199.5 kB / 429.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1264, allocations: 0 / 429.7 MB, free: 9.645 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1264, allocations: 3.938 kB / 429.7 MB, free: 9.641 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.1264, allocations: 0 / 429.7 MB, free: 9.641 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001804/0.1282, allocations: 0.7048 MB / 430.4 MB, free: 8.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1283, allocations: 12.03 kB / 430.4 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.434e-05/0.1284, allocations: 31.61 kB / 430.4 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009295/0.1293, allocations: 406.8 kB / 430.8 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.1293, allocations: 11.98 kB / 430.9 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.1294, allocations: 16 kB / 430.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.1297, allocations: 181.5 kB / 431 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1298, allocations: 0 / 431 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.1298, allocations: 8 kB / 431.1 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.1298, allocations: 4 kB / 431.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.1302, allocations: 183.8 kB / 431.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1313, allocations: 0.6525 MB / 431.9 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.1318, allocations: 251 kB / 432.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.1318, allocations: 4.188 kB / 432.1 MB, free: 7.043 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.1319, allocations: 34.69 kB / 432.2 MB, free: 7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.974e-06/0.1319, allocations: 0 / 432.2 MB, free: 7 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005951/0.1325, allocations: 347.7 kB / 432.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.1325, allocations: 55.41 kB / 432.6 MB, free: 6.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000788/0.1333, allocations: 420.4 kB / 433 MB, free: 6.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1333, allocations: 33.7 kB / 433 MB, free: 6.129 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.801e-05/0.1334, allocations: 156.3 kB / 433.2 MB, free: 5.973 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.1335, allocations: 86.83 kB / 433.2 MB, free: 5.887 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.1335, allocations: 0 / 433.2 MB, free: 5.887 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.1336, allocations: 342.8 kB / 433.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.1338, allocations: 84.19 kB / 433.7 MB, free: 5.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.1339, allocations: 92.34 kB / 433.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.1341, allocations: 105.3 kB / 433.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1341, allocations: 0 / 433.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00039/0.1345, allocations: 315.3 kB / 434.2 MB, free: 4.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1345, allocations: 8 kB / 434.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1345, allocations: 3.938 kB / 434.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.1346, allocations: 0 / 434.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.1348, allocations: 47.88 kB / 434.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1348, allocations: 7.984 kB / 434.2 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.1352, allocations: 63.78 kB / 434.3 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1352, allocations: 11.98 kB / 434.3 MB, free: 4.816 MB / 298.7 MB Warning: Assuming fixed start value for the following 7 variables: FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] FA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] 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 (28): * Single equations (assignments): 28 * 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.0002447/0.1355, allocations: 163.7 kB / 434.5 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.794e-05/0.1355, allocations: 27.72 kB / 434.5 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005366/0.1361, allocations: 299.6 kB / 434.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1361, allocations: 0 / 434.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1361, allocations: 7.953 kB / 434.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1361, allocations: 0 / 434.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.1364, allocations: 353.3 kB / 435.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1364, allocations: 4 kB / 435.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.1367, allocations: 39.92 kB / 435.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1367, allocations: 4 kB / 435.2 MB, free: 3.871 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.1368, allocations: 11.98 kB / 435.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1368, allocations: 0 / 435.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1368, allocations: 0 / 435.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005585/0.1373, allocations: 0.4911 MB / 435.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.83e-05/0.1374, allocations: 124.6 kB / 435.8 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/0.1375, allocations: 4 kB / 435.8 MB, free: 3.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.1379, allocations: 51.92 kB / 435.9 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.1379, allocations: 15.98 kB / 435.9 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.138, allocations: 11.98 kB / 435.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006711/0.1386, allocations: 326.9 kB / 436.2 MB, free: 2.809 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.1386, allocations: 0 / 436.2 MB, free: 2.809 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.1389, allocations: 59.89 kB / 436.3 MB, free: 2.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,FA2.x_scaled[1],FA1.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 (23): * Single equations (assignments): 23 * 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.0001/0.139, allocations: 107 kB / 436.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.1394, allocations: 235.7 kB / 436.6 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1394, allocations: 0 / 436.6 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.1396, allocations: 115.8 kB / 436.7 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.0003564/0.1399, allocations: 60.34 kB / 436.8 MB, free: 2.234 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.141, allocations: 0.7336 MB / 437.5 MB, free: 1.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.1412, allocations: 0.7953 MB / 438.3 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.1414, allocations: 62.25 kB / 438.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.65e-05/0.1415, allocations: 31.36 kB / 438.4 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.1415, allocations: 0 / 438.4 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of Templates: time 0.005666/0.1472, allocations: 2.56 MB / 441 MB, free: 14 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.makefile (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.sim & ./AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)