Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 1.969/1.969, allocations: 253.1 MB / 260.4 MB, free: 7.645 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002317/0.002316, allocations: 177.3 kB / 319.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.878/1.878, allocations: 205.4 MB / 0.5704 GB, free: 15.08 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001265/0.001264, allocations: 85.58 kB / 0.6746 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.205e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1963, allocations: 106.3 MB / 0.888 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.4/1.597, allocations: 439.4 MB / 1.317 GB, free: 250.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/1.597, allocations: 87.2 kB / 1.317 GB, free: 250.9 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.25/6.847, allocations: 1.243 GB / 2.56 GB, free: 23.52 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0005819/6.848, allocations: 83.16 kB / 2.56 GB, free: 23.45 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.009585/6.858, allocations: 2.776 MB / 2.563 GB, free: 20.64 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/6.858, allocations: 8.031 kB / 2.563 GB, free: 20.64 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/6.868, allocations: 1.108 MB / 2.564 GB, free: 19.52 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/6.878, allocations: 2.941 MB / 2.567 GB, free: 16.58 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/6.879, allocations: 63.94 kB / 2.567 GB, free: 16.52 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008234/6.879, allocations: 122.2 kB / 2.567 GB, free: 16.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006099/6.886, allocations: 1.569 MB / 2.569 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006571/6.892, allocations: 1.861 MB / 2.57 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-05/6.892, allocations: 7.938 kB / 2.57 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/6.893, allocations: 0 / 2.57 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.557e-05/6.893, allocations: 48 kB / 2.57 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0268/6.919, allocations: 12.27 MB / 2.582 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006997/6.927, allocations: 1.16 MB / 2.584 GB, free: 14.69 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002281/6.929, allocations: 0.6558 MB / 2.584 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00186/6.931, allocations: 1.368 MB / 2.585 GB, free: 12.37 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.509e-05/6.931, allocations: 47.47 kB / 2.586 GB, free: 12.32 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=105): time 3.937e-06/6.931, allocations: 0 / 2.586 GB, free: 12.32 MB / 0.9011 GB Notification: Performance of matching and sorting (n=111): time 0.01702/6.948, allocations: 3.478 MB / 2.589 GB, free: 8.77 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/6.948, allocations: 171.1 kB / 2.589 GB, free: 8.566 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/6.952, allocations: 1.555 MB / 2.591 GB, free: 6.988 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0004585/6.953, allocations: 29.7 kB / 2.591 GB, free: 6.953 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008524/6.954, allocations: 0.808 MB / 2.591 GB, free: 6.129 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007314/6.954, allocations: 370.4 kB / 2.592 GB, free: 5.762 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/6.954, allocations: 0 / 2.592 GB, free: 5.762 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001829/6.955, allocations: 361.9 kB / 2.592 GB, free: 5.402 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/6.957, allocations: 0.539 MB / 2.593 GB, free: 4.863 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002234/6.959, allocations: 1.002 MB / 2.594 GB, free: 3.668 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/6.962, allocations: 0.7264 MB / 2.594 GB, free: 2.941 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/6.962, allocations: 8 kB / 2.594 GB, free: 2.934 MB / 0.9011 GB Notification: Performance of matching and sorting (n=180) (initialization): time 0.01488/6.977, allocations: 2.426 MB / 2.597 GB, free: 0.5 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.001461/6.978, allocations: 3.702 MB / 2.6 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.904e-05/6.978, allocations: 8 kB / 2.6 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/6.985, allocations: 0.8573 MB / 2.601 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003479/6.988, allocations: 395.4 kB / 2.602 GB, free: 11.15 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01735/7.006, allocations: 5.124 MB / 2.607 GB, free: 5.871 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006151/7.012, allocations: 407.4 kB / 2.607 GB, free: 5.473 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003228/7.012, allocations: 71.95 kB / 2.607 GB, free: 5.402 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/7.012, allocations: 4 kB / 2.607 GB, free: 5.398 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01292/7.025, allocations: 2.049 MB / 2.609 GB, free: 3.344 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/7.025, allocations: 8.781 kB / 2.609 GB, free: 3.336 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004648/7.03, allocations: 0.5983 MB / 2.61 GB, free: 2.73 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/7.034, allocations: 410.6 kB / 2.61 GB, free: 2.332 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4348/7.469, allocations: 6.675 MB / 2.617 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005749/7.475, allocations: 349.7 kB / 2.617 GB, free: 181.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005309/7.475, allocations: 70.53 kB / 2.617 GB, free: 181.5 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.0006236/7.476, allocations: 142.2 kB / 2.617 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008377/7.477, allocations: 221 kB / 2.617 GB, free: 181.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007615/7.484, allocations: 1.913 MB / 2.619 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/7.484, allocations: 19.86 kB / 2.619 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/7.484, allocations: 7.078 kB / 2.619 GB, free: 181.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004771/7.489, allocations: 1.665 MB / 2.621 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/7.502, allocations: 3.974 MB / 2.625 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/7.502, allocations: 3.719 kB / 2.625 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00294/7.505, allocations: 311.4 kB / 2.625 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002183/7.507, allocations: 393.5 kB / 2.625 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002846/7.507, allocations: 20.08 kB / 2.625 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/7.509, allocations: 1.549 MB / 2.627 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/7.509, allocations: 7.312 kB / 2.627 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007479/7.517, allocations: 2.527 MB / 2.629 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002081/7.519, allocations: 0.5042 MB / 2.63 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008375/7.52, allocations: 3.156 kB / 2.63 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004931/7.525, allocations: 321.8 kB / 2.63 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003148/7.525, allocations: 73.81 kB / 2.63 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002267/7.525, allocations: 52.88 kB / 2.63 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.002938/7.528, allocations: 1.166 MB / 2.631 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.009416/7.538, allocations: 1.237 MB / 2.633 GB, free: 178.8 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.002691/7.54, allocations: 1.137 MB / 2.634 GB, free: 178.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.008208/7.549, allocations: 2.79 MB / 2.636 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/7.549, allocations: 2 kB / 2.636 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.002142/7.551, allocations: 0.6663 MB / 2.637 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009649/7.561, allocations: 1.014 MB / 2.638 GB, free: 178.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02742/7.588, allocations: 4.417 MB / 2.642 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003008/7.591, allocations: 1.887 MB / 2.644 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of SimCode: time 1.553e-06/7.591, allocations: 2.031 kB / 2.644 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of Templates: time 0.1546/7.746, allocations: 63.2 MB / 2.706 GB, free: 174.7 MB / 0.9167 GB make -j1 -f Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.makefile b'clang -fPIC -O0 -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_7_0_0_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_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.o Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:372:3: error: use of undeclared identifier \'real\'; did you mean \'read\'?\n real /* assuming real for unknown type! */_array tmp21;\n ^~~~\n read\n/usr/include/unistd.h:363:16: note: \'read\' declared here\nextern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;\n ^\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:372:7: error: expected \';\' after expression\n real /* assuming real for unknown type! */_array tmp21;\n ^\n ;\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:372:45: error: use of undeclared identifier \'_array\'\n real /* assuming real for unknown type! */_array tmp21;\n ^\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:373:3: error: use of undeclared identifier \'array_alloc_real\'\n array_alloc_real /* assuming real for unknown type! */_array(&tmp21, 1, 1.0 - data->localData[0]->realVars[17] /* $cse19 variable */);\n ^\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:374:306: error: use of undeclared identifier \'tmp21\'\n 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);\n ^\nBuildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.c:372:3: warning: expression result unused [-Wunused-value]\n real /* assuming real for unknown type! */_array tmp21;\n ^~~~\n1 warning and 5 errors generated.\n: recipe for target \'Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.o\' failed\nmake: *** [Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.LakeWaterHeatExchanger_T_Cooling.o] Error 1\n'