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.008203/0.008203, allocations: 164.2 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1412/0.1412, allocations: 17.63 MB / 33.47 MB, free: 1.418 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.67/1.67, allocations: 170.8 MB / 209.5 MB, free: 15.97 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001751/0.001751, allocations: 106.8 kB / 253.6 MB, free: 8.301 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004179, allocations: 16 kB / 307.5 MB, free: 2.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3158, allocations: 43.29 MB / 350.8 MB, free: 36.05 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.244/9.56, allocations: 3.629 GB / 3.972 GB, free: 144.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003865/9.56, allocations: 82.7 kB / 3.972 GB, free: 144.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1393/9.7, allocations: 60.39 MB / 4.031 GB, free: 89.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.214e-06/9.7, allocations: 0 / 4.031 GB, free: 89.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.469e-05/9.7, allocations: 7.938 kB / 4.031 GB, free: 89.15 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.001287/9.701, allocations: 0.5227 MB / 4.031 GB, free: 88.58 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.796e-05/9.701, allocations: 8.031 kB / 4.031 GB, free: 88.57 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.891e-05/9.701, allocations: 38.47 kB / 4.032 GB, free: 88.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007793/9.709, allocations: 1.302 MB / 4.033 GB, free: 87.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/9.709, allocations: 191.3 kB / 4.033 GB, free: 87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/9.71, allocations: 8 kB / 4.033 GB, free: 86.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/9.71, allocations: 3.938 kB / 4.033 GB, free: 86.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/9.71, allocations: 189.4 kB / 4.033 GB, free: 86.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/9.71, allocations: 4 kB / 4.033 GB, free: 86.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/9.71, allocations: 3.953 kB / 4.033 GB, free: 86.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/9.71, allocations: 0 / 4.033 GB, free: 86.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003895/9.711, allocations: 163.8 kB / 4.033 GB, free: 86.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009149/9.711, allocations: 496.5 kB / 4.034 GB, free: 86.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007163/9.712, allocations: 330.2 kB / 4.034 GB, free: 85.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/9.712, allocations: 4.031 kB / 4.034 GB, free: 85.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/9.712, allocations: 38.56 kB / 4.034 GB, free: 85.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=4): time 3.025e-06/9.712, allocations: 3.984 kB / 4.034 GB, free: 85.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=4): time 0.001028/9.713, allocations: 389.4 kB / 4.035 GB, free: 85.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/9.713, allocations: 51.41 kB / 4.035 GB, free: 85.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/9.713, allocations: 164.5 kB / 4.035 GB, free: 85.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/9.714, allocations: 29.7 kB / 4.035 GB, free: 85.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.044e-05/9.714, allocations: 100.1 kB / 4.035 GB, free: 84.95 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/9.714, allocations: 7.812 kB / 4.035 GB, free: 84.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/9.714, allocations: 4 kB / 4.035 GB, free: 84.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/9.714, allocations: 322.8 kB / 4.035 GB, free: 84.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/9.714, allocations: 111.9 kB / 4.035 GB, free: 84.51 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/9.714, allocations: 119.9 kB / 4.035 GB, free: 84.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/9.715, allocations: 111.8 kB / 4.036 GB, free: 84.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/9.715, allocations: 0 / 4.036 GB, free: 84.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0006114/9.715, allocations: 289.3 kB / 4.036 GB, free: 83.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/9.715, allocations: 8 kB / 4.036 GB, free: 83.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/9.715, allocations: 0 / 4.036 GB, free: 83.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/9.715, allocations: 0 / 4.036 GB, free: 83.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/9.72, allocations: 0.5461 MB / 4.036 GB, free: 83.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/9.722, allocations: 1.093 MB / 4.037 GB, free: 82.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/9.722, allocations: 28.05 kB / 4.037 GB, free: 82.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/9.722, allocations: 15.97 kB / 4.037 GB, free: 82.28 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 () * Number of clocked 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.000156/9.722, allocations: 126.3 kB / 4.038 GB, free: 82.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/9.722, allocations: 11.81 kB / 4.038 GB, free: 82.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/9.724, allocations: 0.5422 MB / 4.038 GB, free: 81.58 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/9.724, allocations: 4 kB / 4.038 GB, free: 81.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/9.724, allocations: 4 kB / 4.038 GB, free: 81.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/9.724, allocations: 7.922 kB / 4.038 GB, free: 81.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/9.726, allocations: 0.8874 MB / 4.039 GB, free: 80.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/9.726, allocations: 4.031 kB / 4.039 GB, free: 80.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/9.726, allocations: 19.98 kB / 4.039 GB, free: 80.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004109/9.73, allocations: 0.6601 MB / 4.04 GB, free: 79.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/9.73, allocations: 7.984 kB / 4.04 GB, free: 79.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/9.733, allocations: 1.052 MB / 4.041 GB, free: 78.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/9.733, allocations: 4.031 kB / 4.041 GB, free: 78.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/9.734, allocations: 0.5885 MB / 4.041 GB, free: 78.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/9.734, allocations: 132.9 kB / 4.041 GB, free: 78.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/9.734, allocations: 7.938 kB / 4.041 GB, free: 78.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/9.734, allocations: 23.97 kB / 4.041 GB, free: 78.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/9.735, allocations: 7.984 kB / 4.041 GB, free: 78.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/9.735, allocations: 15.98 kB / 4.041 GB, free: 78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001364/9.735, allocations: 146.7 kB / 4.042 GB, free: 77.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/9.735, allocations: 0 / 4.042 GB, free: 77.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006882/9.735, allocations: 119.9 kB / 4.042 GB, free: 77.74 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 () * Number of clocked 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.00286/9.738, allocations: 1.91 MB / 4.044 GB, free: 75.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005923/9.744, allocations: 0.9285 MB / 4.044 GB, free: 74.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/9.744, allocations: 4 kB / 4.044 GB, free: 74.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/9.746, allocations: 351.7 kB / 4.045 GB, free: 74.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/9.746, allocations: 29.33 kB / 4.045 GB, free: 74.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/9.748, allocations: 1.247 MB / 4.046 GB, free: 73.19 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/9.749, allocations: 0.7082 MB / 4.047 GB, free: 72.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.7e-05/9.749, allocations: 20.62 kB / 4.047 GB, free: 72.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.667e-05/9.749, allocations: 31.42 kB / 4.047 GB, free: 72.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/9.749, allocations: 0 / 4.047 GB, free: 72.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/9.779, allocations: 15.57 MB / 4.062 GB, free: 56.83 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/9.779, allocations: 204 kB / 4.062 GB, free: 56.57 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FCSys_FCSys_Characteristics_Examples_HydrationLevel.c:89:73: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp0, 1, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 1), ((modelica_integer) 1))); ^ 2 warnings and 1 error generated. make: *** [: FCSys_FCSys_Characteristics_Examples_HydrationLevel.o] Error 1