Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.Example2,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2",fmuType="me",version="2.0",platforms={"dynamic"}) [: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 loadModel(Buildings): time 4.296/4.296, allocations: 403.9 MB / 410.9 MB, free: 4.949 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2699/4.566, allocations: 95.01 MB / 0.4941 GB, free: 7.367 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5195/5.085, allocations: 92.68 MB / 0.5846 GB, free: 3.422 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.033/6.119, allocations: 383.5 MB / 0.9591 GB, free: 48.49 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/6.119, allocations: 94 kB / 0.9592 GB, free: 48.44 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 2.715/8.834, allocations: 479 MB / 1.427 GB, free: 144.7 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/8.834, allocations: 7.406 kB / 1.427 GB, free: 144.7 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003607/8.838, allocations: 299.3 kB / 1.427 GB, free: 144.6 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009326/8.847, allocations: 1.991 MB / 1.429 GB, free: 144.2 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/8.848, allocations: 35 kB / 1.429 GB, free: 144.2 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/8.848, allocations: 58.16 kB / 1.429 GB, free: 144.2 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00253/8.85, allocations: 0.6486 MB / 1.43 GB, free: 144.2 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/8.853, allocations: 0.8815 MB / 1.431 GB, free: 144 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.703e-05/8.853, allocations: 6.25 kB / 1.431 GB, free: 144 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/8.853, allocations: 2.734 kB / 1.431 GB, free: 144 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/8.853, allocations: 21.59 kB / 1.431 GB, free: 144 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01142/8.865, allocations: 5.037 MB / 1.436 GB, free: 141.1 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/8.866, allocations: 410.9 kB / 1.436 GB, free: 141.1 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009062/8.867, allocations: 312.6 kB / 1.436 GB, free: 141 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00386/8.871, allocations: 1.451 MB / 1.438 GB, free: 140.2 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008606/8.872, allocations: 345.4 kB / 1.438 GB, free: 140.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=47): time 3.988e-06/8.872, allocations: 0 / 1.438 GB, free: 140.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=48): time 0.01813/8.89, allocations: 2.277 MB / 1.44 GB, free: 139.4 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/8.89, allocations: 145.2 kB / 1.441 GB, free: 139.3 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/8.892, allocations: 0.9987 MB / 1.442 GB, free: 139.1 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002613/8.893, allocations: 34.36 kB / 1.442 GB, free: 139.1 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004915/8.893, allocations: 460.9 kB / 1.442 GB, free: 138.8 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/8.894, allocations: 157 kB / 1.442 GB, free: 138.7 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.715e-05/8.894, allocations: 0 / 1.442 GB, free: 138.7 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.958e-05/8.894, allocations: 335.6 kB / 1.442 GB, free: 138.4 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008512/8.895, allocations: 272.3 kB / 1.443 GB, free: 138.4 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/8.896, allocations: 0.621 MB / 1.443 GB, free: 138 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002054/8.898, allocations: 405.2 kB / 1.444 GB, free: 138 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/8.898, allocations: 3.938 kB / 1.444 GB, free: 138 MB / 0.7761 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.01139/8.909, allocations: 1.272 MB / 1.445 GB, free: 137.9 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.000821/8.91, allocations: 3.355 MB / 1.448 GB, free: 134.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-05/8.91, allocations: 11.38 kB / 1.448 GB, free: 134.4 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000926/8.911, allocations: 218.8 kB / 1.448 GB, free: 134.4 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/8.913, allocations: 158.5 kB / 1.449 GB, free: 134.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/8.92, allocations: 1.051 MB / 1.45 GB, free: 133.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/8.922, allocations: 75.81 kB / 1.45 GB, free: 133.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/8.923, allocations: 51.02 kB / 1.45 GB, free: 133.9 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/8.923, allocations: 6.125 kB / 1.45 GB, free: 133.9 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00343/8.926, allocations: 0.8406 MB / 1.451 GB, free: 133.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/8.926, allocations: 10.75 kB / 1.451 GB, free: 133.8 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/8.927, allocations: 103.6 kB / 1.451 GB, free: 133.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/8.928, allocations: 152.4 kB / 1.451 GB, free: 133.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003264/8.931, allocations: 1.972 MB / 1.453 GB, free: 132.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/8.933, allocations: 61.19 kB / 1.453 GB, free: 132.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/8.933, allocations: 47.94 kB / 1.453 GB, free: 132.5 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {5 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003998/8.934, allocations: 141.3 kB / 1.453 GB, free: 132.3 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/8.934, allocations: 121.9 kB / 1.453 GB, free: 132.3 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/8.944, allocations: 1.17 MB / 1.454 GB, free: 132.2 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-05/8.945, allocations: 6.438 kB / 1.454 GB, free: 132.2 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/8.945, allocations: 7.172 kB / 1.454 GB, free: 132.2 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009153/8.954, allocations: 1.131 MB / 1.455 GB, free: 131.8 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/8.967, allocations: 2.183 MB / 1.458 GB, free: 131.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/8.967, allocations: 0 / 1.458 GB, free: 131.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/8.968, allocations: 86.23 kB / 1.458 GB, free: 131.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/8.969, allocations: 239.7 kB / 1.458 GB, free: 131.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/8.969, allocations: 10.98 kB / 1.458 GB, free: 131.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02111/8.99, allocations: 3.799 MB / 1.462 GB, free: 129.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/8.99, allocations: 0 / 1.462 GB, free: 129.5 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01082/9.001, allocations: 1.558 MB / 1.463 GB, free: 129.2 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01181/9.013, allocations: 2.343 MB / 1.465 GB, free: 128.5 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/9.014, allocations: 271 kB / 1.466 GB, free: 128.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003618/9.014, allocations: 2.25 kB / 1.466 GB, free: 128.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/9.016, allocations: 70.08 kB / 1.466 GB, free: 128.3 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/9.017, allocations: 48.2 kB / 1.466 GB, free: 128.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/9.017, allocations: 26.22 kB / 1.466 GB, free: 128.3 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.001897/9.019, allocations: 0.7708 MB / 1.467 GB, free: 128.2 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.007758/9.027, allocations: 0.8188 MB / 1.467 GB, free: 128.2 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (pump_dp.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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 {5 7,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002292/9.029, allocations: 0.73 MB / 1.468 GB, free: 128 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.008081/9.037, allocations: 1.358 MB / 1.469 GB, free: 127.8 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/9.037, allocations: 10.12 kB / 1.469 GB, free: 127.8 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.005278/9.042, allocations: 0.5603 MB / 1.47 GB, free: 127.7 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005297/9.048, allocations: 498.6 kB / 1.47 GB, free: 127.7 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007072/9.055, allocations: 1.821 MB / 1.472 GB, free: 127.2 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/9.057, allocations: 1.411 MB / 1.474 GB, free: 126.5 MB / 0.7761 GB Notification: Performance of SimCode: time 1.563e-06/9.057, allocations: 0 / 1.474 GB, free: 126.5 MB / 0.7761 GB Error: Error building simulator. Build log: make: Entering directory '/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelicaLibraryTesting/Buildings_5.0.1_Buildings.Fluid.Examples.Performance.Example2/Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.fmutmp/sources' clang -fPIC -O0 -march=native -fno-stack-protector -Wno-parentheses-equality -Wno-unused-variable -fPIC -fdollars-in-identifiers -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=1 -DOMC_NUM_NONLINEAR_SYSTEMS=3 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:155:9: error: unknown type name 'to' to set default values of constantHead and heads, and ^ Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:155:15: error: expected ';' after top level declarator to set default values of constantHead and heads, and ^ ; Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:156:70: warning: missing terminating '"' character [-Winvalid-pp-token] and for default pressure curve if not specified in record per" ^ In file included from Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:598: include/fmi2/fmu2_model_interface.c:382:3: warning: implicit declaration of function 'Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_setupDataStruc' is invalid in C99 [-Wimplicit-function-declaration] fmu2_model_interface_setupDataStruc(comp->fmuData); ^ Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:597:45: note: expanded from macro 'fmu2_model_interface_setupDataStruc' #define fmu2_model_interface_setupDataStruc Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_setupDataStruc ^ In file included from Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:598: include/fmi2/fmu2_model_interface.c:580:5: warning: implicit declaration of function 'Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_setupDataStruc' is invalid in C99 [-Wimplicit-function-declaration] fmu2_model_interface_setupDataStruc(comp->fmuData); ^ Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.c:597:45: note: expanded from macro 'fmu2_model_interface_setupDataStruc' #define fmu2_model_interface_setupDataStruc Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_setupDataStruc ^ 3 warnings and 2 errors generated. : recipe for target 'Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.o' failed make: *** [Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.o] Error 1 make: Leaving directory '/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelicaLibraryTesting/Buildings_5.0.1_Buildings.Fluid.Examples.Performance.Example2/Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.fmutmp/sources' Error: Error building simulator. Build log: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu build_short: x86_64-linux-gnu host_short: x86_64-linux-gnu checking for gcc... clang checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking how to run the C preprocessor... clang -E checking whether make sets $(MAKE)... yes checking for cross-compilation flags... not cross-compiling checking if -Werror works... ok checking looking for --no-undefined... yes checking looking for dollars in identifiers... CPPFLAGS: -fdollars-in-identifiers checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... no checking for an ANSI C-conforming const... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for vprintf... yes checking for _doprnt... no checking for strdup... yes checking for strerror... yes checking LAPACK/BLAS flags... -Wl,-Bstatic -llapack -lblas -Wl,-Bdynamic checking for static pthreads... OK (static) checking for cos in -lm... yes checking for filesystem access... OK configure: creating ./config.status config.status: creating Makefile rm -f Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.def Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.a Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.so Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_FMU.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_functions.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_records.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_01exo.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_02nls.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_03lsy.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_04set.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_05evt.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_06inz.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_07dly.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_08bnd.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_09alg.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_10asr.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_11mix.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_12jac.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_13opt.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_14lnz.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_15syn.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_16dae.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_17inl.o Buildings_5_0_1_Buildings_Fluid_Examples_Performance_Example2_init_fmu.o