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 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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) [/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.1048/0.1048, allocations: 21.62 MB / 36.56 MB, free: 1.062 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.001004/0.001004, allocations: 187.5 kB / 42.83 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.437/1.437, allocations: 223.2 MB / 272.1 MB, free: 1.391 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.0009076/0.0009077, allocations: 93.45 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 12 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.09238, allocations: 55.81 MB / 452.9 MB, free: 6.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2913/0.3837, allocations: 78.9 MB / 0.5194 GB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.384, allocations: 74.2 kB / 0.5194 GB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002821/0.3868, allocations: 1.223 MB / 0.5206 GB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3868, allocations: 0 / 0.5206 GB, free: 12.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.3869, allocations: 0 / 0.5206 GB, free: 12.87 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000291/0.3872, allocations: 366.2 kB / 0.521 GB, free: 12.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3872, allocations: 7.469 kB / 0.521 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.3872, allocations: 44.88 kB / 0.521 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.3873, allocations: 10.69 kB / 0.521 GB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.517e-05/0.3874, allocations: 166.5 kB / 0.5212 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3874, allocations: 7.281 kB / 0.5212 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.3874, allocations: 7.562 kB / 0.5212 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.3876, allocations: 92.91 kB / 0.5213 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3876, allocations: 7.188 kB / 0.5213 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.3876, allocations: 7.328 kB / 0.5213 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3876, allocations: 3.656 kB / 0.5213 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.641e-05/0.3877, allocations: 46.31 kB / 0.5214 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004842/0.3882, allocations: 456.4 kB / 0.5218 GB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.3883, allocations: 58.12 kB / 0.5219 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3884, allocations: 3.969 kB / 0.5219 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.3884, allocations: 40.28 kB / 0.5219 GB, free: 11.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.3884, allocations: 0 / 0.5219 GB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001802/0.3886, allocations: 68.56 kB / 0.522 GB, free: 11.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.3886, allocations: 62.09 kB / 0.522 GB, free: 11.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.508e-05/0.3887, allocations: 100.2 kB / 0.5221 GB, free: 11.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.3887, allocations: 25.7 kB / 0.5221 GB, free: 11.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.957e-05/0.3888, allocations: 110.6 kB / 0.5223 GB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.3888, allocations: 22.48 kB / 0.5223 GB, free: 11.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.3888, allocations: 0 / 0.5223 GB, free: 11.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.867e-05/0.3888, allocations: 318.6 kB / 0.5226 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.3889, allocations: 14.84 kB / 0.5226 GB, free: 11.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.566e-05/0.3889, allocations: 41.47 kB / 0.5226 GB, free: 11.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.772e-05/0.389, allocations: 20.23 kB / 0.5226 GB, free: 11.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.389, allocations: 0 / 0.5226 GB, free: 11.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001088/0.3891, allocations: 81.89 kB / 0.5227 GB, free: 11.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3891, allocations: 7.688 kB / 0.5227 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.3891, allocations: 0 / 0.5227 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3891, allocations: 3.469 kB / 0.5227 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.297e-05/0.3892, allocations: 19.47 kB / 0.5228 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3892, allocations: 0 / 0.5228 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.3893, allocations: 11.81 kB / 0.5228 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.3893, allocations: 12.36 kB / 0.5228 GB, free: 11.02 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.439e-05/0.3893, allocations: 121.1 kB / 0.5229 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.3894, allocations: 0 / 0.5229 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.3895, allocations: 77.44 kB / 0.523 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3895, allocations: 0 / 0.523 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3895, allocations: 4 kB / 0.523 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3895, allocations: 0 / 0.523 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.3897, allocations: 191.5 kB / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3897, allocations: 0 / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-05/0.3898, allocations: 18.53 kB / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3898, allocations: 0 / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.3898, allocations: 3.25 kB / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3898, allocations: 0 / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3898, allocations: 4.938 kB / 0.5232 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.3899, allocations: 165.9 kB / 0.5233 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.3899, allocations: 82.09 kB / 0.5234 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.39, allocations: 8.016 kB / 0.5234 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.083e-05/0.39, allocations: 0 / 0.5234 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.39, allocations: 7.25 kB / 0.5234 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.3901, allocations: 192 / 0.5234 GB, free: 10.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.329e-05/0.3901, allocations: 83.27 kB / 0.5235 GB, free: 10.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3901, allocations: 3.938 kB / 0.5235 GB, free: 10.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002255/0.3903, allocations: 22.59 kB / 0.5235 GB, free: 10.34 MB / 362.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 (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.0002365/0.3906, allocations: 0.704 MB / 0.5242 GB, free: 9.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.955e-05/0.3907, allocations: 52.36 kB / 0.5243 GB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3907, allocations: 0 / 0.5243 GB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.3907, allocations: 15.75 kB / 0.5243 GB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.3909, allocations: 12.83 kB / 0.5243 GB, free: 9.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004511/0.3914, allocations: 231.8 kB / 0.5245 GB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.3915, allocations: 0.6981 MB / 0.5252 GB, free: 8.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.349e-05/0.3915, allocations: 192 / 0.5252 GB, free: 8.766 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.3916, allocations: 24.14 kB / 0.5252 GB, free: 8.758 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3916, allocations: 0 / 0.5252 GB, free: 8.758 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01103/0.4026, allocations: 1.279 MB / 0.5265 GB, free: 8.586 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/0.4028, allocations: 169.7 kB / 0.5266 GB, free: 8.352 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.444/1.847, allocations: 0 / 0.5266 GB, free: 8.352 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)