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.001642/0.001642, allocations: 173.6 kB / 7.645 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1485/0.1485, allocations: 17.63 MB / 25.7 MB, free: 0.5117 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.775/1.775, allocations: 170.6 MB / 201.3 MB, free: 4.59 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.00203/0.00203, allocations: 114.5 kB / 245.1 MB, free: 13.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.522e-05, allocations: 0 / 294.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.33, allocations: 43.29 MB / 338 MB, free: 37.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.44/10.77, allocations: 3.629 GB / 3.959 GB, free: 13.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003937/10.77, allocations: 79.02 kB / 3.959 GB, free: 13.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4974/11.26, allocations: 59.53 MB / 4.017 GB, free: 121.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.444e-06/11.26, allocations: 0 / 4.017 GB, free: 121.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/11.26, allocations: 0 / 4.017 GB, free: 121.7 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.00118/11.27, allocations: 0.49 MB / 4.017 GB, free: 121.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/11.27, allocations: 12.03 kB / 4.017 GB, free: 121.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01022/11.28, allocations: 1.308 MB / 4.019 GB, free: 119.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/11.28, allocations: 189.3 kB / 4.019 GB, free: 119.6 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/11.28, allocations: 0 / 4.019 GB, free: 119.6 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/11.28, allocations: 3.938 kB / 4.019 GB, free: 119.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002668/11.28, allocations: 99.89 kB / 4.019 GB, free: 119.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/11.28, allocations: 133.5 kB / 4.019 GB, free: 119.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/11.28, allocations: 4 kB / 4.019 GB, free: 119.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/11.28, allocations: 4 kB / 4.019 GB, free: 119.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/11.28, allocations: 0 / 4.019 GB, free: 119.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009833/11.28, allocations: 476 kB / 4.02 GB, free: 118.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/11.28, allocations: 222.4 kB / 4.02 GB, free: 118.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/11.28, allocations: 76.94 kB / 4.02 GB, free: 118.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/11.28, allocations: 0 / 4.02 GB, free: 118.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/11.28, allocations: 34.55 kB / 4.02 GB, free: 118.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 1.774e-06/11.28, allocations: 0 / 4.02 GB, free: 118.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=4): time 0.01304/11.29, allocations: 1.501 MB / 4.021 GB, free: 117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/11.29, allocations: 51.41 kB / 4.021 GB, free: 116.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/11.29, allocations: 150.5 kB / 4.021 GB, free: 116.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/11.29, allocations: 25.7 kB / 4.022 GB, free: 116.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.465e-05/11.29, allocations: 100.1 kB / 4.022 GB, free: 116.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/11.29, allocations: 15.75 kB / 4.022 GB, free: 116.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/11.29, allocations: 0 / 4.022 GB, free: 116.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.851e-05/11.29, allocations: 330.8 kB / 4.022 GB, free: 116.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/11.29, allocations: 71.89 kB / 4.022 GB, free: 116.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/11.29, allocations: 79.91 kB / 4.022 GB, free: 116.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/11.3, allocations: 1.377 MB / 4.023 GB, free: 114.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/11.3, allocations: 0 / 4.023 GB, free: 114.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.01261/11.32, allocations: 1.496 MB / 4.025 GB, free: 113.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/11.32, allocations: 15.12 kB / 4.025 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/11.32, allocations: 0 / 4.025 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/11.32, allocations: 0 / 4.025 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02882/11.35, allocations: 2.945 MB / 4.028 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01365/11.36, allocations: 2.279 MB / 4.03 GB, free: 108 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/11.36, allocations: 24 kB / 4.03 GB, free: 108 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/11.36, allocations: 11.98 kB / 4.03 GB, free: 108 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: p_abs:VARIABLE(min = 0.0 unit = "M/(L.T2)" ) "H2O pressure in the ionomer" type: Real 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.0002455/11.36, allocations: 106 kB / 4.03 GB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01227/11.37, allocations: 1.503 MB / 4.032 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/11.37, allocations: 15.86 kB / 4.032 GB, free: 106.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/11.39, allocations: 1.826 MB / 4.033 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/11.39, allocations: 0 / 4.033 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/11.39, allocations: 0 / 4.033 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/11.39, allocations: 4 kB / 4.033 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/11.4, allocations: 2.151 MB / 4.036 GB, free: 102.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/11.4, allocations: 3.938 kB / 4.036 GB, free: 102.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/11.4, allocations: 28.02 kB / 4.036 GB, free: 102.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/11.4, allocations: 280.5 kB / 4.036 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/11.4, allocations: 11.98 kB / 4.036 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009844/11.41, allocations: 1.902 MB / 4.038 GB, free: 100 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/11.41, allocations: 0 / 4.038 GB, free: 100 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/11.43, allocations: 1.882 MB / 4.04 GB, free: 98.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/11.43, allocations: 129 kB / 4.04 GB, free: 97.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.497e-05/11.43, allocations: 7.938 kB / 4.04 GB, free: 97.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/11.43, allocations: 19.98 kB / 4.04 GB, free: 97.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.912e-05/11.43, allocations: 7.984 kB / 4.04 GB, free: 97.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/11.43, allocations: 19.98 kB / 4.04 GB, free: 97.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001996/11.43, allocations: 134.4 kB / 4.04 GB, free: 97.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/11.43, allocations: 0 / 4.04 GB, free: 97.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009806/11.43, allocations: 107.9 kB / 4.04 GB, free: 97.68 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.0162/11.45, allocations: 3.245 MB / 4.043 GB, free: 94.49 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.03085/11.48, allocations: 3.21 MB / 4.046 GB, free: 91.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/11.48, allocations: 0 / 4.046 GB, free: 91.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/11.48, allocations: 299.6 kB / 4.047 GB, free: 90.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/11.48, allocations: 20.17 kB / 4.047 GB, free: 90.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/11.48, allocations: 283.3 kB / 4.047 GB, free: 90.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/11.48, allocations: 0.7233 MB / 4.047 GB, free: 89.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/11.48, allocations: 12.56 kB / 4.048 GB, free: 89.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/11.48, allocations: 39.08 kB / 4.048 GB, free: 89.85 MB / 394.7 MB Notification: Performance of SimCode: time 2.014e-06/11.48, allocations: 0 / 4.048 GB, free: 89.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0421/11.52, allocations: 9.699 MB / 4.057 GB, free: 80.17 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/11.52, allocations: 122.9 kB / 4.057 GB, free: 79.98 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=FCSys_FCSys_Characteristics_Examples_HydrationLevel -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys_Characteristics_Examples_HydrationLevel_FMU.o FCSys_FCSys_Characteristics_Examples_HydrationLevel_FMU.c In file included from FCSys_FCSys_Characteristics_Examples_HydrationLevel_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from FCSys_FCSys_Characteristics_Examples_HydrationLevel_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=FCSys_FCSys_Characteristics_Examples_HydrationLevel -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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 include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/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:72:58: error: use of undeclared identifier '$Pb_v$lB1$c1$rB' array_alloc_scalar_real_array(&tmp0, 1, (modelica_real)$Pb_v$lB1$c1$rB); ^ 2 warnings and 1 error generated. make: *** [: FCSys_FCSys_Characteristics_Examples_HydrationLevel.o] Error 1