Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.SaturationPressure.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.SaturationPressure,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SaturationPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Characteristics.Examples.SaturationPressure,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SaturationPressure",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.001712/0.001713, allocations: 176.2 kB / 7.646 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.192/0.192, 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.794/1.794, allocations: 170.6 MB / 201.3 MB, free: 4.594 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.001769/0.001769, allocations: 107.2 kB / 245.1 MB, free: 13.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.236e-05, allocations: 0 / 294.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3648, allocations: 43.28 MB / 338 MB, free: 37.74 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.26/10.62, allocations: 3.625 GB / 3.955 GB, free: 16.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003742/10.62, allocations: 78.39 kB / 3.955 GB, free: 16.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4568/11.08, allocations: 47.97 MB / 4.002 GB, free: 129.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/11.08, allocations: 0 / 4.002 GB, free: 129.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/11.08, allocations: 0 / 4.002 GB, free: 129.4 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.00108/11.08, allocations: 480.1 kB / 4.003 GB, free: 128.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/11.08, allocations: 7.5 kB / 4.003 GB, free: 128.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/11.1, allocations: 2.459 MB / 4.005 GB, free: 128.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/11.1, allocations: 167.3 kB / 4.005 GB, free: 128.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/11.1, allocations: 7.562 kB / 4.005 GB, free: 128.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/11.1, allocations: 1.031 kB / 4.005 GB, free: 128.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003707/11.1, allocations: 187.6 kB / 4.006 GB, free: 128.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/11.1, allocations: 245.8 kB / 4.006 GB, free: 128.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/11.1, allocations: 0 / 4.006 GB, free: 128.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/11.1, allocations: 3.938 kB / 4.006 GB, free: 128.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/11.1, allocations: 7.781 kB / 4.006 GB, free: 128.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/11.1, allocations: 0.6908 MB / 4.006 GB, free: 127.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/11.1, allocations: 306.5 kB / 4.007 GB, free: 127.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/11.1, allocations: 144.8 kB / 4.007 GB, free: 127.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/11.1, allocations: 4 kB / 4.007 GB, free: 127.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/11.1, allocations: 37.8 kB / 4.007 GB, free: 127.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.833e-06/11.1, allocations: 2.344 kB / 4.007 GB, free: 127.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.028/11.13, allocations: 3.782 MB / 4.011 GB, free: 125.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/11.13, allocations: 55.41 kB / 4.011 GB, free: 125.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/11.13, allocations: 96.98 kB / 4.011 GB, free: 125.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/11.13, allocations: 25.7 kB / 4.011 GB, free: 125.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/11.13, allocations: 80.14 kB / 4.011 GB, free: 125.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/11.13, allocations: 23.73 kB / 4.011 GB, free: 125.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/11.13, allocations: 0 / 4.011 GB, free: 125.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.952e-05/11.13, allocations: 314.8 kB / 4.011 GB, free: 125.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/11.13, allocations: 143.9 kB / 4.011 GB, free: 125 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/11.13, allocations: 139.9 kB / 4.011 GB, free: 124.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02538/11.15, allocations: 3.573 MB / 4.015 GB, free: 121.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/11.15, allocations: 4 kB / 4.015 GB, free: 121.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.02564/11.18, allocations: 3.782 MB / 4.019 GB, free: 117.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/11.18, allocations: 4.781 kB / 4.019 GB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/11.18, allocations: 0 / 4.019 GB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/11.18, allocations: 4 kB / 4.019 GB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.07991/11.26, allocations: 9.045 MB / 4.027 GB, free: 108.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02742/11.29, allocations: 5.393 MB / 4.033 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/11.29, allocations: 36 kB / 4.033 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.515e-05/11.29, allocations: 31.95 kB / 4.033 GB, free: 102.9 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 (5): * 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): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/11.29, allocations: 105.1 kB / 4.033 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02435/11.31, allocations: 3.789 MB / 4.037 GB, free: 99.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.382e-05/11.31, allocations: 4 kB / 4.037 GB, free: 99.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04074/11.35, allocations: 6.175 MB / 4.043 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/11.35, allocations: 0 / 4.043 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/11.35, allocations: 7.953 kB / 4.043 GB, free: 92.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/11.35, allocations: 4 kB / 4.043 GB, free: 92.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004153/11.35, allocations: 347.7 kB / 4.043 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/11.35, allocations: 0 / 4.043 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/11.35, allocations: 31.98 kB / 4.043 GB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/11.36, allocations: 0.7308 MB / 4.044 GB, free: 91.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/11.36, allocations: 19.97 kB / 4.044 GB, free: 91.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02828/11.38, allocations: 5.47 MB / 4.049 GB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/11.38, allocations: 0 / 4.049 GB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04203/11.43, allocations: 6.13 MB / 4.055 GB, free: 79.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.364e-05/11.43, allocations: 92.94 kB / 4.055 GB, free: 79.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.614e-05/11.43, allocations: 0 / 4.055 GB, free: 79.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/11.43, allocations: 35.97 kB / 4.055 GB, free: 79.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.4e-05/11.43, allocations: 19.97 kB / 4.055 GB, free: 79.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-05/11.43, allocations: 34.45 kB / 4.055 GB, free: 79.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.938e-05/11.43, allocations: 79.28 kB / 4.055 GB, free: 79.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/11.43, allocations: 4 kB / 4.055 GB, free: 79.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007499/11.43, allocations: 127.8 kB / 4.055 GB, free: 79.56 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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.04475/11.47, allocations: 7.514 MB / 4.063 GB, free: 72.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.07212/11.55, allocations: 10 MB / 4.073 GB, free: 62.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/11.55, allocations: 4 kB / 4.073 GB, free: 62.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002509/11.55, allocations: 0.5814 MB / 4.073 GB, free: 61.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/11.55, allocations: 4 kB / 4.073 GB, free: 61.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009966/11.55, allocations: 353.7 kB / 4.073 GB, free: 61.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/11.55, allocations: 0.7077 MB / 4.074 GB, free: 60.37 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.847e-05/11.55, allocations: 20.55 kB / 4.074 GB, free: 60.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/11.55, allocations: 31.42 kB / 4.074 GB, free: 60.32 MB / 394.7 MB Notification: Performance of SimCode: time 1.183e-06/11.55, allocations: 0 / 4.074 GB, free: 60.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03707/11.59, allocations: 10.72 MB / 4.085 GB, free: 49.61 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002542/11.59, allocations: 132.1 kB / 4.085 GB, free: 49.41 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_SaturationPressure -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys_Characteristics_Examples_SaturationPressure_FMU.o FCSys_FCSys_Characteristics_Examples_SaturationPressure_FMU.c In file included from FCSys_FCSys_Characteristics_Examples_SaturationPressure_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_SaturationPressure_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_SaturationPressure -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys_Characteristics_Examples_SaturationPressure.o FCSys_FCSys_Characteristics_Examples_SaturationPressure.c In file included from FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:7: In file included from ./FCSys_FCSys_Characteristics_Examples_SaturationPressure_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_SaturationPressure.c:135:78: error: use of undeclared identifier '$Pb_v$lB2$c3$rB' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:135:111: error: use of undeclared identifier '$Pb_v$lB2$c2$rB' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:135:153: error: use of undeclared identifier '$Pb_v$lB2$c1$rB' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:149:78: error: use of undeclared identifier '$Pb_v$lB1$c2$rB' array_alloc_scalar_real_array(&tmp5, 3, (modelica_real)0.0, (modelica_real)$Pb_v$lB1$c2$rB, (modelica_real)($Pb_v$lB1$c1$rB) * (2.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:149:111: error: use of undeclared identifier '$Pb_v$lB1$c1$rB' array_alloc_scalar_real_array(&tmp5, 3, (modelica_real)0.0, (modelica_real)$Pb_v$lB1$c2$rB, (modelica_real)($Pb_v$lB1$c1$rB) * (2.0)); ^ 2 warnings and 5 errors generated. make: *** [: FCSys_FCSys_Characteristics_Examples_SaturationPressure.o] Error 1