Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_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 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.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_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.09138/0.09138, allocations: 21.61 MB / 37.41 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.001138/0.001138, allocations: 188.4 kB / 43.63 MB, free: 3.562 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.326/1.326, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.0009393/0.0009393, allocations: 110.8 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 58.39 kB / 372.3 MB, free: 59.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07881/0.07997, allocations: 51.97 MB / 424.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002404/0.08241, allocations: 1.742 MB / 426 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001649/0.0826, allocations: 63.73 kB / 426.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.679e-05/0.08265, allocations: 0 / 426.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.753e-05/0.08272, allocations: 11.92 kB / 426.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001451/0.08287, allocations: 7.922 kB / 426.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.762e-05/0.08292, allocations: 19.98 kB / 426.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.968e-05/0.08301, allocations: 79.59 kB / 426.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.08313, allocations: 35.98 kB / 426.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.64e-05/0.08316, allocations: 19.94 kB / 426.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.764e-05/0.08324, allocations: 31.84 kB / 426.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.08327, allocations: 8 kB / 426.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.504e-05/0.08329, allocations: 4 kB / 426.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.08331, allocations: 19.91 kB / 426.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.08335, allocations: 39.8 kB / 426.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.786e-05/0.08344, allocations: 71.78 kB / 426.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.08345, allocations: 0 / 426.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.08346, allocations: 0 / 426.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.08347, allocations: 0 / 426.5 MB, free: 12.34 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003384/0.08381, allocations: 375.5 kB / 426.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.08385, allocations: 8.031 kB / 426.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.598e-05/0.08389, allocations: 8.844 kB / 426.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.988e-05/0.08397, allocations: 180.2 kB / 427 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.08399, allocations: 12.56 kB / 427 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.084, allocations: 8.375 kB / 427 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.08415, allocations: 89.97 kB / 427.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.08416, allocations: 4 kB / 427.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.08418, allocations: 3.938 kB / 427.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.08419, allocations: 0 / 427.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.035e-05/0.08427, allocations: 55.86 kB / 427.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.08469, allocations: 449.7 kB / 427.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.881e-05/0.08479, allocations: 58.5 kB / 427.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.319e-05/0.08483, allocations: 28.84 kB / 427.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.08485, allocations: 4 kB / 427.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.296e-05/0.08487, allocations: 34.56 kB / 427.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.08487, allocations: 0 / 427.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001731/0.08505, allocations: 77.58 kB / 427.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.173e-05/0.08508, allocations: 59.34 kB / 427.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.032e-05/0.08515, allocations: 105.8 kB / 428 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-06/0.08516, allocations: 25.7 kB / 428 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.0852, allocations: 108 kB / 428.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.08522, allocations: 27.72 kB / 428.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.08526, allocations: 17.72 kB / 428.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.08531, allocations: 318.8 kB / 428.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.697e-05/0.08534, allocations: 15.98 kB / 428.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.422e-05/0.08538, allocations: 34.56 kB / 428.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/0.08545, allocations: 54.52 kB / 428.6 MB, free: 9.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.08546, allocations: 0 / 428.6 MB, free: 9.969 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.266e-05/0.08555, allocations: 86.03 kB / 428.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.08557, allocations: 6.5 kB / 428.7 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.08558, allocations: 4 kB / 428.7 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.0856, allocations: 0 / 428.7 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.683e-05/0.0857, allocations: 19.98 kB / 428.7 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.08571, allocations: 7.938 kB / 428.7 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.808e-05/0.08576, allocations: 4 kB / 428.7 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.08577, allocations: 7.938 kB / 428.7 MB, free: 9.832 MB / 298.7 MB 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 (9): * Single equations (assignments): 9 * 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 5.296e-05/0.08583, allocations: 117.9 kB / 428.8 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.08586, allocations: 7.906 kB / 428.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.08599, allocations: 74.05 kB / 428.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.086, allocations: 4 kB / 428.9 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.08601, allocations: 3.938 kB / 428.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.08602, allocations: 0 / 428.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.08616, allocations: 189.6 kB / 429.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.08617, allocations: 192 / 429.1 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.08623, allocations: 19.92 kB / 429.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.08624, allocations: 7.938 kB / 429.1 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.08626, allocations: 4 kB / 429.1 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.08626, allocations: 4 kB / 429.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.08627, allocations: 7.875 kB / 429.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002419/0.08651, allocations: 0.7122 MB / 429.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.08655, allocations: 85.05 kB / 429.9 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.08656, allocations: 4 kB / 429.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.417e-05/0.08662, allocations: 4 kB / 429.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.08665, allocations: 7.984 kB / 429.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.08666, allocations: 0 / 429.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.309e-05/0.08668, allocations: 83.28 kB / 430 MB, free: 8.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08669, allocations: 0 / 430 MB, free: 8.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003089/0.087, allocations: 19.91 kB / 430 MB, free: 8.348 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (7): * Single equations (assignments): 7 * 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 8.281e-05/0.08709, allocations: 95.23 kB / 430.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.0872, allocations: 56.14 kB / 430.2 MB, free: 8.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.08721, allocations: 0 / 430.2 MB, free: 8.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.452e-05/0.08724, allocations: 24.08 kB / 430.2 MB, free: 8.168 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.08752, allocations: 11.94 kB / 430.2 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.08788, allocations: 323.2 kB / 430.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.08799, allocations: 0.6926 MB / 431.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.862e-05/0.08804, allocations: 7.984 kB / 431.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.053e-05/0.08806, allocations: 7.438 kB / 431.3 MB, free: 7.066 MB / 298.7 MB Notification: Performance of SimCode: time 6.52e-07/0.08807, allocations: 8 kB / 431.3 MB, free: 7.059 MB / 298.7 MB Notification: Performance of Templates: time 0.001996/0.09007, allocations: 485.8 kB / 431.7 MB, free: 6.586 MB / 298.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)