Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetHea|hex.TSetCoo|temWar.T|temCol.T|hex.valCoo.y|hex.valHea.y|hex.QWat_flow",fileNamePrefix="Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating") translateModel(Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetHea|hex.TSetCoo|temWar.T|temCol.T|hex.valCoo.y|hex.valHea.y|hex.QWat_flow",fileNamePrefix="Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.986/1.986, allocations: 387.2 MB / 394.5 MB, free: 13.58 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 185.2 kB / 487 MB, free: 5.316 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00097/0.00097, allocations: 100.8 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.19e-06/5.21e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2272, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8153/1.043, allocations: 444.5 MB / 1.639 GB, free: 11.52 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/1.043, allocations: 99.58 kB / 1.639 GB, free: 11.46 MB / 1.073 GB Notification: Performance of FrontEnd: time 3.583/4.626, allocations: 1.306 GB / 2.946 GB, free: 64.88 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0005519/4.627, allocations: 79.66 kB / 2.946 GB, free: 64.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 470 * Number of variables: 470 Notification: Performance of Generate backend data structure: time 0.008287/4.635, allocations: 2.779 MB / 2.948 GB, free: 62 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/4.635, allocations: 12.03 kB / 2.948 GB, free: 61.98 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005858/4.641, allocations: 1.11 MB / 2.949 GB, free: 60.87 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007893/4.649, allocations: 2.957 MB / 2.952 GB, free: 57.91 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/4.649, allocations: 60 kB / 2.952 GB, free: 57.86 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007382/4.65, allocations: 124 kB / 2.952 GB, free: 57.73 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004141/4.654, allocations: 1.569 MB / 2.954 GB, free: 56.16 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004532/4.659, allocations: 1.868 MB / 2.956 GB, free: 54.21 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.407e-05/4.659, allocations: 7.938 kB / 2.956 GB, free: 54.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003409/4.659, allocations: 7.906 kB / 2.956 GB, free: 54.19 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-05/4.659, allocations: 44 kB / 2.956 GB, free: 54.15 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/4.677, allocations: 12.33 MB / 2.968 GB, free: 41.16 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/4.68, allocations: 1.168 MB / 2.969 GB, free: 39.99 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/4.682, allocations: 0.6622 MB / 2.97 GB, free: 39.33 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009931/4.683, allocations: 1.366 MB / 2.971 GB, free: 37.68 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/4.683, allocations: 47.55 kB / 2.971 GB, free: 37.62 MB / 1.151 GB Notification: Performance of pre-optimization done (n=105): time 3.296e-06/4.683, allocations: 0 / 2.971 GB, free: 37.62 MB / 1.151 GB Notification: Performance of matching and sorting (n=111): time 0.01024/4.693, allocations: 3.491 MB / 2.975 GB, free: 34.07 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/4.693, allocations: 167.2 kB / 2.975 GB, free: 33.87 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003839/4.697, allocations: 1.583 MB / 2.976 GB, free: 32.26 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002308/4.697, allocations: 33.7 kB / 2.976 GB, free: 32.22 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006767/4.698, allocations: 0.798 MB / 2.977 GB, free: 31.41 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000356/4.698, allocations: 370.4 kB / 2.977 GB, free: 31.04 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/4.698, allocations: 0 / 2.977 GB, free: 31.04 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.722e-05/4.698, allocations: 361.9 kB / 2.978 GB, free: 30.68 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008817/4.699, allocations: 0.539 MB / 2.978 GB, free: 30.14 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/4.7, allocations: 0.9925 MB / 2.979 GB, free: 28.96 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/4.702, allocations: 0.7271 MB / 2.98 GB, free: 28.24 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/4.702, allocations: 3.906 kB / 2.98 GB, free: 28.23 MB / 1.151 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.007441/4.71, allocations: 2.437 MB / 2.982 GB, free: 25.79 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000711/4.71, allocations: 3.707 MB / 2.986 GB, free: 21.71 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/4.71, allocations: 8 kB / 2.986 GB, free: 21.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003363/4.714, allocations: 0.8777 MB / 2.987 GB, free: 20.82 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/4.715, allocations: 383.5 kB / 2.987 GB, free: 20.45 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009003/4.724, allocations: 5.139 MB / 2.992 GB, free: 15.15 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/4.729, allocations: 407.5 kB / 2.993 GB, free: 14.75 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005157/4.729, allocations: 75.95 kB / 2.993 GB, free: 14.68 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/4.729, allocations: 4 kB / 2.993 GB, free: 14.67 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007554/4.737, allocations: 2.057 MB / 2.995 GB, free: 12.61 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.854e-05/4.737, allocations: 12 kB / 2.995 GB, free: 12.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002415/4.739, allocations: 0.5941 MB / 2.995 GB, free: 12.01 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/4.741, allocations: 415.4 kB / 2.996 GB, free: 11.61 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/4.752, allocations: 6.662 MB / 3.002 GB, free: 4.609 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/4.755, allocations: 347.5 kB / 3.002 GB, free: 4.27 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004599/4.756, allocations: 71.97 kB / 3.003 GB, free: 4.199 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 16,1 19,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006718/4.756, allocations: 140.8 kB / 3.003 GB, free: 4.055 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007626/4.757, allocations: 225.2 kB / 3.003 GB, free: 3.832 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004853/4.762, allocations: 1.925 MB / 3.005 GB, free: 1.906 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/4.762, allocations: 19.59 kB / 3.005 GB, free: 1.891 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/4.762, allocations: 4 kB / 3.005 GB, free: 1.887 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002596/4.765, allocations: 1.671 MB / 3.006 GB, free: 132 kB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009646/4.774, allocations: 4.024 MB / 3.01 GB, free: 12.06 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/4.774, allocations: 0 / 3.01 GB, free: 12.06 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/4.776, allocations: 311.7 kB / 3.011 GB, free: 11.75 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/4.778, allocations: 405.4 kB / 3.011 GB, free: 11.35 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/4.778, allocations: 19.55 kB / 3.011 GB, free: 11.34 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/4.78, allocations: 1.56 MB / 3.013 GB, free: 9.727 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/4.78, allocations: 0 / 3.013 GB, free: 9.727 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005878/4.786, allocations: 2.549 MB / 3.015 GB, free: 7.125 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001874/4.788, allocations: 0.5136 MB / 3.016 GB, free: 6.59 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008886/4.788, allocations: 4 kB / 3.016 GB, free: 6.586 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003194/4.792, allocations: 327.5 kB / 3.016 GB, free: 6.266 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/4.792, allocations: 64.89 kB / 3.016 GB, free: 6.203 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/4.792, allocations: 55.95 kB / 3.016 GB, free: 6.148 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.003154/4.795, allocations: 1.178 MB / 3.017 GB, free: 4.957 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.007817/4.803, allocations: 1.249 MB / 3.018 GB, free: 3.711 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (hex.port_b1.h_outflow,hex.port_a2.h_outflow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 20,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002617/4.806, allocations: 1.134 MB / 3.019 GB, free: 2.676 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006048/4.812, allocations: 2.789 MB / 3.022 GB, free: 15.85 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/4.812, allocations: 4.125 kB / 3.022 GB, free: 15.85 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/4.813, allocations: 0.6703 MB / 3.023 GB, free: 15.18 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006149/4.819, allocations: 0.9849 MB / 3.024 GB, free: 14.21 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/4.839, allocations: 4.438 MB / 3.028 GB, free: 9.719 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003267/4.842, allocations: 1.889 MB / 3.03 GB, free: 7.797 MB / 1.182 GB Notification: Performance of SimCode: time 9.82e-07/4.842, allocations: 0 / 3.03 GB, free: 7.797 MB / 1.182 GB Notification: Performance of Templates: time 0.5776/5.419, allocations: 63.13 MB / 3.092 GB, free: 264.5 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.makefile make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.makefile clang -fPIC -O0 -falign-functions -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_Plants_Validation_LakeWaterHeatExchanger_T_Heating -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=6 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.o Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:3: error: use of undeclared identifier 'real'; did you mean 'read'? real /* assuming real for unknown type! */_array tmp21; ^~~~ read /usr/include/unistd.h:360:16: note: 'read' declared here extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur; ^ Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:7: error: expected ';' after expression real /* assuming real for unknown type! */_array tmp21; ^ ; Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:3: warning: expression result unused [-Wunused-value] real /* assuming real for unknown type! */_array tmp21; ^~~~ Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:45: error: use of undeclared identifier '_array' real /* assuming real for unknown type! */_array tmp21; ^ Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:373:3: error: use of undeclared identifier 'array_alloc_real' array_alloc_real /* assuming real for unknown type! */_array(&tmp21, 1, 1.0 - data->localData[0]->realVars[17] /* $cse19 variable */); ^ Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:374:302: error: use of undeclared identifier 'tmp21' data->localData[0]->realVars[46] /* hex._TWarIn._y variable */ = omc_Buildings_Obsolete_DistrictHeatingCooling_Plants_LakeWaterHeatExchanger__T$hex_Medium_temperature__phX(threadData, data->simulationInfo->realParameter[12], data->localData[0]->realVars[36] /* bou._ports[1]._h_outflow variable */, tmp21); ^ 1 warning and 5 errors generated. make: *** [: Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.o] Error 1