Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.SurfaceTension.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.SurfaceTension,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SurfaceTension",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Characteristics.Examples.SurfaceTension,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SurfaceTension",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.001702/0.001703, allocations: 169.1 kB / 7.643 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.1564/0.1564, allocations: 17.63 MB / 25.7 MB, free: 0.5156 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.665/1.665, allocations: 170.6 MB / 201.3 MB, free: 4.598 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.001672/0.001672, allocations: 116.6 kB / 245.1 MB, free: 13.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.894e-05, allocations: 7.938 kB / 294.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3273, allocations: 43.28 MB / 338 MB, free: 37.6 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.4893, allocations: 109.5 MB / 447.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/0.4898, allocations: 79.95 kB / 447.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3571/0.8469, allocations: 20.63 MB / 468.2 MB, free: 106.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.847, allocations: 0 / 468.2 MB, free: 106.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.847, allocations: 0 / 468.2 MB, free: 106.5 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007836/0.8478, allocations: 436.6 kB / 468.6 MB, free: 106.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.8479, allocations: 8.531 kB / 468.6 MB, free: 106.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01516/0.8631, allocations: 2.599 MB / 471.2 MB, free: 104.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.8633, allocations: 161.1 kB / 471.4 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.8633, allocations: 4.438 kB / 471.4 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.8634, allocations: 0.5625 kB / 471.4 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003859/0.8638, allocations: 206.5 kB / 471.6 MB, free: 104.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.8642, allocations: 272.8 kB / 471.8 MB, free: 104.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.8643, allocations: 0 / 471.8 MB, free: 104.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.8643, allocations: 7.688 kB / 471.9 MB, free: 104.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.8643, allocations: 4 kB / 471.9 MB, free: 104.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02033/0.8847, allocations: 3.431 MB / 475.3 MB, free: 103 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.8862, allocations: 495 kB / 475.8 MB, free: 102.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.8864, allocations: 172.2 kB / 475.9 MB, free: 102.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.8865, allocations: 4 kB / 475.9 MB, free: 102.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.8865, allocations: 38.44 kB / 476 MB, free: 102.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 3.266e-06/0.8865, allocations: 0 / 476 MB, free: 102.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.04857/0.9351, allocations: 6.929 MB / 482.9 MB, free: 96.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.9352, allocations: 59.41 kB / 483 MB, free: 95.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.463e-05/0.9352, allocations: 93.06 kB / 483.1 MB, free: 95.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.9353, allocations: 25.7 kB / 483.1 MB, free: 95.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.9353, allocations: 88.08 kB / 483.2 MB, free: 95.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.9354, allocations: 19.7 kB / 483.2 MB, free: 95.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.9354, allocations: 0 / 483.2 MB, free: 95.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.689e-05/0.9355, allocations: 318.8 kB / 483.5 MB, free: 95.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.9357, allocations: 159.9 kB / 483.7 MB, free: 95.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.9359, allocations: 163.9 kB / 483.8 MB, free: 95.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05249/0.9884, allocations: 6.699 MB / 490.5 MB, free: 88.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.9884, allocations: 0 / 490.5 MB, free: 88.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.06187/1.05, allocations: 6.93 MB / 497.4 MB, free: 81.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/1.05, allocations: 5.625 kB / 497.5 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/1.05, allocations: 0 / 497.5 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/1.05, allocations: 3.984 kB / 497.5 MB, free: 81.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1118/1.162, allocations: 14 MB / 0.4995 GB, free: 67.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03207/1.194, allocations: 5.701 MB / 0.505 GB, free: 61.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/1.195, allocations: 51.98 kB / 0.5051 GB, free: 61.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/1.195, allocations: 31.95 kB / 0.5051 GB, free: 61.55 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: p_sat:VARIABLE(min = 0.0 unit = "M/(L.T2)" ) "Saturation pressure" 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 (6): * Single equations (assignments): 4 * 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.0002061/1.195, allocations: 118.7 kB / 0.5052 GB, free: 61.43 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04959/1.245, allocations: 6.931 MB / 0.512 GB, free: 54.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/1.245, allocations: 0 / 0.512 GB, free: 54.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0609/1.306, allocations: 8.742 MB / 0.5205 GB, free: 45.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/1.306, allocations: 11.92 kB / 0.5205 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.306, allocations: 0 / 0.5205 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/1.306, allocations: 0 / 0.5205 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004619/1.306, allocations: 335.8 kB / 0.5209 GB, free: 45.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.306, allocations: 0 / 0.5209 GB, free: 45.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/1.307, allocations: 39.91 kB / 0.5209 GB, free: 45.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003078/1.31, allocations: 0.8628 MB / 0.5217 GB, free: 44.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-05/1.31, allocations: 15.97 kB / 0.5218 GB, free: 44.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04434/1.354, allocations: 7.325 MB / 0.5289 GB, free: 37.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/1.354, allocations: 3.938 kB / 0.5289 GB, free: 37.04 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06077/1.415, allocations: 8.645 MB / 0.5374 GB, free: 28.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.441e-05/1.415, allocations: 96.84 kB / 0.5375 GB, free: 28.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.552e-05/1.415, allocations: 4 kB / 0.5375 GB, free: 28.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003352/1.416, allocations: 47.95 kB / 0.5375 GB, free: 28.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/1.416, allocations: 18.12 kB / 0.5375 GB, free: 28.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.964e-05/1.416, allocations: 35.97 kB / 0.5376 GB, free: 28.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.178e-05/1.416, allocations: 83.28 kB / 0.5376 GB, free: 28.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.416, allocations: 0 / 0.5376 GB, free: 28.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006445/1.416, allocations: 87.92 kB / 0.5377 GB, free: 27.98 MB / 346.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 (14): * Single equations (assignments): 12 * 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 3,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.06244/1.479, allocations: 9.553 MB / 0.547 GB, free: 18.4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.1248/1.604, allocations: 14.41 MB / 0.5611 GB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.752e-05/1.604, allocations: 0 / 0.5611 GB, free: 3.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002752/1.607, allocations: 0.6204 MB / 0.5617 GB, free: 3.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/1.607, allocations: 13.62 kB / 0.5617 GB, free: 3.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/1.608, allocations: 357.1 kB / 0.5621 GB, free: 2.965 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/1.608, allocations: 0.7168 MB / 0.5628 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001196/1.609, allocations: 16.88 kB / 0.5628 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/1.609, allocations: 43.34 kB / 0.5628 GB, free: 2.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.512e-06/1.609, allocations: 0 / 0.5628 GB, free: 2.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/1.641, allocations: 7.078 MB / 0.5697 GB, free: 11.14 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002569/1.641, allocations: 128.9 kB / 0.5699 GB, free: 10.94 MB / 362.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_SurfaceTension -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_SurfaceTension_FMU.o FCSys_FCSys_Characteristics_Examples_SurfaceTension_FMU.c In file included from FCSys_FCSys_Characteristics_Examples_SurfaceTension_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_SurfaceTension_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_SurfaceTension -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_SurfaceTension.o FCSys_FCSys_Characteristics_Examples_SurfaceTension.c In file included from FCSys_FCSys_Characteristics_Examples_SurfaceTension.c:7: In file included from ./FCSys_FCSys_Characteristics_Examples_SurfaceTension_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_SurfaceTension.c:176:78: error: use of undeclared identifier '$Pb_v$lB2$c3$rB' array_alloc_scalar_real_array(&tmp6, 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_SurfaceTension.c:176:111: error: use of undeclared identifier '$Pb_v$lB2$c2$rB' array_alloc_scalar_real_array(&tmp6, 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_SurfaceTension.c:176:153: error: use of undeclared identifier '$Pb_v$lB2$c1$rB' array_alloc_scalar_real_array(&tmp6, 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_SurfaceTension.c:190:78: error: use of undeclared identifier '$Pb_v$lB1$c2$rB' array_alloc_scalar_real_array(&tmp7, 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_SurfaceTension.c:190:111: error: use of undeclared identifier '$Pb_v$lB1$c1$rB' array_alloc_scalar_real_array(&tmp7, 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_SurfaceTension.c:294:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp0 = Less(data->localData[0]->realVars[22] /* T variable */,$PT_lim_c$lB2$rB); ^ FCSys_FCSys_Characteristics_Examples_SurfaceTension.c:296:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp2 = Less(data->localData[0]->realVars[22] /* T variable */,$PT_lim_c$lB2$rB); ^ 2 warnings and 7 errors generated. make: *** [: FCSys_FCSys_Characteristics_Examples_SurfaceTension.o] Error 1