Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_VaporCompression_BaseClasses_Validation_GetPeakLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_SubStations_VaporCompression_BaseClasses_Validation_GetPeakLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.467/1.467, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 184.8 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.243/2.243, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009444/0.0009443, allocations: 89.98 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004065, allocations: 10.41 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2734, allocations: 106.4 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1927/0.4662, allocations: 133.8 MB / 1.031 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.4666, allocations: 103.9 kB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01573/0.4823, allocations: 5.437 MB / 1.036 GB, free: 4.32 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.715e-06/0.4824, allocations: 0 / 1.036 GB, free: 4.32 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.4824, allocations: 0 / 1.036 GB, free: 4.32 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005389/0.4829, allocations: 399.2 kB / 1.037 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.483, allocations: 8.031 kB / 1.037 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.157e-05/0.4831, allocations: 109.8 kB / 1.037 GB, free: 3.758 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.224e-05/0.4832, allocations: 75.28 kB / 1.037 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.4833, allocations: 250.2 kB / 1.037 GB, free: 3.398 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.4834, allocations: 158.6 kB / 1.037 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.311e-05/0.4835, allocations: 150.6 kB / 1.037 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.294e-05/0.4836, allocations: 101 kB / 1.037 GB, free: 2.988 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.4836, allocations: 75.28 kB / 1.037 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.546e-05/0.4837, allocations: 150.6 kB / 1.038 GB, free: 2.766 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.874e-05/0.4837, allocations: 158.5 kB / 1.038 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.463e-05/0.4838, allocations: 154.5 kB / 1.038 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003078/0.4841, allocations: 454 kB / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.893e-05/0.4842, allocations: 165.1 kB / 1.039 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.127e-05/0.4843, allocations: 79.28 kB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.733e-05/0.4844, allocations: 117.8 kB / 1.039 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=0): time 2.094e-06/0.4844, allocations: 0 / 1.039 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=0): time 9.144e-05/0.4845, allocations: 33.58 kB / 1.039 GB, free: 1.551 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.4846, allocations: 203.8 kB / 1.039 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.4847, allocations: 89 kB / 1.039 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.4848, allocations: 29.7 kB / 1.039 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.944e-05/0.4848, allocations: 88.14 kB / 1.039 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.435e-06/0.4848, allocations: 0 / 1.039 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.4848, allocations: 0 / 1.039 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.485, allocations: 318.8 kB / 1.039 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.466e-06/0.485, allocations: 0 / 1.039 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.268e-05/0.485, allocations: 18.58 kB / 1.039 GB, free: 0.7539 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.344e-05/0.4851, allocations: 75.28 kB / 1.04 GB, free: 0.6797 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-05/0.4851, allocations: 83.23 kB / 1.04 GB, free: 0.5977 MB / 0.6823 GB Notification: Performance of matching and sorting (n=0) (initialization): time 6.666e-05/0.4852, allocations: 33.64 kB / 1.04 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.4852, allocations: 79.28 kB / 1.04 GB, free: 492 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.4853, allocations: 87.27 kB / 1.04 GB, free: 404 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.364e-05/0.4853, allocations: 154.5 kB / 1.04 GB, free: 248 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.367e-05/0.4854, allocations: 75.28 kB / 1.04 GB, free: 172 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.817e-05/0.4854, allocations: 150.6 kB / 1.04 GB, free: 20 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.4856, allocations: 91.22 kB / 1.04 GB, free: 15.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.4856, allocations: 75.28 kB / 1.04 GB, free: 15.86 MB / 0.698 GB 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 (0): * Single equations (assignments): 0 * 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.0001379/0.4858, allocations: 268.4 kB / 1.041 GB, free: 15.58 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.4859, allocations: 116.8 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.439e-05/0.4859, allocations: 104.1 kB / 1.041 GB, free: 15.35 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.528e-05/0.486, allocations: 180.3 kB / 1.041 GB, free: 15.17 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.433e-05/0.4861, allocations: 181 kB / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001013/0.4862, allocations: 188.3 kB / 1.041 GB, free: 14.79 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.4864, allocations: 401.2 kB / 1.042 GB, free: 14.34 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.962e-05/0.4865, allocations: 105 kB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-05/0.4865, allocations: 116.9 kB / 1.042 GB, free: 14.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.363e-05/0.4866, allocations: 176.5 kB / 1.042 GB, free: 13.93 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.4867, allocations: 180.3 kB / 1.042 GB, free: 13.75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-05/0.4867, allocations: 180.5 kB / 1.042 GB, free: 13.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.956e-05/0.4868, allocations: 180.3 kB / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001761/0.487, allocations: 319.8 kB / 1.043 GB, free: 13.05 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.87e-05/0.4871, allocations: 182.1 kB / 1.043 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.452e-05/0.4872, allocations: 188.2 kB / 1.043 GB, free: 12.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.4873, allocations: 101 kB / 1.043 GB, free: 12.55 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.111e-05/0.4874, allocations: 188.2 kB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-05/0.4875, allocations: 109 kB / 1.044 GB, free: 12.24 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.91e-05/0.4875, allocations: 75.28 kB / 1.044 GB, free: 12.17 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4875, allocations: 4 kB / 1.044 GB, free: 12.16 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005537/0.4881, allocations: 91.91 kB / 1.044 GB, free: 12.07 MB / 0.698 GB 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 (0): * Single equations (assignments): 0 * 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.001165/0.4893, allocations: 1.055 MB / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 4.697e-05/0.4893, allocations: 4 kB / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4893, allocations: 0 / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.755e-06/0.4893, allocations: 0 / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.4897, allocations: 0.5263 MB / 1.045 GB, free: 10.51 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000636/0.4903, allocations: 265.4 kB / 1.046 GB, free: 10.21 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.4906, allocations: 0.6692 MB / 1.046 GB, free: 9.512 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.102e-05/0.4906, allocations: 9.734 kB / 1.046 GB, free: 9.504 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.4906, allocations: 11.44 kB / 1.046 GB, free: 9.492 MB / 0.698 GB Notification: Performance of SimCode: time 2.6e-07/0.4907, allocations: 0 / 1.046 GB, free: 9.492 MB / 0.698 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad("#Peak space cooling load", OpenModelica_fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad("#Peak space heating load", OpenModelica_fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.getPeakLoad("#Peak water heating load", OpenModelica_fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")).