Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.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: translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetCoo|hex.TSetHea|temCol.T|temWar.T|hex.valHea.y|hex.valCoo.y|hex.QWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating") translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.TSetCoo|hex.TSetHea|temCol.T|temWar.T|hex.valHea.y|hex.valCoo.y|hex.QWat_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.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 7.0.3-maint.7.0.x/package.mo): time 1.185/1.185, allocations: 249.4 MB / 256.7 MB, free: 7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 173.3 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 205.1 MB / 0.5667 GB, free: 15.59 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.0008295/0.0008293, allocations: 90.2 kB / 0.671 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.741e-06/5.761e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1388, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8776/1.016, allocations: 439.3 MB / 1.314 GB, free: 307.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/1.017, allocations: 93.81 kB / 1.314 GB, free: 307.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.823/3.84, allocations: 1.243 GB / 2.556 GB, free: 43.18 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002221/3.84, allocations: 74.5 kB / 2.556 GB, free: 43.11 MB / 0.8855 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.004019/3.844, allocations: 2.78 MB / 2.559 GB, free: 40.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/3.844, allocations: 8.031 kB / 2.559 GB, free: 40.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004651/3.849, allocations: 1.119 MB / 2.56 GB, free: 39.18 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004485/3.853, allocations: 2.945 MB / 2.563 GB, free: 36.23 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/3.853, allocations: 60 kB / 2.563 GB, free: 36.18 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/3.854, allocations: 116 kB / 2.563 GB, free: 36.06 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00245/3.856, allocations: 1.569 MB / 2.565 GB, free: 34.49 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/3.858, allocations: 1.862 MB / 2.567 GB, free: 32.54 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.393e-05/3.859, allocations: 3.938 kB / 2.567 GB, free: 32.54 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/3.859, allocations: 4 kB / 2.567 GB, free: 32.54 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-05/3.859, allocations: 56 kB / 2.567 GB, free: 32.48 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/3.87, allocations: 12.27 MB / 2.579 GB, free: 19.56 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/3.873, allocations: 1.157 MB / 2.58 GB, free: 18.4 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008596/3.874, allocations: 0.6635 MB / 2.58 GB, free: 17.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008343/3.875, allocations: 1.37 MB / 2.582 GB, free: 16.07 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/3.875, allocations: 43.56 kB / 2.582 GB, free: 16.02 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=105): time 2.435e-06/3.875, allocations: 0 / 2.582 GB, free: 16.02 MB / 0.8855 GB Notification: Performance of matching and sorting (n=111): time 0.006873/3.882, allocations: 3.488 MB / 2.585 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/3.882, allocations: 171.2 kB / 2.585 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/3.883, allocations: 1.555 MB / 2.587 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.901e-05/3.883, allocations: 25.7 kB / 2.587 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/3.884, allocations: 0.8041 MB / 2.588 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002549/3.884, allocations: 370.5 kB / 2.588 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/3.884, allocations: 0 / 2.588 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.612e-05/3.884, allocations: 357.9 kB / 2.588 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007431/3.885, allocations: 0.5429 MB / 2.589 GB, free: 8.578 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009128/3.886, allocations: 0.9951 MB / 2.59 GB, free: 7.383 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/3.887, allocations: 0.7388 MB / 2.591 GB, free: 6.645 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/3.887, allocations: 4 kB / 2.591 GB, free: 6.641 MB / 0.8855 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.006442/3.894, allocations: 2.414 MB / 2.593 GB, free: 4.215 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004513/3.894, allocations: 3.699 MB / 2.597 GB, free: 136 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/3.894, allocations: 12 kB / 2.597 GB, free: 124 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003237/3.897, allocations: 0.854 MB / 2.597 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/3.899, allocations: 383.5 kB / 2.598 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00897/3.908, allocations: 5.146 MB / 2.603 GB, free: 9.59 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/3.911, allocations: 403.5 kB / 2.603 GB, free: 9.195 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/3.911, allocations: 79.67 kB / 2.603 GB, free: 9.121 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/3.911, allocations: 7.984 kB / 2.603 GB, free: 9.113 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006571/3.918, allocations: 2.051 MB / 2.605 GB, free: 7.062 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/3.918, allocations: 8 kB / 2.605 GB, free: 7.055 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002388/3.92, allocations: 0.5901 MB / 2.606 GB, free: 6.465 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/3.922, allocations: 414.8 kB / 2.606 GB, free: 6.062 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/3.932, allocations: 6.686 MB / 2.613 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002657/3.935, allocations: 343.6 kB / 2.613 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/3.935, allocations: 67.97 kB / 2.613 GB, free: 14.65 MB / 0.9167 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.0003143/3.935, allocations: 144.9 kB / 2.613 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/3.935, allocations: 217.2 kB / 2.613 GB, free: 14.29 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003952/3.939, allocations: 1.914 MB / 2.615 GB, free: 12.36 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/3.939, allocations: 15.98 kB / 2.615 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/3.939, allocations: 0 / 2.615 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0025/3.942, allocations: 1.672 MB / 2.617 GB, free: 10.58 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006261/3.948, allocations: 3.986 MB / 2.621 GB, free: 6.559 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/3.948, allocations: 0 / 2.621 GB, free: 6.559 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/3.95, allocations: 311.7 kB / 2.621 GB, free: 6.254 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/3.951, allocations: 404.4 kB / 2.622 GB, free: 5.859 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.118e-05/3.951, allocations: 19.97 kB / 2.622 GB, free: 5.84 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/3.952, allocations: 1.542 MB / 2.623 GB, free: 4.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/3.952, allocations: 128 / 2.623 GB, free: 4.25 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003765/3.956, allocations: 2.542 MB / 2.626 GB, free: 1.652 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008043/3.957, allocations: 0.4941 MB / 2.626 GB, free: 1.137 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/3.957, allocations: 7.938 kB / 2.626 GB, free: 1.129 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/3.959, allocations: 323.5 kB / 2.626 GB, free: 0.8125 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/3.959, allocations: 72.88 kB / 2.626 GB, free: 0.7422 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/3.96, allocations: 47.97 kB / 2.626 GB, free: 0.6953 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.2681/4.228, allocations: 1.161 MB / 2.628 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.004757/4.232, allocations: 1.239 MB / 2.629 GB, free: 178.1 MB / 0.9167 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.001362/4.234, allocations: 1.145 MB / 2.63 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003559/4.237, allocations: 2.777 MB / 2.633 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/4.237, allocations: 0.75 kB / 2.633 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008933/4.238, allocations: 0.6779 MB / 2.633 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/4.242, allocations: 1.001 MB / 2.634 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/4.255, allocations: 4.421 MB / 2.639 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/4.256, allocations: 1.879 MB / 2.64 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of SimCode: time 9.42e-07/4.256, allocations: 0 / 2.64 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.07398/4.33, allocations: 63.22 MB / 2.702 GB, free: 174.2 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_maint_7_0_x_Buildings_Experimental_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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.o Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c Buildings_maint.7.0.x_Buildings.Experimental.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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:7: error: expected ';' after expression real /* assuming real for unknown type! */_array tmp21; ^ ; Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:3: warning: expression result unused [-Wunused-value] real /* assuming real for unknown type! */_array tmp21; ^~~~ Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:372:45: error: use of undeclared identifier '_array' real /* assuming real for unknown type! */_array tmp21; ^ Buildings_maint.7.0.x_Buildings.Experimental.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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.c:374:306: error: use of undeclared identifier 'tmp21' data->localData[0]->realVars[46] /* hex._TWarIn._y variable */ = omc_Buildings_Experimental_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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Heating.o] Error 1