Running command: "" <> buildModelFMU(Modelica.Media.Incompressible.Examples.TestGlycol,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol",fmuType="cs",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(Modelica): time 3.095/3.095, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3676/3.463, allocations: 46.83 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/3.607, allocations: 44.49 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7679/4.375, allocations: 187 MB / 480.9 MB, free: 4.059 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003962/4.375, allocations: 74.95 kB / 480.9 MB, free: 4.02 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.4571/4.833, allocations: 30.16 MB / 0.4991 GB, free: 118.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.616e-05/4.833, allocations: 7.438 kB / 0.4991 GB, free: 118.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/4.834, allocations: 35.89 kB / 0.4991 GB, free: 118.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/4.834, allocations: 199.3 kB / 0.4993 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/4.834, allocations: 11 kB / 0.4993 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/4.834, allocations: 3.875 kB / 0.4994 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005184/4.835, allocations: 104.2 kB / 0.4994 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/4.835, allocations: 126.7 kB / 0.4996 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/4.835, allocations: 0 / 0.4996 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.862e-05/4.835, allocations: 0 / 0.4996 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/4.836, allocations: 7.781 kB / 0.4996 GB, free: 118.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/4.837, allocations: 0.613 MB / 0.5002 GB, free: 117.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/4.837, allocations: 79.98 kB / 0.5003 GB, free: 117.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/4.838, allocations: 32.95 kB / 0.5003 GB, free: 117.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001414/4.839, allocations: 0.857 MB / 0.5011 GB, free: 116.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/4.839, allocations: 38.25 kB / 0.5012 GB, free: 116.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 4.789e-06/4.839, allocations: 0 / 0.5012 GB, free: 116.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.003082/4.842, allocations: 167.2 kB / 0.5013 GB, free: 116.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/4.842, allocations: 55.41 kB / 0.5014 GB, free: 116.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/4.843, allocations: 110.5 kB / 0.5015 GB, free: 116.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/4.843, allocations: 25.7 kB / 0.5015 GB, free: 116.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.688e-05/4.843, allocations: 102.5 kB / 0.5016 GB, free: 116.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/4.843, allocations: 42.47 kB / 0.5016 GB, free: 116.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.317e-05/4.843, allocations: 0 / 0.5016 GB, free: 116.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.446e-05/4.843, allocations: 325.1 kB / 0.5019 GB, free: 116.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/4.843, allocations: 21.84 kB / 0.502 GB, free: 116.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/4.843, allocations: 61.75 kB / 0.502 GB, free: 116 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002566/4.846, allocations: 101.5 kB / 0.5021 GB, free: 116 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/4.846, allocations: 1.203 kB / 0.5021 GB, free: 116 MB / 394.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003109/4.849, allocations: 181.4 kB / 0.5023 GB, free: 116 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/4.849, allocations: 7.672 kB / 0.5023 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/4.849, allocations: 0 / 0.5023 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.276e-05/4.849, allocations: 3.688 kB / 0.5023 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004504/4.85, allocations: 39.47 kB / 0.5023 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/4.85, allocations: 7.719 kB / 0.5024 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/4.85, allocations: 11.53 kB / 0.5024 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.47e-05/4.85, allocations: 15.31 kB / 0.5024 GB, free: 116 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001554/4.85, allocations: 112.4 kB / 0.5025 GB, free: 115.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/4.851, allocations: 7.688 kB / 0.5025 GB, free: 115.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/4.855, allocations: 352 kB / 0.5028 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.886e-05/4.855, allocations: 7.812 kB / 0.5028 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/4.855, allocations: 3.906 kB / 0.5028 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/4.855, allocations: 0 / 0.5028 GB, free: 115.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/4.859, allocations: 0.491 MB / 0.5033 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/4.859, allocations: 3.891 kB / 0.5033 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/4.859, allocations: 19.62 kB / 0.5033 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/4.859, allocations: 3.938 kB / 0.5033 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/4.859, allocations: 11.08 kB / 0.5034 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/4.859, allocations: 7.875 kB / 0.5034 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/4.859, allocations: 0 / 0.5034 GB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002636/4.862, allocations: 308.1 kB / 0.5037 GB, free: 115.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002808/4.865, allocations: 0.6818 MB / 0.5043 GB, free: 114.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/4.865, allocations: 105.7 kB / 0.5044 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.469e-05/4.865, allocations: 0 / 0.5044 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/4.866, allocations: 0 / 0.5044 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/4.866, allocations: 16.44 kB / 0.5044 GB, free: 114.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-05/4.866, allocations: 19.61 kB / 0.5045 GB, free: 114.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001016/4.866, allocations: 94 kB / 0.5045 GB, free: 114.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003499/4.869, allocations: 94.48 kB / 0.5046 GB, free: 114.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001433/4.871, allocations: 220.9 kB / 0.5049 GB, free: 114.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005461/4.871, allocations: 107.6 kB / 0.505 GB, free: 114.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/4.872, allocations: 0 / 0.505 GB, free: 114.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003588/4.872, allocations: 76.8 kB / 0.505 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/4.873, allocations: 33.97 kB / 0.5051 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009223/4.874, allocations: 163 kB / 0.5052 GB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007546/4.875, allocations: 0.7457 MB / 0.5059 GB, free: 113.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.455e-06/4.875, allocations: 0 / 0.5059 GB, free: 113.7 MB / 394.7 MB Error: Error building simulator. Build log: make: Entering directory '/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelicaLibraryTesting/Modelica_3.2.2_cs_Modelica.Media.Incompressible.Examples.TestGlycol/Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.fmutmp/sources' clang -fPIC -Os -march=native -fno-stack-protector -Wno-parentheses-equality -Wno-unused-variable -fPIC -fdollars-in-identifiers -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_FMU.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_FMU.c clang -fPIC -Os -march=native -fno-stack-protector -Wno-parentheses-equality -Wno-unused-variable -fPIC -fdollars-in-identifiers -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.c clang -fPIC -Os -march=native -fno-stack-protector -Wno-parentheses-equality -Wno-unused-variable -fPIC -fdollars-in-identifiers -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.c Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.c:267:86: error: use of undeclared identifier '_poly_Cp' array_alloc_scalar_real_array(&tmp1, 2, (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 1))), (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 2)))); ^ Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.c:267:191: error: use of undeclared identifier '_poly_Cp' array_alloc_scalar_real_array(&tmp1, 2, (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 1))), (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 2)))); ^ 2 errors generated. : recipe for target 'Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.o' failed make: *** [Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.o] Error 1 make: Leaving directory '/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelicaLibraryTesting/Modelica_3.2.2_cs_Modelica.Media.Incompressible.Examples.TestGlycol/Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.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 Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.def Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.a Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.so Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_FMU.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_functions.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_records.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_01exo.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_02nls.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_03lsy.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_04set.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_05evt.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_06inz.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_07dly.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_08bnd.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_09alg.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_10asr.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_11mix.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_12jac.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_13opt.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_14lnz.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_15syn.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_16dae.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_17inl.o Modelica_3_2_2_cs_Modelica_Media_Incompressible_Examples_TestGlycol_init_fmu.o