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_Cooling.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_Cooling,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_Cooling") translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling,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_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 7.0.3-maint.7.0.x/package.mo): time 1.183/1.183, allocations: 249.4 MB / 256.7 MB, free: 6.98 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.001031/0.001031, allocations: 192.6 kB / 316 MB, free: 3.512 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.04/1.04, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0007819/0.0007819, allocations: 84.7 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.09e-06/5.18e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8508/0.9828, allocations: 439.6 MB / 1.314 GB, free: 307.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.9831, allocations: 86.95 kB / 1.314 GB, free: 307.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.838/3.821, allocations: 1.243 GB / 2.557 GB, free: 40.96 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002325/3.821, allocations: 80.55 kB / 2.557 GB, free: 40.89 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.004169/3.826, allocations: 2.782 MB / 2.56 GB, free: 38.08 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/3.826, allocations: 8.031 kB / 2.56 GB, free: 38.07 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004691/3.83, allocations: 1.119 MB / 2.561 GB, free: 36.95 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004833/3.835, allocations: 2.933 MB / 2.564 GB, free: 34.02 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.255e-05/3.835, allocations: 60 kB / 2.564 GB, free: 33.96 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000228/3.835, allocations: 124 kB / 2.564 GB, free: 33.84 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002521/3.838, allocations: 1.569 MB / 2.565 GB, free: 32.27 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/3.84, allocations: 1.858 MB / 2.567 GB, free: 30.32 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/3.841, allocations: 11.94 kB / 2.567 GB, free: 30.31 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/3.841, allocations: 0 / 2.567 GB, free: 30.31 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/3.841, allocations: 52 kB / 2.567 GB, free: 30.26 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/3.852, allocations: 12.27 MB / 2.579 GB, free: 17.36 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/3.856, allocations: 1.163 MB / 2.58 GB, free: 16.18 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008799/3.856, allocations: 0.6528 MB / 2.581 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008424/3.857, allocations: 1.373 MB / 2.582 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/3.857, allocations: 51.5 kB / 2.582 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=105): time 2.805e-06/3.857, allocations: 0 / 2.582 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of matching and sorting (n=111): time 0.007273/3.865, allocations: 3.48 MB / 2.586 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/3.865, allocations: 167.2 kB / 2.586 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/3.866, allocations: 1.559 MB / 2.587 GB, free: 8.484 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001049/3.866, allocations: 29.7 kB / 2.587 GB, free: 8.449 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/3.867, allocations: 0.8003 MB / 2.588 GB, free: 7.633 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/3.867, allocations: 374.4 kB / 2.589 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.494e-05/3.867, allocations: 0 / 2.589 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.471e-05/3.867, allocations: 361.9 kB / 2.589 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007459/3.868, allocations: 0.539 MB / 2.589 GB, free: 6.363 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009124/3.869, allocations: 0.9951 MB / 2.59 GB, free: 5.164 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/3.87, allocations: 0.7349 MB / 2.591 GB, free: 4.434 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/3.87, allocations: 4 kB / 2.591 GB, free: 4.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.006456/3.877, allocations: 2.418 MB / 2.593 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008963/3.878, allocations: 3.702 MB / 2.597 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/3.878, allocations: 11.94 kB / 2.597 GB, free: 13.9 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003268/3.881, allocations: 0.8521 MB / 2.598 GB, free: 13.05 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/3.883, allocations: 387.5 kB / 2.598 GB, free: 12.68 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009297/3.892, allocations: 5.133 MB / 2.603 GB, free: 7.387 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003263/3.895, allocations: 411 kB / 2.604 GB, free: 6.988 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/3.895, allocations: 75.95 kB / 2.604 GB, free: 6.914 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/3.895, allocations: 4 kB / 2.604 GB, free: 6.91 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006683/3.902, allocations: 2.056 MB / 2.606 GB, free: 4.855 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/3.902, allocations: 12 kB / 2.606 GB, free: 4.844 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/3.905, allocations: 0.5939 MB / 2.606 GB, free: 4.254 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001798/3.906, allocations: 419.3 kB / 2.607 GB, free: 3.844 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/3.917, allocations: 6.67 MB / 2.613 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/3.92, allocations: 354.4 kB / 2.614 GB, free: 12.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/3.92, allocations: 71.97 kB / 2.614 GB, free: 12.43 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.0003676/3.921, allocations: 136.8 kB / 2.614 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003453/3.921, allocations: 225.2 kB / 2.614 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004138/3.925, allocations: 1.919 MB / 2.616 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/3.925, allocations: 15.98 kB / 2.616 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/3.925, allocations: 0 / 2.616 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002698/3.928, allocations: 1.671 MB / 2.618 GB, free: 8.363 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006828/3.935, allocations: 3.973 MB / 2.621 GB, free: 4.352 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/3.935, allocations: 0 / 2.621 GB, free: 4.352 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/3.936, allocations: 315.7 kB / 2.622 GB, free: 4.043 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/3.937, allocations: 389.8 kB / 2.622 GB, free: 3.66 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.061e-05/3.938, allocations: 23.91 kB / 2.622 GB, free: 3.637 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/3.939, allocations: 1.557 MB / 2.624 GB, free: 2.035 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/3.939, allocations: 0 / 2.624 GB, free: 2.035 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2775/4.216, allocations: 2.527 MB / 2.626 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/4.218, allocations: 0.4981 MB / 2.627 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/4.218, allocations: 3.906 kB / 2.627 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/4.22, allocations: 326.9 kB / 2.627 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/4.22, allocations: 65.89 kB / 2.627 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/4.22, allocations: 49.98 kB / 2.627 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.001448/4.222, allocations: 1.163 MB / 2.628 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.004299/4.226, allocations: 1.24 MB / 2.629 GB, free: 176.5 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.00141/4.228, allocations: 1.151 MB / 2.63 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003672/4.231, allocations: 2.782 MB / 2.633 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/4.231, allocations: 2.438 kB / 2.633 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009286/4.232, allocations: 0.6746 MB / 2.634 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004098/4.236, allocations: 1.008 MB / 2.635 GB, free: 175.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/4.25, allocations: 4.416 MB / 2.639 GB, free: 175 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/4.251, allocations: 1.885 MB / 2.641 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of SimCode: time 7.72e-07/4.251, allocations: 0 / 2.641 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.07973/4.331, allocations: 63.22 MB / 2.703 GB, free: 172.5 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.o Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c Buildings_maint.7.0.x_Buildings.Experimental.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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling.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_Cooling.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_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_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.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_Cooling.o] Error 1