Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling,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_Cooling") translateModel(Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling,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_Cooling") [: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.892/1.892, allocations: 387.2 MB / 394.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 178.7 kB / 487 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 221.3 MB / 0.7819 GB, free: 6.793 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008623/0.0008623, allocations: 101.8 kB / 0.9213 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.494e-06, allocations: 4 kB / 1.066 GB, free: 7.594 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6529/0.6529, allocations: 142.3 MB / 1.205 GB, free: 72.77 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.918/1.571, allocations: 444.8 MB / 1.64 GB, free: 166.7 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/1.571, allocations: 90.28 kB / 1.64 GB, free: 166.6 MB / 1.01 GB Notification: Performance of FrontEnd: time 4.186/5.757, allocations: 1.306 GB / 2.946 GB, free: 151.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002816/5.757, allocations: 86 kB / 2.946 GB, free: 151.1 MB / 1.167 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.008278/5.766, allocations: 2.786 MB / 2.949 GB, free: 150.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/5.766, allocations: 10.5 kB / 2.949 GB, free: 150.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006235/5.772, allocations: 1.117 MB / 2.95 GB, free: 149.9 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007182/5.779, allocations: 2.956 MB / 2.953 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.465e-05/5.779, allocations: 59.34 kB / 2.953 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002821/5.78, allocations: 118.4 kB / 2.953 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002877/5.782, allocations: 1.573 MB / 2.955 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/5.785, allocations: 1.867 MB / 2.956 GB, free: 149.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/5.785, allocations: 5.406 kB / 2.956 GB, free: 149.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/5.786, allocations: 0 / 2.956 GB, free: 149.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.346e-05/5.786, allocations: 59.22 kB / 2.956 GB, free: 149.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/5.801, allocations: 12.32 MB / 2.968 GB, free: 142.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003291/5.804, allocations: 1.159 MB / 2.97 GB, free: 142.9 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009988/5.805, allocations: 0.6638 MB / 2.97 GB, free: 142.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00101/5.806, allocations: 1.367 MB / 2.972 GB, free: 141.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/5.806, allocations: 47.67 kB / 2.972 GB, free: 141.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=105): time 3.727e-06/5.806, allocations: 3.062 kB / 2.972 GB, free: 141.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=111): time 0.009296/5.815, allocations: 3.498 MB / 2.975 GB, free: 140.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.809e-05/5.816, allocations: 170.7 kB / 2.975 GB, free: 140.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/5.818, allocations: 1.573 MB / 2.977 GB, free: 140.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001986/5.818, allocations: 28.83 kB / 2.977 GB, free: 140.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005215/5.819, allocations: 0.8062 MB / 2.978 GB, free: 139.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003619/5.819, allocations: 368.5 kB / 2.978 GB, free: 139.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.008e-05/5.819, allocations: 0 / 2.978 GB, free: 139.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001121/5.819, allocations: 360.1 kB / 2.978 GB, free: 139.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008505/5.82, allocations: 0.5432 MB / 2.979 GB, free: 139.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/5.821, allocations: 0.9901 MB / 2.98 GB, free: 138.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/5.823, allocations: 0.7378 MB / 2.981 GB, free: 138.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/5.823, allocations: 3.125 kB / 2.981 GB, free: 138.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.007158/5.83, allocations: 2.427 MB / 2.983 GB, free: 138.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007257/5.831, allocations: 3.7 MB / 2.986 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/5.831, allocations: 10.19 kB / 2.986 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003341/5.834, allocations: 0.8793 MB / 2.987 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/5.836, allocations: 380.7 kB / 2.988 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008851/5.845, allocations: 5.147 MB / 2.993 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/5.849, allocations: 404.1 kB / 2.993 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/5.849, allocations: 77.89 kB / 2.993 GB, free: 132.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/5.849, allocations: 3.469 kB / 2.993 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007188/5.856, allocations: 2.056 MB / 2.995 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/5.856, allocations: 14.64 kB / 2.995 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/5.859, allocations: 0.5966 MB / 2.996 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/5.861, allocations: 410 kB / 2.996 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/5.872, allocations: 6.669 MB / 3.003 GB, free: 128.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/5.876, allocations: 350.5 kB / 3.003 GB, free: 128.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004011/5.876, allocations: 75.97 kB / 3.003 GB, free: 128.1 MB / 1.167 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.0006956/5.877, allocations: 136.8 kB / 3.003 GB, free: 128 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00095/5.878, allocations: 228.1 kB / 3.003 GB, free: 127.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005141/5.883, allocations: 1.923 MB / 3.005 GB, free: 127.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/5.883, allocations: 21.8 kB / 3.005 GB, free: 127.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/5.883, allocations: 0 / 3.005 GB, free: 127.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002692/5.886, allocations: 1.675 MB / 3.007 GB, free: 127.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008693/5.894, allocations: 4.011 MB / 3.011 GB, free: 126.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/5.895, allocations: 3.438 kB / 3.011 GB, free: 126.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/5.896, allocations: 308.9 kB / 3.011 GB, free: 126.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/5.897, allocations: 413.3 kB / 3.012 GB, free: 126.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/5.897, allocations: 19.66 kB / 3.012 GB, free: 126.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/5.899, allocations: 1.553 MB / 3.013 GB, free: 125.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/5.899, allocations: 2.438 kB / 3.013 GB, free: 125.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004243/5.903, allocations: 2.541 MB / 3.016 GB, free: 125.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/5.904, allocations: 0.5188 MB / 3.016 GB, free: 125.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005875/5.905, allocations: 1.844 kB / 3.016 GB, free: 125.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00249/5.908, allocations: 326 kB / 3.016 GB, free: 125.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/5.908, allocations: 72.66 kB / 3.017 GB, free: 125.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/5.908, allocations: 48.73 kB / 3.017 GB, free: 125.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001771/5.91, allocations: 1.182 MB / 3.018 GB, free: 125 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005358/5.915, allocations: 1.237 MB / 3.019 GB, free: 125 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.001814/5.917, allocations: 1.147 MB / 3.02 GB, free: 124.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00441/5.921, allocations: 2.784 MB / 3.023 GB, free: 124.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/5.921, allocations: 3.625 kB / 3.023 GB, free: 124.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/5.922, allocations: 0.6812 MB / 3.023 GB, free: 124.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005745/5.928, allocations: 0.9732 MB / 3.024 GB, free: 124.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01967/5.948, allocations: 4.436 MB / 3.029 GB, free: 123.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003101/5.951, allocations: 1.897 MB / 3.031 GB, free: 122.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.062e-06/5.951, allocations: 0 / 3.031 GB, free: 122.6 MB / 1.167 GB Notification: Performance of Templates: time 0.1023/6.053, allocations: 63.13 MB / 3.092 GB, free: 119.5 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.makefile make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling -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_Cooling.o Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling.c:372:7: error: expected ';' after expression real /* assuming real for unknown type! */_array tmp21; ^ ; Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling.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_Cooling.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_Cooling.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_Cooling.o] Error 1