Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.SubStations.VaporCompression.BaseClasses.Validation.GetPeakLoad,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.124/2.124, allocations: 251 MB / 265.9 MB, free: 11.67 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.001573/0.001572, allocations: 187.4 kB / 325.5 MB, free: 2.875 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.409/2.409, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001157/0.001156, allocations: 95.48 kB / 0.6809 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006749/0.0006749, allocations: 12.12 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2257, allocations: 106.3 MB / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2309/0.4567, allocations: 133.6 MB / 1.029 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004036/0.4572, allocations: 99.92 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02534/0.4826, allocations: 5.443 MB / 1.035 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of FrontEnd: time 5.421e-06/0.4826, allocations: 3.984 kB / 1.035 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.4826, allocations: 0 / 1.035 GB, free: 6.094 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.0005883/0.4832, allocations: 393.2 kB / 1.035 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.4833, allocations: 8.031 kB / 1.035 GB, free: 5.656 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.214e-05/0.4834, allocations: 109.8 kB / 1.035 GB, free: 5.539 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.4835, allocations: 75.28 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.4836, allocations: 246.3 kB / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.862e-05/0.4837, allocations: 150.6 kB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.4838, allocations: 154.6 kB / 1.036 GB, free: 4.883 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.746e-05/0.4839, allocations: 108.9 kB / 1.036 GB, free: 4.77 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.4839, allocations: 79.27 kB / 1.036 GB, free: 4.691 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.484, allocations: 150.6 kB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.324e-05/0.4841, allocations: 150.6 kB / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.019e-05/0.4841, allocations: 150.6 kB / 1.036 GB, free: 4.246 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003196/0.4845, allocations: 458 kB / 1.037 GB, free: 3.75 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.14e-05/0.4846, allocations: 173.1 kB / 1.037 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.4846, allocations: 75.28 kB / 1.037 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.792e-05/0.4847, allocations: 113.8 kB / 1.037 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=0): time 2.945e-06/0.4847, allocations: 0 / 1.037 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of matching and sorting (n=0): time 9e-05/0.4848, allocations: 29.7 kB / 1.037 GB, free: 3.34 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.4849, allocations: 203.8 kB / 1.037 GB, free: 3.109 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.485, allocations: 96.92 kB / 1.038 GB, free: 3.008 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.4851, allocations: 25.7 kB / 1.038 GB, free: 2.977 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.101e-05/0.4851, allocations: 88.14 kB / 1.038 GB, free: 2.887 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-06/0.4852, allocations: 3.938 kB / 1.038 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.01e-07/0.4852, allocations: 0 / 1.038 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.4853, allocations: 314.8 kB / 1.038 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-06/0.4853, allocations: 4 kB / 1.038 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.997e-05/0.4854, allocations: 22.56 kB / 1.038 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.018e-05/0.4854, allocations: 79.22 kB / 1.038 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.69e-05/0.4855, allocations: 75.28 kB / 1.038 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of matching and sorting (n=0) (initialization): time 7.297e-05/0.4855, allocations: 29.7 kB / 1.038 GB, free: 2.344 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.4856, allocations: 87.22 kB / 1.038 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/0.4856, allocations: 83.28 kB / 1.038 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.671e-05/0.4857, allocations: 150.6 kB / 1.038 GB, free: 2.027 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.366e-05/0.4858, allocations: 79.22 kB / 1.038 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.785e-05/0.4858, allocations: 154.5 kB / 1.039 GB, free: 1.797 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.486, allocations: 83.22 kB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/0.4861, allocations: 75.28 kB / 1.039 GB, free: 1.641 MB / 0.6823 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.0001469/0.4863, allocations: 272.4 kB / 1.039 GB, free: 1.363 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.4863, allocations: 101 kB / 1.039 GB, free: 1.258 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.101e-05/0.4864, allocations: 116 kB / 1.039 GB, free: 1.137 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.309e-05/0.4865, allocations: 176.3 kB / 1.039 GB, free: 0.957 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.035e-05/0.4866, allocations: 181.1 kB / 1.04 GB, free: 0.7734 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-05/0.4866, allocations: 192.3 kB / 1.04 GB, free: 0.5781 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.4869, allocations: 405.2 kB / 1.04 GB, free: 128 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-05/0.487, allocations: 104.9 kB / 1.04 GB, free: 16 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.014e-05/0.487, allocations: 105 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.686e-05/0.4871, allocations: 188.2 kB / 1.041 GB, free: 15.71 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.289e-05/0.4872, allocations: 180.3 kB / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.785e-05/0.4873, allocations: 176.6 kB / 1.041 GB, free: 15.35 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.696e-05/0.4874, allocations: 184.2 kB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001599/0.4875, allocations: 315.7 kB / 1.041 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.153e-05/0.4876, allocations: 182 kB / 1.042 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.929e-05/0.4878, allocations: 184.3 kB / 1.042 GB, free: 14.44 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.488, allocations: 112.9 kB / 1.042 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.439e-05/0.4881, allocations: 180.3 kB / 1.042 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.457e-05/0.4881, allocations: 104.9 kB / 1.042 GB, free: 14.03 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.416e-05/0.4882, allocations: 79.27 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.31e-07/0.4882, allocations: 0 / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006381/0.4889, allocations: 103.9 kB / 1.042 GB, free: 13.85 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.001304/0.4902, allocations: 1.049 MB / 1.043 GB, free: 12.82 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.257e-05/0.4903, allocations: 11.94 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4903, allocations: 4 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.666e-06/0.4903, allocations: 0 / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.4907, allocations: 0.5274 MB / 1.044 GB, free: 12.28 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006665/0.4914, allocations: 245.5 kB / 1.044 GB, free: 12 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.4916, allocations: 0.6809 MB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.577e-05/0.4917, allocations: 5.375 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.237e-05/0.4918, allocations: 15.42 kB / 1.045 GB, free: 11.27 MB / 0.698 GB Notification: Performance of SimCode: time 8.01e-07/0.4918, allocations: 0 / 1.045 GB, free: 11.27 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.1/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.1/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.1/Resources/Data/Experimental/DistrictHeatingCooling/SubStations/VaporCompression/RefBldgLargeOfficeNew2004_7.1_5.0_3C_USA_CA_SAN_FRANCISCO.mos")).