Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.HydrationLevel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package FCSys with version 0.2.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(FCSys.Characteristics.Examples.HydrationLevel,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_HydrationLevel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Characteristics.Examples.HydrationLevel,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_HydrationLevel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001284/0.001283, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1639/0.1639, allocations: 17.6 MB / 30.86 MB, free: 3.16 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.873/1.873, allocations: 170.6 MB / 206.5 MB, free: 5.609 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001883/0.001883, allocations: 107.6 kB / 250.4 MB, free: 8.281 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.709e-05/4.71e-05, allocations: 4 kB / 301.7 MB, free: 8.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 43.31 MB / 345 MB, free: 13.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.85/10.96, allocations: 3.629 GB / 3.966 GB, free: 120.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/10.97, allocations: 78.09 kB / 3.966 GB, free: 120.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.145/11.11, allocations: 60.28 MB / 4.025 GB, free: 60.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.715e-06/11.11, allocations: 0 / 4.025 GB, free: 60.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/11.11, allocations: 0 / 4.025 GB, free: 60.96 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.001217/11.11, allocations: 0.5 MB / 4.026 GB, free: 60.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.16e-05/11.11, allocations: 8.031 kB / 4.026 GB, free: 60.42 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.542e-05/11.11, allocations: 38.53 kB / 4.026 GB, free: 60.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007576/11.12, allocations: 1.31 MB / 4.027 GB, free: 59.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/11.12, allocations: 194.8 kB / 4.027 GB, free: 58.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/11.12, allocations: 4 kB / 4.027 GB, free: 58.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/11.12, allocations: 0 / 4.027 GB, free: 58.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/11.12, allocations: 153.5 kB / 4.027 GB, free: 58.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/11.12, allocations: 0 / 4.027 GB, free: 58.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/11.12, allocations: 7.891 kB / 4.027 GB, free: 58.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/11.12, allocations: 0 / 4.027 GB, free: 58.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/11.12, allocations: 99.89 kB / 4.027 GB, free: 58.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009316/11.12, allocations: 0.4966 MB / 4.028 GB, free: 58.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/11.12, allocations: 222.4 kB / 4.028 GB, free: 57.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/11.12, allocations: 80.97 kB / 4.028 GB, free: 57.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/11.12, allocations: 0 / 4.028 GB, free: 57.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/11.12, allocations: 34.56 kB / 4.028 GB, free: 57.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 1.643e-06/11.12, allocations: 0 / 4.028 GB, free: 57.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004791/11.12, allocations: 197.3 kB / 4.028 GB, free: 57.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/11.12, allocations: 55.41 kB / 4.028 GB, free: 57.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/11.12, allocations: 153.8 kB / 4.029 GB, free: 57.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/11.12, allocations: 25.7 kB / 4.029 GB, free: 57.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/11.12, allocations: 104.1 kB / 4.029 GB, free: 57.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/11.12, allocations: 15.81 kB / 4.029 GB, free: 57.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/11.12, allocations: 0 / 4.029 GB, free: 57.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/11.12, allocations: 318.8 kB / 4.029 GB, free: 56.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/11.12, allocations: 67.94 kB / 4.029 GB, free: 56.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/11.12, allocations: 71.94 kB / 4.029 GB, free: 56.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/11.12, allocations: 60.89 kB / 4.029 GB, free: 56.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/11.12, allocations: 3.984 kB / 4.029 GB, free: 56.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003313/11.12, allocations: 201.3 kB / 4.029 GB, free: 56.37 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/11.12, allocations: 8 kB / 4.029 GB, free: 56.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/11.12, allocations: 0 / 4.029 GB, free: 56.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/11.12, allocations: 4 kB / 4.029 GB, free: 56.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004509/11.13, allocations: 0.5539 MB / 4.03 GB, free: 55.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001951/11.13, allocations: 0.9997 MB / 4.031 GB, free: 54.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/11.13, allocations: 27.94 kB / 4.031 GB, free: 54.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/11.13, allocations: 11.98 kB / 4.031 GB, free: 54.74 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000114/11.13, allocations: 119.6 kB / 4.031 GB, free: 54.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/11.13, allocations: 11.81 kB / 4.031 GB, free: 54.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/11.13, allocations: 431.8 kB / 4.031 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/11.13, allocations: 0 / 4.031 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/11.13, allocations: 0 / 4.031 GB, free: 54.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/11.13, allocations: 3.984 kB / 4.031 GB, free: 54.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/11.13, allocations: 0.7838 MB / 4.032 GB, free: 53.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/11.13, allocations: 3.938 kB / 4.032 GB, free: 53.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/11.13, allocations: 19.98 kB / 4.032 GB, free: 53.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003934/11.14, allocations: 0.6016 MB / 4.033 GB, free: 52.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/11.14, allocations: 11.98 kB / 4.033 GB, free: 52.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/11.14, allocations: 0.9698 MB / 4.034 GB, free: 51.67 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/11.14, allocations: 3.984 kB / 4.034 GB, free: 51.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/11.14, allocations: 483.6 kB / 4.034 GB, free: 51.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/11.14, allocations: 132.8 kB / 4.034 GB, free: 51.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/11.14, allocations: 11.98 kB / 4.034 GB, free: 51.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/11.14, allocations: 23.97 kB / 4.034 GB, free: 50.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/11.14, allocations: 11.92 kB / 4.034 GB, free: 50.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/11.14, allocations: 11.98 kB / 4.034 GB, free: 50.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000149/11.14, allocations: 137.7 kB / 4.035 GB, free: 50.83 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/11.14, allocations: 4 kB / 4.035 GB, free: 50.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008175/11.14, allocations: 123.9 kB / 4.035 GB, free: 50.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002445/11.14, allocations: 1.74 MB / 4.036 GB, free: 48.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005681/11.15, allocations: 0.8427 MB / 4.037 GB, free: 48.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/11.15, allocations: 4 kB / 4.037 GB, free: 48.08 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/11.15, allocations: 296.7 kB / 4.038 GB, free: 47.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/11.15, allocations: 36.8 kB / 4.038 GB, free: 47.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/11.15, allocations: 311.9 kB / 4.038 GB, free: 47.42 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/11.15, allocations: 0.7082 MB / 4.039 GB, free: 46.68 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.111e-05/11.15, allocations: 16.55 kB / 4.039 GB, free: 46.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/11.15, allocations: 28.19 kB / 4.039 GB, free: 46.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/11.15, allocations: 0 / 4.039 GB, free: 46.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0372/11.19, allocations: 17.22 MB / 4.055 GB, free: 29.5 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/11.19, allocations: 167.7 kB / 4.056 GB, free: 29.28 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o FCSys_FCSys_Characteristics_Examples_HydrationLevel.o FCSys_FCSys_Characteristics_Examples_HydrationLevel.c In file included from FCSys_FCSys_Characteristics_Examples_HydrationLevel.c:7: In file included from ./FCSys_FCSys_Characteristics_Examples_HydrationLevel_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FCSys_FCSys_Characteristics_Examples_HydrationLevel.c:89:62: warning: expression result unused [-Wunused-value] array_alloc_scalar_real_array(&tmp0, 1, (modelica_real)b_v[1,1]); ^ FCSys_FCSys_Characteristics_Examples_HydrationLevel.c:89:58: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp0, 1, (modelica_real)b_v[1,1]); ^ 3 warnings and 1 error generated. make: *** [: FCSys_FCSys_Characteristics_Examples_HydrationLevel.o] Error 1